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

namespace MyTelegram.Schema.Payments;

///<summary>
/// See <a href="https://corefork.telegram.org/method/payments.getStarGiftUpgradePreview" />
///</summary>
[TlObject(0x9c9abcb1)]
public sealed class RequestGetStarGiftUpgradePreview : IRequest<MyTelegram.Schema.Payments.IStarGiftUpgradePreview>
{
    public uint ConstructorId => 0x9c9abcb1;
    public long GiftId { get; set; }

    public void ComputeFlag()
    {

    }

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

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