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

namespace MyTelegram.Schema.Photos;

///<summary>
/// Full list of photos with auxiliary data.
/// See <a href="https://corefork.telegram.org/constructor/photos.photos" />
///</summary>
[TlObject(0x8dca6aa5)]
public sealed class TPhotos : IPhotos
{
    public uint ConstructorId => 0x8dca6aa5;
    ///<summary>
    /// List of photos
    ///</summary>
    public TVector<MyTelegram.Schema.IPhoto> Photos { get; set; }

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

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