using Newtonsoft.Json; namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist { /// /// A class representing TubeArchivist API video progress data. /// public class Progress { /// /// Initializes a new instance of the class. /// /// Playback progress in seconds. /// Video YouTube id. /// Playback progress user id. [JsonConstructor] public Progress( long position, string? youtubeId, long? userId) { YoutubeId = youtubeId; UserId = userId; Position = position; } /// /// Initializes a new instance of the class. /// /// Playback progress in seconds. public Progress(long position) { Position = position; } /// /// Gets or sets the video YouTube id. /// [JsonProperty(PropertyName = "youtube_id")] public string? YoutubeId { get; set; } /// /// Gets or sets playback progress user id. /// [JsonProperty(PropertyName = "user_id")] public long? UserId { get; set; } /// /// Gets or sets video playback progress (in seconds). /// [JsonProperty(PropertyName = "position")] public long Position { get; set; } } }