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

namespace MyTelegram.Schema.Auth;

///<summary>
/// The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input.
/// See <a href="https://corefork.telegram.org/constructor/auth.sentCodeTypeCall" />
///</summary>
[TlObject(0x5353e5a7)]
public sealed class TSentCodeTypeCall : ISentCodeType
{
    public uint ConstructorId => 0x5353e5a7;
    ///<summary>
    /// Length of the verification code
    ///</summary>
    public int Length { get; set; }

    public void ComputeFlag()
    {

    }

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

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