diff options
| author | Luke <luke.pulverenti@gmail.com> | 2015-05-13 11:18:07 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2015-05-13 11:18:07 -0400 |
| commit | baa59d900619f21e3bc76eb2acce15cfee7a87fb (patch) | |
| tree | cbcf129afc5c2a8a31d8329680eac2a473d8f962 /MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs | |
| parent | 6aa3a37153d04de91799d9cfc792e1f503eefe95 (diff) | |
| parent | d3fd3e30d713e6f30c2ee2c1faa6930855951249 (diff) | |
Merge pull request #1086 from t-andre/dev
Report manager implementation
Diffstat (limited to 'MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs')
| -rw-r--r-- | MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs b/MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs new file mode 100644 index 000000000..378eda935 --- /dev/null +++ b/MediaBrowser.Api/Reports/Stat/ReportStatGroup.cs @@ -0,0 +1,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); + } + } +} |
