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

namespace MyTelegram.Schema;

///<summary>
/// Info about an SMS job.
/// See <a href="https://corefork.telegram.org/constructor/smsJob" />
///</summary>
[TlObject(0xe6a1eeb8)]
public sealed class TSmsJob : ISmsJob
{
    public uint ConstructorId => 0xe6a1eeb8;
    ///<summary>
    /// Job ID
    ///</summary>
    public string JobId { get; set; }

    ///<summary>
    /// Destination phone number
    ///</summary>
    public string PhoneNumber { get; set; }

    ///<summary>
    /// Text
    ///</summary>
    public string Text { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        JobId = buffer.ReadString();
        PhoneNumber = buffer.ReadString();
        Text = buffer.ReadString();
    }
}