/// <summary> /// Public constructor with required data /// </summary> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// <param name="_series0"></param> public Season(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.Series _series0) { // NOTE: This class has one-to-one associations with LibraryRoot, LibraryItem and CollectionItem. // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. this.UrlId = urlid; if (_series0 == null) { throw new ArgumentNullException(nameof(_series0)); } _series0.Seasons.Add(this); this.SeasonMetadata = new System.Collections.Generic.HashSet <global::Jellyfin.Data.Entities.SeasonMetadata>(); this.Episodes = new System.Collections.Generic.HashSet <global::Jellyfin.Data.Entities.Episode>(); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param> /// <param name="_series0"></param> public static Season Create(Guid urlid, DateTime dateadded, global::Jellyfin.Data.Entities.Series _series0) { return(new Season(urlid, dateadded, _series0)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="title">The title or name of the object</param> /// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="_series0"></param> public static SeriesMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Series _series0) { return(new SeriesMetadata(title, language, dateadded, datemodified, _series0)); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="title">The title or name of the object</param> /// <param name="language">ISO-639-3 3-character language codes</param> /// <param name="_series0"></param> public SeriesMetadata(string title, string language, DateTime dateadded, DateTime datemodified, global::Jellyfin.Data.Entities.Series _series0) { if (string.IsNullOrEmpty(title)) { throw new ArgumentNullException(nameof(title)); } this.Title = title; if (string.IsNullOrEmpty(language)) { throw new ArgumentNullException(nameof(language)); } this.Language = language; if (_series0 == null) { throw new ArgumentNullException(nameof(_series0)); } _series0.SeriesMetadata.Add(this); this.Networks = new System.Collections.Generic.HashSet <global::Jellyfin.Data.Entities.Company>(); Init(); }