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

namespace MyTelegram.Schema;

///<summary>
/// Describes a group of video synchronization source identifiers
/// See <a href="https://corefork.telegram.org/constructor/groupCallParticipantVideoSourceGroup" />
///</summary>
[TlObject(0xdcb118b7)]
public sealed class TGroupCallParticipantVideoSourceGroup : IGroupCallParticipantVideoSourceGroup
{
    public uint ConstructorId => 0xdcb118b7;
    ///<summary>
    /// SDP semantics
    ///</summary>
    public string Semantics { get; set; }

    ///<summary>
    /// Source IDs
    ///</summary>
    public TVector<int> Sources { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Semantics = buffer.ReadString();
        Sources = buffer.Read<TVector<int>>();
    }
}