ReportGroup.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 group. </summary>
  9. public class ReportGroup
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportGroup class. </summary>
  13. public ReportGroup()
  14. {
  15. Rows = new List<ReportRow>();
  16. }
  17. /// <summary>
  18. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportGroup class. </summary>
  19. /// <param name="rows"> The rows. </param>
  20. public ReportGroup(List<ReportRow> rows)
  21. {
  22. Rows = rows;
  23. }
  24. /// <summary> Gets or sets the name. </summary>
  25. /// <value> The name. </value>
  26. public string Name { get; set; }
  27. /// <summary> Gets or sets the rows. </summary>
  28. /// <value> The rows. </value>
  29. public List<ReportRow> Rows { get; set; }
  30. /// <summary> Returns a string that represents the current object. </summary>
  31. /// <returns> A string that represents the current object. </returns>
  32. /// <seealso cref="M:System.Object.ToString()"/>
  33. public override string ToString()
  34. {
  35. return Name;
  36. }
  37. }
  38. }