jellyfin-server/MediaBrowser.Api/Reports/Data/ReportOptions.cs

49 lines
1.3 KiB
C#
Raw Normal View History

2016-03-27 21:11:27 +00:00
using System;
2015-04-17 19:12:25 +00:00
namespace MediaBrowser.Api.Reports
{
2015-06-11 18:25:12 +00:00
2015-04-17 19:12:25 +00:00
/// <summary> A report options. </summary>
2015-06-11 18:25:12 +00:00
public class ReportOptions<I>
2015-04-17 19:12:25 +00:00
{
/// <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; }
}
}