aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs
blob: 378eda935f80ed0fa939c08b2647136ddd7b4f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediaBrowser.Api.Reports
{
	/// <summary> A report stat group. </summary>
	public class ReportStatGroup
	{
		/// <summary>
		/// Initializes a new instance of the MediaBrowser.Api.Reports.ReportStatGroup class. </summary>
		public ReportStatGroup()
		{
			Items = new List<ReportStatItem>();
			TotalRecordCount = 0;
		}

		/// <summary> Gets or sets the header. </summary>
		/// <value> The header. </value>
		public string Header { get; set; }

		/// <summary> Gets or sets the items. </summary>
		/// <value> The items. </value>
		public List<ReportStatItem> Items { get; set; }

		/// <summary> Gets or sets the number of total records. </summary>
		/// <value> The total number of record count. </value>
		public int TotalRecordCount { get; set; }

		internal static string FormatedHeader(string header, int topItem)
		{
			return string.Format("Top {0} {1}", topItem, header);
		}
	}
}