< Summary - Jellyfin

Information
Class: Jellyfin.Data.Entities.Libraries.MovieMetadata
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/MovieMetadata.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 70
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
get_Companies()100%210%

File(s)

/srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/MovieMetadata.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using System.ComponentModel.DataAnnotations;
 3using Jellyfin.Data.Interfaces;
 4
 5namespace Jellyfin.Data.Entities.Libraries
 6{
 7    /// <summary>
 8    /// An entity holding the metadata for a movie.
 9    /// </summary>
 10    public class MovieMetadata : ItemMetadata, IHasCompanies
 11    {
 12        /// <summary>
 13        /// Initializes a new instance of the <see cref="MovieMetadata"/> class.
 14        /// </summary>
 15        /// <param name="title">The title or name of the movie.</param>
 16        /// <param name="language">ISO-639-3 3-character language codes.</param>
 017        public MovieMetadata(string title, string language) : base(title, language)
 18        {
 019            Studios = new HashSet<Company>();
 020        }
 21
 22        /// <summary>
 23        /// Gets or sets the outline.
 24        /// </summary>
 25        /// <remarks>
 26        /// Max length = 1024.
 27        /// </remarks>
 28        [MaxLength(1024)]
 29        [StringLength(1024)]
 30        public string? Outline { get; set; }
 31
 32        /// <summary>
 33        /// Gets or sets the tagline.
 34        /// </summary>
 35        /// <remarks>
 36        /// Max length = 1024.
 37        /// </remarks>
 38        [MaxLength(1024)]
 39        [StringLength(1024)]
 40        public string? Tagline { get; set; }
 41
 42        /// <summary>
 43        /// Gets or sets the plot.
 44        /// </summary>
 45        /// <remarks>
 46        /// Max length = 65535.
 47        /// </remarks>
 48        [MaxLength(65535)]
 49        [StringLength(65535)]
 50        public string? Plot { get; set; }
 51
 52        /// <summary>
 53        /// Gets or sets the country code.
 54        /// </summary>
 55        /// <remarks>
 56        /// Max length = 2.
 57        /// </remarks>
 58        [MaxLength(2)]
 59        [StringLength(2)]
 60        public string? Country { get; set; }
 61
 62        /// <summary>
 63        /// Gets the studios that produced this movie.
 64        /// </summary>
 65        public virtual ICollection<Company> Studios { get; private set; }
 66
 67        /// <inheritdoc />
 068        public ICollection<Company> Companies => Studios;
 69    }
 70}