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

namespace MyTelegram.Schema.Account;

///<summary>
/// A list of <a href="https://corefork.telegram.org/api/emoji-status">emoji statuses</a>
/// See <a href="https://corefork.telegram.org/constructor/account.emojiStatuses" />
///</summary>
[TlObject(0x90c467d1)]
public sealed class TEmojiStatuses : IEmojiStatuses
{
    public uint ConstructorId => 0x90c467d1;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash used for caching, for more info click here</a>
    ///</summary>
    public long Hash { get; set; }

    ///<summary>
    /// <a href="https://corefork.telegram.org/api/emoji-status">Emoji statuses</a>
    ///</summary>
    public TVector<MyTelegram.Schema.IEmojiStatus> Statuses { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Hash = buffer.ReadInt64();
        Statuses = buffer.Read<TVector<MyTelegram.Schema.IEmojiStatus>>();
    }
}