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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Confirms receipt of messages by a client, cancels PUSH-notification sending.
/// See <a href="https://corefork.telegram.org/method/messages.receivedMessages" />
///</summary>
[TlObject(0x5a954c0)]
public sealed class RequestReceivedMessages : IRequest<TVector<MyTelegram.Schema.IReceivedNotifyMessage>>
{
    public uint ConstructorId => 0x5a954c0;
    ///<summary>
    /// Maximum message ID available in a client.
    ///</summary>
    public int MaxId { get; set; }

    public void ComputeFlag()
    {

    }

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

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