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

namespace MyTelegram.Schema;

///<summary>
/// An incoming phone call
/// See <a href="https://corefork.telegram.org/constructor/updatePhoneCall" />
///</summary>
[TlObject(0xab0f6b1e)]
public sealed class TUpdatePhoneCall : IUpdate
{
    public uint ConstructorId => 0xab0f6b1e;
    ///<summary>
    /// Phone call
    /// See <a href="https://corefork.telegram.org/type/PhoneCall" />
    ///</summary>
    public MyTelegram.Schema.IPhoneCall PhoneCall { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        PhoneCall = buffer.Read<MyTelegram.Schema.IPhoneCall>();
    }
}