/// <summary> /// Public constructor with required data /// </summary> /// <param name="path"></param> /// <param name="kind"></param> /// <param name="_metadata0"></param> /// <param name="_personrole1"></param> public Artwork(string path, global::Jellyfin.Data.Enums.ArtKind kind, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.PersonRole _personrole1) { if (string.IsNullOrEmpty(path)) { throw new ArgumentNullException(nameof(path)); } this.Path = path; this.Kind = kind; if (_metadata0 == null) { throw new ArgumentNullException(nameof(_metadata0)); } _metadata0.Artwork.Add(this); if (_personrole1 == null) { throw new ArgumentNullException(nameof(_personrole1)); } _personrole1.Artwork = this; Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="value"></param> /// <param name="_metadata0"></param> public Rating(double value, global::Jellyfin.Data.Entities.Metadata _metadata0) { this.Value = value; if (_metadata0 == null) { throw new ArgumentNullException(nameof(_metadata0)); } _metadata0.Ratings.Add(this); Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="name"></param> /// <param name="_metadata0"></param> public Genre(string name, global::Jellyfin.Data.Entities.Metadata _metadata0) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException(nameof(name)); } this.Name = name; if (_metadata0 == null) { throw new ArgumentNullException(nameof(_metadata0)); } _metadata0.Genres.Add(this); Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="type"></param> /// <param name="_metadata0"></param> public PersonRole(global::Jellyfin.Data.Enums.PersonRoleType type, global::Jellyfin.Data.Entities.Metadata _metadata0) { // NOTE: This class has one-to-one associations with PersonRole. // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. this.Type = type; if (_metadata0 == null) { throw new ArgumentNullException(nameof(_metadata0)); } _metadata0.PersonRoles.Add(this); this.Sources = new System.Collections.Generic.HashSet <global::Jellyfin.Data.Entities.MetadataProviderId>(); Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="providerid"></param> /// <param name="_metadata0"></param> /// <param name="_person1"></param> /// <param name="_personrole2"></param> /// <param name="_ratingsource3"></param> public MetadataProviderId(string providerid, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.Person _person1, global::Jellyfin.Data.Entities.PersonRole _personrole2, global::Jellyfin.Data.Entities.RatingSource _ratingsource3) { // NOTE: This class has one-to-one associations with MetadataProviderId. // One-to-one associations are not validated in constructors since this causes a scenario where each one must be constructed before the other. if (string.IsNullOrEmpty(providerid)) { throw new ArgumentNullException(nameof(providerid)); } this.ProviderId = providerid; if (_metadata0 == null) { throw new ArgumentNullException(nameof(_metadata0)); } _metadata0.Sources.Add(this); if (_person1 == null) { throw new ArgumentNullException(nameof(_person1)); } _person1.Sources.Add(this); if (_personrole2 == null) { throw new ArgumentNullException(nameof(_personrole2)); } _personrole2.Sources.Add(this); if (_ratingsource3 == null) { throw new ArgumentNullException(nameof(_ratingsource3)); } _ratingsource3.Source = this; Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="value"></param> /// <param name="_metadata0"></param> public static Rating Create(double value, global::Jellyfin.Data.Entities.Metadata _metadata0) { return(new Rating(value, _metadata0)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="path"></param> /// <param name="kind"></param> /// <param name="_metadata0"></param> /// <param name="_personrole1"></param> public static Artwork Create(string path, global::Jellyfin.Data.Enums.ArtKind kind, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.PersonRole _personrole1) { return(new Artwork(path, kind, _metadata0, _personrole1)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="name"></param> /// <param name="_metadata0"></param> public static Genre Create(string name, global::Jellyfin.Data.Entities.Metadata _metadata0) { return(new Genre(name, _metadata0)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="providerid"></param> /// <param name="_metadata0"></param> /// <param name="_person1"></param> /// <param name="_personrole2"></param> /// <param name="_ratingsource3"></param> public static MetadataProviderId Create(string providerid, global::Jellyfin.Data.Entities.Metadata _metadata0, global::Jellyfin.Data.Entities.Person _person1, global::Jellyfin.Data.Entities.PersonRole _personrole2, global::Jellyfin.Data.Entities.RatingSource _ratingsource3) { return(new MetadataProviderId(providerid, _metadata0, _person1, _personrole2, _ratingsource3)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="type"></param> /// <param name="_metadata0"></param> public static PersonRole Create(global::Jellyfin.Data.Enums.PersonRoleType type, global::Jellyfin.Data.Entities.Metadata _metadata0) { return(new PersonRole(type, _metadata0)); }