ReportOptions.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 options. </summary>
  10. public class ReportOptions<I>
  11. {
  12. /// <summary> Initializes a new instance of the ReportOptions class. </summary>
  13. public ReportOptions()
  14. {
  15. }
  16. /// <summary> Initializes a new instance of the ReportOptions class. </summary>
  17. /// <param name="header"> . </param>
  18. /// <param name="row"> . </param>
  19. public ReportOptions(ReportHeader header, Func<I, ReportRow, object> column)
  20. {
  21. Header = header;
  22. Column = column;
  23. }
  24. /// <summary>
  25. /// Initializes a new instance of the ReportOptions class.
  26. /// </summary>
  27. /// <param name="header"></param>
  28. /// <param name="column"></param>
  29. /// <param name="itemID"></param>
  30. public ReportOptions(ReportHeader header, Func<I, ReportRow, object> column, Func<I, object> itemID)
  31. {
  32. Header = header;
  33. Column = column;
  34. ItemID = itemID;
  35. }
  36. /// <summary> Gets or sets the header. </summary>
  37. /// <value> The header. </value>
  38. public ReportHeader Header { get; set; }
  39. /// <summary> Gets or sets the column. </summary>
  40. /// <value> The column. </value>
  41. public Func<I, ReportRow, object> Column { get; set; }
  42. /// <summary> Gets or sets the identifier of the item. </summary>
  43. /// <value> The identifier of the item. </value>
  44. public Func<I, object> ItemID { get; set; }
  45. }
  46. }