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

namespace MyTelegram.Schema.Chatlists;

///<summary>
/// Updated information about a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.
/// See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistUpdates" />
///</summary>
[TlObject(0x93bd878d)]
public sealed class TChatlistUpdates : IChatlistUpdates
{
    public uint ConstructorId => 0x93bd878d;
    ///<summary>
    /// New peers to join
    ///</summary>
    public TVector<MyTelegram.Schema.IPeer> MissingPeers { get; set; }

    ///<summary>
    /// Related chat information
    ///</summary>
    public TVector<MyTelegram.Schema.IChat> Chats { get; set; }

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

    public void ComputeFlag()
    {

    }

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

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