From 1e07dbec63bced51857e67b00941b91ca86a7f77 Mon Sep 17 00:00:00 2001 From: Tavares André Date: Thu, 11 Jun 2015 20:25:12 +0200 Subject: Reports - Add Users activities --- MediaBrowser.Api/Reports/Model/ReportResult.cs | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 MediaBrowser.Api/Reports/Model/ReportResult.cs (limited to 'MediaBrowser.Api/Reports/Model/ReportResult.cs') diff --git a/MediaBrowser.Api/Reports/Model/ReportResult.cs b/MediaBrowser.Api/Reports/Model/ReportResult.cs new file mode 100644 index 0000000000..a4bc95aa19 --- /dev/null +++ b/MediaBrowser.Api/Reports/Model/ReportResult.cs @@ -0,0 +1,53 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Api.Reports +{ + + /// Encapsulates the result of a report. + public class ReportResult + { + /// + /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportResult class. + public ReportResult() + { + Rows = new List(); + Headers = new List(); + Groups = new List(); + TotalRecordCount = 0; + IsGrouped = false; + } + + /// + /// Initializes a new instance of the MediaBrowser.Api.Reports.ReportResult class. + /// The headers. + /// The rows. + public ReportResult(List headers, List rows) + { + Rows = rows; + Headers = headers; + TotalRecordCount = 0; + } + + /// Gets or sets the rows. + /// The rows. + public List Rows { get; set; } + + /// Gets or sets the headers. + /// The headers. + public List Headers { get; set; } + + /// Gets or sets the groups. + /// The groups. + public List Groups { get; set; } + + + /// Gets or sets the number of total records. + /// The total number of record count. + public int TotalRecordCount { get; set; } + + /// Gets or sets the is grouped. + /// The is grouped. + public bool IsGrouped { get; set; } + + } +} -- cgit v1.2.3