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

namespace MyTelegram.Schema;

///<summary>
/// Changes in the data center configuration options.
/// See <a href="https://corefork.telegram.org/constructor/updateDcOptions" />
///</summary>
[TlObject(0x8e5e9873)]
public sealed class TUpdateDcOptions : IUpdate
{
    public uint ConstructorId => 0x8e5e9873;
    ///<summary>
    /// New connection options
    ///</summary>
    public TVector<MyTelegram.Schema.IDcOption> DcOptions { get; set; }

    public void ComputeFlag()
    {

    }

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

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