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

namespace MyTelegram.Schema;

///<summary>
/// Indicates a specific local notification sound should be used
/// See <a href="https://corefork.telegram.org/constructor/notificationSoundLocal" />
///</summary>
[TlObject(0x830b9ae4)]
public sealed class TNotificationSoundLocal : INotificationSound
{
    public uint ConstructorId => 0x830b9ae4;
    ///<summary>
    /// Notification sound title
    ///</summary>
    public string Title { get; set; }

    ///<summary>
    /// Notification sound identifier (arbitrary data used by the client to identify a specific local notification sound)
    ///</summary>
    public string Data { get; set; }

    public void ComputeFlag()
    {

    }

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

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