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

namespace MyTelegram.Schema.Payments;

///<summary>
/// See <a href="https://corefork.telegram.org/method/payments.getSavedStarGift" />
///</summary>
[TlObject(0xb455a106)]
public sealed class RequestGetSavedStarGift : IRequest<MyTelegram.Schema.Payments.ISavedStarGifts>
{
    public uint ConstructorId => 0xb455a106;
    public TVector<MyTelegram.Schema.IInputSavedStarGift> Stargift { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Stargift = buffer.Read<TVector<MyTelegram.Schema.IInputSavedStarGift>>();
    }
}
