Kavita/API/DTOs/Statistics/UserReadStatistics.cs
Joe Milazzo 8043650aa5
No more JWTs for Scripts + Polish (#4274)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
2025-12-13 05:55:02 -08:00

30 lines
820 B
C#

using System;
using System.Collections.Generic;
namespace API.DTOs.Statistics;
#nullable enable
public sealed record UserReadStatistics
{
/// <summary>
/// Total number of pages read
/// </summary>
public long TotalPagesRead { get; set; }
/// <summary>
/// Total number of words read
/// </summary>
public long TotalWordsRead { get; set; }
/// <summary>
/// Total time spent reading based on estimates
/// </summary>
public long TimeSpentReading { get; set; }
public long ChaptersRead { get; set; }
/// <summary>
/// Last time user read anything
/// </summary>
public DateTime? LastActiveUtc { get; set; }
public double AvgHoursPerWeekSpentReading { get; set; }
public IEnumerable<StatCount<float>>? PercentReadPerLibrary { get; set; }
}