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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/mediaAreaStarGift" />
///</summary>
[TlObject(0x5787686d)]
public sealed class TMediaAreaStarGift : IMediaArea
{
    public uint ConstructorId => 0x5787686d;
    public MyTelegram.Schema.IMediaAreaCoordinates Coordinates { get; set; }
    public string Slug { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Coordinates = buffer.Read<MyTelegram.Schema.IMediaAreaCoordinates>();
        Slug = buffer.ReadString();
    }
}