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

namespace MyTelegram.Schema.Langpack.LayerN;

///<summary>
/// Get strings from a language pack
/// <para>Possible errors</para>
/// Code Type Description
/// 400 LANG_CODE_NOT_SUPPORTED The specified language code is not supported.
/// 400 LANG_PACK_INVALID The provided language pack is invalid.
/// See <a href="https://corefork.telegram.org/method/langpack.getStrings" />
///</summary>
[TlObject(0x2e1ee318)]
public sealed class RequestGetStrings : IRequest<TVector<MyTelegram.Schema.ILangPackString>>
{
    public uint ConstructorId => 0x2e1ee318;
    ///<summary>
    /// Language code
    ///</summary>
    public string LangCode { get; set; }

    ///<summary>
    /// Strings to get
    ///</summary>
    public TVector<string> Keys { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        LangCode = buffer.ReadString();
        Keys = buffer.Read<TVector<string>>();
    }
}
