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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/stats">Channel statistics</a> date range
/// See <a href="https://corefork.telegram.org/constructor/statsDateRangeDays" />
///</summary>
[TlObject(0xb637edaf)]
public sealed class TStatsDateRangeDays : IStatsDateRangeDays
{
    public uint ConstructorId => 0xb637edaf;
    ///<summary>
    /// Initial date
    ///</summary>
    public int MinDate { get; set; }

    ///<summary>
    /// Final date
    ///</summary>
    public int MaxDate { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        MinDate = buffer.ReadInt32();
        MaxDate = buffer.ReadInt32();
    }
}