// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema.Langpack;

///<summary>
/// Get information about all languages in a localization pack
/// <para>Possible errors</para>
/// Code Type Description
/// 400 LANG_PACK_INVALID The provided language pack is invalid.
/// See <a href="https://corefork.telegram.org/method/langpack.getLanguages" />
///</summary>
[TlObject(0x42c6978f)]
public sealed class RequestGetLanguages : IRequest<TVector<MyTelegram.Schema.ILangPackLanguage>>
{
    public uint ConstructorId => 0x42c6978f;
    ///<summary>
    /// Platform identifier (i.e. <code>android</code>, <code>tdesktop</code>, etc).
    ///</summary>
    public string LangPack { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(LangPack);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        LangPack = buffer.ReadString();
    }
}
