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

namespace MyTelegram.Schema.Account;

///<summary>
/// Web authorizations
/// See <a href="https://corefork.telegram.org/constructor/account.webAuthorizations" />
///</summary>
[TlObject(0xed56c9fc)]
public sealed class TWebAuthorizations : IWebAuthorizations
{
    public uint ConstructorId => 0xed56c9fc;
    ///<summary>
    /// Web authorization list
    ///</summary>
    public TVector<MyTelegram.Schema.IWebAuthorization> Authorizations { get; set; }

    ///<summary>
    /// Users
    ///</summary>
    public TVector<MyTelegram.Schema.IUser> Users { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Authorizations = buffer.Read<TVector<MyTelegram.Schema.IWebAuthorization>>();
        Users = buffer.Read<TVector<MyTelegram.Schema.IUser>>();
    }
}