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);
watched_at = 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 watched_at { get; }
}
}