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

namespace MyTelegram.Schema.Phone;

///<summary>
/// Info about RTMP streams in a group call or livestream
/// See <a href="https://corefork.telegram.org/constructor/phone.groupCallStreamChannels" />
///</summary>
[TlObject(0xd0e482b2)]
public sealed class TGroupCallStreamChannels : IGroupCallStreamChannels
{
    public uint ConstructorId => 0xd0e482b2;
    ///<summary>
    /// RTMP streams
    ///</summary>
    public TVector<MyTelegram.Schema.IGroupCallStreamChannel> Channels { get; set; }

    public void ComputeFlag()
    {

    }

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

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