ReportHeader.cs 2.0 KB

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