ReportHeader.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using MediaBrowser.Controller.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MediaBrowser.Api.Reports
  8. {
  9. /// <summary> A report header. </summary>
  10. public class ReportHeader
  11. {
  12. /// <summary> Initializes a new instance of the ReportHeader class. </summary>
  13. public ReportHeader()
  14. {
  15. ItemViewType = ItemViewType.None;
  16. Visible = true;
  17. CanGroup = true;
  18. }
  19. /// <summary> Gets or sets the type of the header field. </summary>
  20. /// <value> The type of the header field. </value>
  21. public ReportFieldType HeaderFieldType { get; set; }
  22. /// <summary> Gets or sets the name of the header. </summary>
  23. /// <value> The name of the header. </value>
  24. public string Name { get; set; }
  25. /// <summary> Gets or sets the name of the field. </summary>
  26. /// <value> The name of the field. </value>
  27. public HeaderMetadata FieldName { get; set; }
  28. /// <summary> Gets or sets the sort field. </summary>
  29. /// <value> The sort field. </value>
  30. public string SortField { get; set; }
  31. /// <summary> Gets or sets the type. </summary>
  32. /// <value> The type. </value>
  33. public string Type { get; set; }
  34. /// <summary> Gets or sets the type of the item view. </summary>
  35. /// <value> The type of the item view. </value>
  36. public ItemViewType ItemViewType { get; set; }
  37. /// <summary> Gets or sets a value indicating whether this object is visible. </summary>
  38. /// <value> true if visible, false if not. </value>
  39. public bool Visible { get; set; }
  40. /// <summary> Gets or sets a value indicating whether we can group. </summary>
  41. /// <value> true if we can group, false if not. </value>
  42. public bool CanGroup { get; set; }
  43. }
  44. }