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

namespace MyTelegram.Schema.Account;

///<summary>
/// Get all available chat <a href="https://corefork.telegram.org/api/themes">themes »</a>.
/// See <a href="https://corefork.telegram.org/method/account.getChatThemes" />
///</summary>
[TlObject(0xd638de89)]
public sealed class RequestGetChatThemes : IRequest<MyTelegram.Schema.Account.IThemes>
{
    public uint ConstructorId => 0xd638de89;
    ///<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; }

    public void ComputeFlag()
    {

    }

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

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