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

namespace MyTelegram.Schema;

///<summary>
/// Emoji language
/// See <a href="https://corefork.telegram.org/constructor/emojiLanguage" />
///</summary>
[TlObject(0xb3fb5361)]
public sealed class TEmojiLanguage : IEmojiLanguage
{
    public uint ConstructorId => 0xb3fb5361;
    ///<summary>
    /// Language code
    ///</summary>
    public string LangCode { get; set; }

    public void ComputeFlag()
    {

    }

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

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