ReportResult.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Api.Reports
  3. {
  4. /// <summary> Encapsulates the result of a report. </summary>
  5. public class ReportResult
  6. {
  7. /// <summary>
  8. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportResult class. </summary>
  9. public ReportResult()
  10. {
  11. Rows = new List<ReportRow>();
  12. Headers = new List<ReportHeader>();
  13. Groups = new List<ReportGroup>();
  14. TotalRecordCount = 0;
  15. IsGrouped = false;
  16. }
  17. /// <summary>
  18. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportResult class. </summary>
  19. /// <param name="headers"> The headers. </param>
  20. /// <param name="rows"> The rows. </param>
  21. public ReportResult(List<ReportHeader> headers, List<ReportRow> rows)
  22. {
  23. Rows = rows;
  24. Headers = headers;
  25. TotalRecordCount = 0;
  26. }
  27. /// <summary> Gets or sets the rows. </summary>
  28. /// <value> The rows. </value>
  29. public List<ReportRow> Rows { get; set; }
  30. /// <summary> Gets or sets the headers. </summary>
  31. /// <value> The headers. </value>
  32. public List<ReportHeader> Headers { get; set; }
  33. /// <summary> Gets or sets the groups. </summary>
  34. /// <value> The groups. </value>
  35. public List<ReportGroup> Groups { get; set; }
  36. /// <summary> Gets or sets the number of total records. </summary>
  37. /// <value> The total number of record count. </value>
  38. public int TotalRecordCount { get; set; }
  39. /// <summary> Gets or sets the is grouped. </summary>
  40. /// <value> The is grouped. </value>
  41. public bool IsGrouped { get; set; }
  42. }
  43. }