ReportStatGroup.cs 1022 B

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