ReportStatGroup.cs 940 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Api.Reports
  3. {
  4. /// <summary> A report stat group. </summary>
  5. public class ReportStatGroup
  6. {
  7. /// <summary>
  8. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportStatGroup class. </summary>
  9. public ReportStatGroup()
  10. {
  11. Items = new List<ReportStatItem>();
  12. TotalRecordCount = 0;
  13. }
  14. /// <summary> Gets or sets the header. </summary>
  15. /// <value> The header. </value>
  16. public string Header { get; set; }
  17. /// <summary> Gets or sets the items. </summary>
  18. /// <value> The items. </value>
  19. public List<ReportStatItem> Items { get; set; }
  20. /// <summary> Gets or sets the number of total records. </summary>
  21. /// <value> The total number of record count. </value>
  22. public int TotalRecordCount { get; set; }
  23. internal static string FormatedHeader(string header, int topItem)
  24. {
  25. return string.Format("Top {0} {1}", topItem, header);
  26. }
  27. }
  28. }