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

namespace MyTelegram.Schema.Updates;

///<summary>
/// No events.
/// See <a href="https://corefork.telegram.org/constructor/updates.differenceEmpty" />
///</summary>
[TlObject(0x5d75a138)]
public sealed class TDifferenceEmpty : IDifference,IEmpty
{
    public uint ConstructorId => 0x5d75a138;
    ///<summary>
    /// Current date
    ///</summary>
    public int Date { get; set; }

    ///<summary>
    /// Number of sent updates
    ///</summary>
    public int Seq { get; set; }

    public void ComputeFlag()
    {

    }

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

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