aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Dto/ItemCounts.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2025-08-12 20:20:54 -0600
committerGitHub <noreply@github.com>2025-08-12 20:20:54 -0600
commitbd94ca30711e551c834d10c5c3de6fb6a7795bc7 (patch)
tree52040cf9cb2b083cf923dd093b94d7c97908a327 /MediaBrowser.Model/Dto/ItemCounts.cs
parent869b4f8bbf3d27c95e3a012b1f9d7d1cb590fcfc (diff)
parentbeca405ad4c771f9cfdd5b410b4a4ba9f1c2d6c8 (diff)
Merge pull request #14634 from crobibero/itemname-counts
Diffstat (limited to 'MediaBrowser.Model/Dto/ItemCounts.cs')
-rw-r--r--MediaBrowser.Model/Dto/ItemCounts.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Dto/ItemCounts.cs b/MediaBrowser.Model/Dto/ItemCounts.cs
index 95f4a3d77..a15a0c82a 100644
--- a/MediaBrowser.Model/Dto/ItemCounts.cs
+++ b/MediaBrowser.Model/Dto/ItemCounts.cs
@@ -76,5 +76,14 @@ namespace MediaBrowser.Model.Dto
/// </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;
+ }
}
}