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

namespace MyTelegram.Schema.Users;

///<summary>
/// Full user information
/// See <a href="https://corefork.telegram.org/constructor/users.userFull" />
///</summary>
[TlObject(0x3b6d152e)]
public sealed class TUserFull : IUserFull
{
    public uint ConstructorId => 0x3b6d152e;
    ///<summary>
    /// Full user information
    /// See <a href="https://corefork.telegram.org/type/UserFull" />
    ///</summary>
    public MyTelegram.Schema.IUserFull FullUser { get; set; }

    ///<summary>
    /// Mentioned chats
    ///</summary>
    public TVector<MyTelegram.Schema.IChat> Chats { get; set; }

    ///<summary>
    /// Mentioned 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(FullUser);
        writer.Write(Chats);
        writer.Write(Users);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        FullUser = buffer.Read<MyTelegram.Schema.IUserFull>();
        Chats = buffer.Read<TVector<MyTelegram.Schema.IChat>>();
        Users = buffer.Read<TVector<MyTelegram.Schema.IUser>>();
    }
}