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

namespace MyTelegram.Schema.Phone;

///<summary>
/// RTMP URL and stream key to be used in streaming software
/// See <a href="https://corefork.telegram.org/constructor/phone.groupCallStreamRtmpUrl" />
///</summary>
[TlObject(0x2dbf3432)]
public sealed class TGroupCallStreamRtmpUrl : IGroupCallStreamRtmpUrl
{
    public uint ConstructorId => 0x2dbf3432;
    ///<summary>
    /// RTMP URL
    ///</summary>
    public string Url { get; set; }

    ///<summary>
    /// Stream key
    ///</summary>
    public string Key { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Url = buffer.ReadString();
        Key = buffer.ReadString();
    }
}