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

namespace MyTelegram.Schema;

///<summary>
/// Indicates an already sent game
/// See <a href="https://corefork.telegram.org/constructor/inputGameID" />
///</summary>
[TlObject(0x32c3e77)]
public sealed class TInputGameID : IInputGame
{
    public uint ConstructorId => 0x32c3e77;
    ///<summary>
    /// game ID from <a href="https://corefork.telegram.org/type/Game">Game</a> constructor
    ///</summary>
    public long Id { get; set; }

    ///<summary>
    /// access hash from <a href="https://corefork.telegram.org/type/Game">Game</a> constructor
    ///</summary>
    public long AccessHash { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Id = buffer.ReadInt64();
        AccessHash = buffer.ReadInt64();
    }
}