ReportHeader.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. ShowHeaderLabel = true;
  19. DisplayType = ReportDisplayType.ScreenExport;
  20. }
  21. /// <summary> Gets or sets the type of the header field. </summary>
  22. /// <value> The type of the header field. </value>
  23. public ReportFieldType HeaderFieldType { get; set; }
  24. /// <summary> Gets or sets the name of the header. </summary>
  25. /// <value> The name of the header. </value>
  26. public string Name { get; set; }
  27. /// <summary> Gets or sets the name of the field. </summary>
  28. /// <value> The name of the field. </value>
  29. public HeaderMetadata FieldName { get; set; }
  30. /// <summary> Gets or sets the sort field. </summary>
  31. /// <value> The sort field. </value>
  32. public string SortField { get; set; }
  33. /// <summary> Gets or sets the type. </summary>
  34. /// <value> The type. </value>
  35. public string Type { get; set; }
  36. /// <summary> Gets or sets the type of the item view. </summary>
  37. /// <value> The type of the item view. </value>
  38. public ItemViewType ItemViewType { get; set; }
  39. /// <summary> Gets or sets a value indicating whether this object is visible. </summary>
  40. /// <value> true if visible, false if not. </value>
  41. public bool Visible { get; set; }
  42. /// <summary> Gets or sets the type of the display. </summary>
  43. /// <value> The type of the display. </value>
  44. public ReportDisplayType DisplayType { get; set; }
  45. /// <summary> Gets or sets a value indicating whether the header label is shown. </summary>
  46. /// <value> true if show header label, false if not. </value>
  47. public bool ShowHeaderLabel { get; set; }
  48. /// <summary> Gets or sets a value indicating whether we can group. </summary>
  49. /// <value> true if we can group, false if not. </value>
  50. public bool CanGroup { get; set; }
  51. }
  52. }