< Summary - Jellyfin

Information
Class: Jellyfin.Data.Entities.Libraries.Photo
Assembly: Jellyfin.Data
File(s): /srv/git/jellyfin/Jellyfin.Data/Entities/Libraries/Photo.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 29
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%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2using Jellyfin.Data.Interfaces;
 3
 4namespace Jellyfin.Data.Entities.Libraries
 5{
 6    /// <summary>
 7    /// An entity representing a photo.
 8    /// </summary>
 9    public class Photo : LibraryItem, IHasReleases
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="Photo"/> class.
 13        /// </summary>
 14        /// <param name="library">The library.</param>
 015        public Photo(Library library) : base(library)
 16        {
 017            PhotoMetadata = new HashSet<PhotoMetadata>();
 018            Releases = new HashSet<Release>();
 019        }
 20
 21        /// <summary>
 22        /// Gets a collection containing the photo metadata.
 23        /// </summary>
 24        public virtual ICollection<PhotoMetadata> PhotoMetadata { get; private set; }
 25
 26        /// <inheritdoc />
 27        public virtual ICollection<Release> Releases { get; private set; }
 28    }
 29}