using System; using System.Globalization; 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.ToString("yyyy-MM-dd HH\\:mm\\:ss", CultureInfo.InvariantCulture); } /// /// Gets or sets the movie title. /// public string Title { get; set; } /// /// Gets or sets the year. /// public int? Year { get; set; } /// public override SimklIds Ids { get; set; } /// /// Gets watched at. /// public string WatchedAt { get; } } }