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

namespace MyTelegram.Schema.Contacts;

///<summary>
/// Birthday information of our contacts.
/// See <a href="https://corefork.telegram.org/constructor/contacts.contactBirthdays" />
///</summary>
[TlObject(0x114ff30d)]
public sealed class TContactBirthdays : IContactBirthdays
{
    public uint ConstructorId => 0x114ff30d;
    ///<summary>
    /// Birthday info
    ///</summary>
    public TVector<MyTelegram.Schema.IContactBirthday> Contacts { get; set; }

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

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