ReportGroup.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Api.Reports
  3. {
  4. /// <summary> A report group. </summary>
  5. public class ReportGroup
  6. {
  7. /// <summary>
  8. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportGroup class. </summary>
  9. public ReportGroup()
  10. {
  11. Rows = new List<ReportRow>();
  12. }
  13. /// <summary>
  14. /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportGroup class. </summary>
  15. /// <param name="rows"> The rows. </param>
  16. public ReportGroup(List<ReportRow> rows)
  17. {
  18. Rows = rows;
  19. }
  20. /// <summary> Gets or sets the name. </summary>
  21. /// <value> The name. </value>
  22. public string Name { get; set; }
  23. /// <summary> Gets or sets the rows. </summary>
  24. /// <value> The rows. </value>
  25. public List<ReportRow> Rows { get; set; }
  26. /// <summary> Returns a string that represents the current object. </summary>
  27. /// <returns> A string that represents the current object. </returns>
  28. /// <seealso cref="M:System.Object.ToString()"/>
  29. public override string ToString()
  30. {
  31. return Name;
  32. }
  33. }
  34. }