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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/method/invokeWithGooglePlayIntegrity" />
///</summary>
[TlObject(0x1df92984)]
public sealed class RequestInvokeWithGooglePlayIntegrity : IRequest<IObject>, IHasSubQuery
{
    public uint ConstructorId => 0x1df92984;
    ///<summary>
    /// &nbsp;
    ///</summary>
    public string Nonce { get; set; }

    ///<summary>
    /// &nbsp;
    ///</summary>
    public string Token { get; set; }

    ///<summary>
    /// &nbsp;
    ///</summary>
    public IObject Query { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Nonce = buffer.ReadString();
        Token = buffer.ReadString();
        Query = buffer.Read<IObject>();
    }
}
