ReportOptions.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. namespace MediaBrowser.Api.Reports
  3. {
  4. /// <summary> A report options. </summary>
  5. public class ReportOptions<I>
  6. {
  7. /// <summary> Initializes a new instance of the ReportOptions class. </summary>
  8. public ReportOptions()
  9. {
  10. }
  11. /// <summary> Initializes a new instance of the ReportOptions class. </summary>
  12. /// <param name="header"> . </param>
  13. /// <param name="row"> . </param>
  14. public ReportOptions(ReportHeader header, Func<I, ReportRow, object> column)
  15. {
  16. Header = header;
  17. Column = column;
  18. }
  19. /// <summary>
  20. /// Initializes a new instance of the ReportOptions class.
  21. /// </summary>
  22. /// <param name="header"></param>
  23. /// <param name="column"></param>
  24. /// <param name="itemID"></param>
  25. public ReportOptions(ReportHeader header, Func<I, ReportRow, object> column, Func<I, object> itemID)
  26. {
  27. Header = header;
  28. Column = column;
  29. ItemID = itemID;
  30. }
  31. /// <summary> Gets or sets the header. </summary>
  32. /// <value> The header. </value>
  33. public ReportHeader Header { get; set; }
  34. /// <summary> Gets or sets the column. </summary>
  35. /// <value> The column. </value>
  36. public Func<I, ReportRow, object> Column { get; set; }
  37. /// <summary> Gets or sets the identifier of the item. </summary>
  38. /// <value> The identifier of the item. </value>
  39. public Func<I, object> ItemID { get; set; }
  40. }
  41. }