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

namespace MyTelegram.Schema.Account;

///<summary>
/// Fetch saved notification sounds
/// See <a href="https://corefork.telegram.org/method/account.getSavedRingtones" />
///</summary>
[TlObject(0xe1902288)]
public sealed class RequestGetSavedRingtones : IRequest<MyTelegram.Schema.Account.ISavedRingtones>
{
    public uint ConstructorId => 0xe1902288;
    ///<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();
    }
}
