aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Reports/Data/ReportOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Reports/Data/ReportOptions.cs')
-rw-r--r--MediaBrowser.Api/Reports/Data/ReportOptions.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Reports/Data/ReportOptions.cs b/MediaBrowser.Api/Reports/Data/ReportOptions.cs
new file mode 100644
index 000000000..aed15d428
--- /dev/null
+++ b/MediaBrowser.Api/Reports/Data/ReportOptions.cs
@@ -0,0 +1,52 @@
+using MediaBrowser.Controller.Entities;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MediaBrowser.Api.Reports
+{
+ /// <summary> A report options. </summary>
+ internal class ReportOptions<I>
+ {
+ /// <summary> Initializes a new instance of the ReportOptions class. </summary>
+ public ReportOptions()
+ {
+ }
+
+ /// <summary> Initializes a new instance of the ReportOptions class. </summary>
+ /// <param name="header"> . </param>
+ /// <param name="row"> . </param>
+ public ReportOptions(ReportHeader header, Func<I, ReportRow, object> column)
+ {
+ Header = header;
+ Column = column;
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the ReportOptions class.
+ /// </summary>
+ /// <param name="header"></param>
+ /// <param name="column"></param>
+ /// <param name="itemID"></param>
+ public ReportOptions(ReportHeader header, Func<I, ReportRow, object> column, Func<I, object> itemID)
+ {
+ Header = header;
+ Column = column;
+ ItemID = itemID;
+ }
+
+ /// <summary> Gets or sets the header. </summary>
+ /// <value> The header. </value>
+ public ReportHeader Header { get; set; }
+
+ /// <summary> Gets or sets the column. </summary>
+ /// <value> The column. </value>
+ public Func<I, ReportRow, object> Column { get; set; }
+
+ /// <summary> Gets or sets the identifier of the item. </summary>
+ /// <value> The identifier of the item. </value>
+ public Func<I, object> ItemID { get; set; }
+ }
+}