Daily per-user aggregates, counted on the server clock between progress reports. Includes the cleanup task for rows past 90 days.
35 lines
807 B
C#
35 lines
807 B
C#
using System;
|
|
|
|
namespace Jellyfin.Plugin.Herald.Stats;
|
|
|
|
/// <summary>
|
|
/// Watch activity of one user on one server-local day.
|
|
/// </summary>
|
|
public class DailyWatchStat
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the user id.
|
|
/// </summary>
|
|
public Guid UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the server-local day.
|
|
/// </summary>
|
|
public DateOnly Date { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the watched seconds.
|
|
/// </summary>
|
|
public double WatchedSeconds { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the number of started plays.
|
|
/// </summary>
|
|
public int PlayCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the last playback activity on that day (UTC).
|
|
/// </summary>
|
|
public DateTime LastActivity { get; set; }
|
|
}
|