using Newtonsoft.Json; namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist { /// /// A class representing TubeArchivist API video player data. /// public class Player { /// /// Initializes a new instance of the class. /// /// Duration of the video. /// Whether the video is marked as watched. /// Video watched seconds. public Player(long duration, bool isWatched, double position) { Duration = duration; IsWatched = isWatched; Position = position; } /// /// Gets the duration of the video. /// [JsonProperty(PropertyName = "duration")] public long Duration { get; } /// /// Gets a value indicating whether the video is marked as watched. /// [JsonProperty(PropertyName = "watched")] public bool IsWatched { get; } /// /// Gets the video watched seconds. /// [JsonProperty(PropertyName = "position")] public double Position { get; } } }