using System; using System.Text.Json.Serialization; using MediaBrowser.Model.Dto; namespace Jellyfin.Plugin.Simkl.API.Objects { /// /// Simkl movie. /// public class SimklMovie : SimklMediaObject { /// /// Initializes a new instance of the class. /// /// The base item dto. public SimklMovie(BaseItemDto item) { Title = item.OriginalTitle; Year = item.ProductionYear; Ids = new SimklMovieIds(item.ProviderIds); WatchedAt = DateTime.UtcNow; } /// /// Gets or sets the movie title. /// [JsonPropertyName("title")] public string? Title { get; set; } /// /// Gets or sets the year. /// [JsonPropertyName("year")] public int? Year { get; set; } /// /// Gets or sets watched at. /// [JsonPropertyName("watched_at")] public DateTime? WatchedAt { get; set; } } }