Skip to content

The Free Software Media System - Server Backend & API

2.6 KB
Raw Blame
namespace MediaBrowser.Model.Dto
{
    /// <summary>
    /// Class LibrarySummary.
    /// </summary>
    public class ItemCounts
    {
        /// <summary>
        /// Gets or sets the movie count.
        /// </summary>
        /// <value>The movie count.</value>
        public int MovieCount { get; set; }

        /// <summary>
        /// Gets or sets the series count.
        /// </summary>
        /// <value>The series count.</value>
        public int SeriesCount { get; set; }

        /// <summary>
        /// Gets or sets the episode count.
        /// </summary>
        /// <value>The episode count.</value>
        public int EpisodeCount { get; set; }

        /// <summary>
        /// Gets or sets the artist count.
        /// </summary>
        /// <value>The artist count.</value>
        public int ArtistCount { get; set; }

        /// <summary>
        /// Gets or sets the program count.
        /// </summary>
        /// <value>The program count.</value>
        public int ProgramCount { get; set; }

        /// <summary>
        /// Gets or sets the trailer count.
        /// </summary>
        /// <value>The trailer count.</value>
        public int TrailerCount { get; set; }

        /// <summary>
        /// Gets or sets the song count.
        /// </summary>
        /// <value>The song count.</value>
        public int SongCount { get; set; }

        /// <summary>
        /// Gets or sets the album count.
        /// </summary>
        /// <value>The album count.</value>
        public int AlbumCount { get; set; }

        /// <summary>
        /// Gets or sets the music video count.
        /// </summary>
        /// <value>The music video count.</value>
        public int MusicVideoCount { get; set; }

        /// <summary>
        /// Gets or sets the box set count.
        /// </summary>
        /// <value>The box set count.</value>
        public int BoxSetCount { get; set; }

        /// <summary>
        /// Gets or sets the book count.
        /// </summary>
        /// <value>The book count.</value>
        public int BookCount { get; set; }

        /// <summary>
        /// Gets or sets the item count.
        /// </summary>
        /// <value>The item count.</value>
        public int ItemCount { get; set; }

        /// <summary>
        /// Adds all counts.
        /// </summary>
        /// <returns>The total of the counts.</returns>
        public int TotalItemCount()
        {
            return MovieCount + SeriesCount + EpisodeCount + ArtistCount + ProgramCount + TrailerCount + SongCount + AlbumCount + MusicVideoCount + BoxSetCount + BookCount;
        }
    }
}