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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Info about all installed stickers
/// See <a href="https://corefork.telegram.org/constructor/messages.allStickers" />
///</summary>
[TlObject(0xcdbbcebb)]
public sealed class TAllStickers : IAllStickers
{
    public uint ConstructorId => 0xcdbbcebb;
    ///<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>
    /// All stickersets
    ///</summary>
    public TVector<MyTelegram.Schema.IStickerSet> Sets { get; set; }

    public void ComputeFlag()
    {

    }

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

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