You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
using MediaBrowser.Api.UserLibrary;
|
|
using MediaBrowser.Controller.Net;
|
|
using ServiceStack;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MediaBrowser.Api.Reports
|
|
{
|
|
public class BaseReportRequest : GetItems
|
|
{
|
|
public bool HasQueryLimit { get; set; }
|
|
public string GroupBy { get; set; }
|
|
|
|
public string ReportColumns { get; set; }
|
|
}
|
|
|
|
[Route("/Reports/Items", "GET", Summary = "Gets reports based on library items")]
|
|
public class GetItemReport : BaseReportRequest, IReturn<ReportResult>
|
|
{
|
|
|
|
}
|
|
|
|
[Route("/Reports/Headers", "GET", Summary = "Gets reports headers based on library items")]
|
|
public class GetReportHeaders : BaseReportRequest, IReturn<List<ReportHeader>>
|
|
{
|
|
}
|
|
|
|
[Route("/Reports/Statistics", "GET", Summary = "Gets reports statistics based on library items")]
|
|
public class GetReportStatistics : BaseReportRequest, IReturn<ReportStatResult>
|
|
{
|
|
public int? TopItems { get; set; }
|
|
|
|
}
|
|
|
|
[Route("/Reports/Items/Download", "GET", Summary = "Downloads report")]
|
|
public class GetReportDownload : BaseReportRequest
|
|
{
|
|
public GetReportDownload()
|
|
{
|
|
ExportType = ReportExportType.CSV;
|
|
}
|
|
|
|
public ReportExportType ExportType { get; set; }
|
|
}
|
|
|
|
}
|