ReportRequests.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. using MediaBrowser.Api.UserLibrary;
  2. using MediaBrowser.Model.Entities;
  3. using ServiceStack;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. namespace MediaBrowser.Api.Reports
  8. {
  9. public interface IReportsDownload : IReportsQuery
  10. {
  11. /// <summary> Gets or sets the minimum date. </summary>
  12. /// <value> The minimum date. </value>
  13. string MinDate { get; set; }
  14. }
  15. /// <summary> Interface for reports query. </summary>
  16. public interface IReportsQuery : IReportsHeader
  17. {
  18. /// <summary>
  19. /// Gets or sets a value indicating whether this MediaBrowser.Api.Reports.GetActivityLogs has
  20. /// query limit. </summary>
  21. /// <value>
  22. /// true if this MediaBrowser.Api.Reports.GetActivityLogs has query limit, false if not. </value>
  23. bool HasQueryLimit { get; set; }
  24. /// <summary> Gets or sets who group this MediaBrowser.Api.Reports.GetActivityLogs. </summary>
  25. /// <value> Describes who group this MediaBrowser.Api.Reports.GetActivityLogs. </value>
  26. string GroupBy { get; set; }
  27. /// <summary>
  28. /// Skips over a given number of items within the results. Use for paging.
  29. /// </summary>
  30. /// <value>The start index.</value>
  31. int? StartIndex { get; set; }
  32. /// <summary>
  33. /// The maximum number of items to return
  34. /// </summary>
  35. /// <value>The limit.</value>
  36. int? Limit { get; set; }
  37. }
  38. public interface IReportsHeader
  39. {
  40. /// <summary> Gets or sets the report view. </summary>
  41. /// <value> The report view. </value>
  42. string ReportView { get; set; }
  43. /// <summary> Gets or sets the report columns. </summary>
  44. /// <value> The report columns. </value>
  45. string ReportColumns { get; set; }
  46. /// <summary> Gets or sets a list of types of the include items. </summary>
  47. /// <value> A list of types of the include items. </value>
  48. string IncludeItemTypes { get; set; }
  49. }
  50. public class BaseReportRequest : BaseItemsRequest, IReportsQuery
  51. {
  52. /// <summary> Gets or sets the report view. </summary>
  53. /// <value> The report view. </value>
  54. [ApiMember(Name = "ReportView", Description = "The report view. Values (ReportData, ReportStatistics, ReportActivities)", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
  55. public string ReportView { get; set; }
  56. /// <summary>
  57. /// Gets or sets a value indicating whether this MediaBrowser.Api.Reports.BaseReportRequest has
  58. /// query limit. </summary>
  59. /// <value>
  60. /// true if this MediaBrowser.Api.Reports.BaseReportRequest has query limit, false if not. </value>
  61. [ApiMember(Name = "HasQueryLimit", Description = "Optional. If specified, results will include all records.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  62. public bool HasQueryLimit { get; set; }
  63. /// <summary>
  64. /// Gets or sets who group this MediaBrowser.Api.Reports.BaseReportRequest. </summary>
  65. /// <value> Describes who group this MediaBrowser.Api.Reports.BaseReportRequest. </value>
  66. [ApiMember(Name = "GroupBy", Description = "Optional. If specified, results will include grouped records.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  67. public string GroupBy { get; set; }
  68. /// <summary> Gets or sets the report columns. </summary>
  69. /// <value> The report columns. </value>
  70. [ApiMember(Name = "ReportColumns", Description = "Optional. The columns to show.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  71. public string ReportColumns { get; set; }
  72. /// <summary>
  73. /// Gets or sets the user id.
  74. /// </summary>
  75. /// <value>The user id.</value>
  76. [ApiMember(Name = "UserId", Description = "User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "GET")]
  77. public string UserId { get; set; }
  78. /// <summary>
  79. /// Limit results to items containing a specific person
  80. /// </summary>
  81. /// <value>The person.</value>
  82. [ApiMember(Name = "Person", Description = "Optional. If specified, results will be filtered to include only those containing the specified person.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  83. public string Person { get; set; }
  84. [ApiMember(Name = "PersonIds", Description = "Optional. If specified, results will be filtered to include only those containing the specified person.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  85. public string PersonIds { get; set; }
  86. /// <summary>
  87. /// If the Person filter is used, this can also be used to restrict to a specific person type
  88. /// </summary>
  89. /// <value>The type of the person.</value>
  90. [ApiMember(Name = "PersonTypes", Description = "Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  91. public string PersonTypes { get; set; }
  92. /// <summary>
  93. /// Limit results to items containing specific studios
  94. /// </summary>
  95. /// <value>The studios.</value>
  96. [ApiMember(Name = "Studios", Description = "Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  97. public string Studios { get; set; }
  98. [ApiMember(Name = "StudioIds", Description = "Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  99. public string StudioIds { get; set; }
  100. /// <summary>
  101. /// Gets or sets the studios.
  102. /// </summary>
  103. /// <value>The studios.</value>
  104. [ApiMember(Name = "Artists", Description = "Optional. If specified, results will be filtered based on artist. This allows multiple, pipe delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  105. public string Artists { get; set; }
  106. [ApiMember(Name = "ArtistIds", Description = "Optional. If specified, results will be filtered based on artist. This allows multiple, pipe delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  107. public string ArtistIds { get; set; }
  108. [ApiMember(Name = "Albums", Description = "Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  109. public string Albums { get; set; }
  110. /// <summary>
  111. /// Gets or sets the item ids.
  112. /// </summary>
  113. /// <value>The item ids.</value>
  114. [ApiMember(Name = "Ids", Description = "Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  115. public string Ids { get; set; }
  116. /// <summary>
  117. /// Gets or sets the video types.
  118. /// </summary>
  119. /// <value>The video types.</value>
  120. [ApiMember(Name = "VideoTypes", Description = "Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  121. public string VideoTypes { get; set; }
  122. /// <summary>
  123. /// Gets or sets the video formats.
  124. /// </summary>
  125. /// <value>The video formats.</value>
  126. [ApiMember(Name = "Is3D", Description = "Optional filter by items that are 3D, or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  127. public bool? Is3D { get; set; }
  128. /// <summary>
  129. /// Gets or sets the series status.
  130. /// </summary>
  131. /// <value>The series status.</value>
  132. [ApiMember(Name = "SeriesStatus", Description = "Optional filter by Series Status. Allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  133. public string SeriesStatus { get; set; }
  134. [ApiMember(Name = "NameStartsWithOrGreater", Description = "Optional filter by items whose name is sorted equally or greater than a given input string.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  135. public string NameStartsWithOrGreater { get; set; }
  136. [ApiMember(Name = "NameStartsWith", Description = "Optional filter by items whose name is sorted equally than a given input string.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  137. public string NameStartsWith { get; set; }
  138. [ApiMember(Name = "NameLessThan", Description = "Optional filter by items whose name is equally or lesser than a given input string.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  139. public string NameLessThan { get; set; }
  140. [ApiMember(Name = "AlbumArtistStartsWithOrGreater", Description = "Optional filter by items whose album artist is sorted equally or greater than a given input string.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  141. public string AlbumArtistStartsWithOrGreater { get; set; }
  142. /// <summary>
  143. /// Gets or sets the air days.
  144. /// </summary>
  145. /// <value>The air days.</value>
  146. [ApiMember(Name = "AirDays", Description = "Optional filter by Series Air Days. Allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  147. public string AirDays { get; set; }
  148. /// <summary>
  149. /// Gets or sets the min offical rating.
  150. /// </summary>
  151. /// <value>The min offical rating.</value>
  152. [ApiMember(Name = "MinOfficialRating", Description = "Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  153. public string MinOfficialRating { get; set; }
  154. /// <summary>
  155. /// Gets or sets the max offical rating.
  156. /// </summary>
  157. /// <value>The max offical rating.</value>
  158. [ApiMember(Name = "MaxOfficialRating", Description = "Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  159. public string MaxOfficialRating { get; set; }
  160. [ApiMember(Name = "HasThemeSong", Description = "Optional filter by items with theme songs.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  161. public bool? HasThemeSong { get; set; }
  162. [ApiMember(Name = "HasThemeVideo", Description = "Optional filter by items with theme videos.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  163. public bool? HasThemeVideo { get; set; }
  164. [ApiMember(Name = "HasSubtitles", Description = "Optional filter by items with subtitles.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  165. public bool? HasSubtitles { get; set; }
  166. [ApiMember(Name = "HasSpecialFeature", Description = "Optional filter by items with special features.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  167. public bool? HasSpecialFeature { get; set; }
  168. [ApiMember(Name = "HasTrailer", Description = "Optional filter by items with trailers.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  169. public bool? HasTrailer { get; set; }
  170. [ApiMember(Name = "AdjacentTo", Description = "Optional. Return items that are siblings of a supplied item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  171. public string AdjacentTo { get; set; }
  172. [ApiMember(Name = "MinIndexNumber", Description = "Optional filter by minimum index number.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  173. public int? MinIndexNumber { get; set; }
  174. [ApiMember(Name = "MinPlayers", Description = "Optional filter by minimum number of game players.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  175. public int? MinPlayers { get; set; }
  176. [ApiMember(Name = "MaxPlayers", Description = "Optional filter by maximum number of game players.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  177. public int? MaxPlayers { get; set; }
  178. [ApiMember(Name = "ParentIndexNumber", Description = "Optional filter by parent index number.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  179. public int? ParentIndexNumber { get; set; }
  180. [ApiMember(Name = "HasParentalRating", Description = "Optional filter by items that have or do not have a parental rating", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  181. public bool? HasParentalRating { get; set; }
  182. [ApiMember(Name = "IsHD", Description = "Optional filter by items that are HD or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  183. public bool? IsHD { get; set; }
  184. [ApiMember(Name = "LocationTypes", Description = "Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  185. public string LocationTypes { get; set; }
  186. [ApiMember(Name = "ExcludeLocationTypes", Description = "Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  187. public string ExcludeLocationTypes { get; set; }
  188. [ApiMember(Name = "IsMissing", Description = "Optional filter by items that are missing episodes or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  189. public bool? IsMissing { get; set; }
  190. [ApiMember(Name = "IsUnaired", Description = "Optional filter by items that are unaired episodes or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  191. public bool? IsUnaired { get; set; }
  192. [ApiMember(Name = "IsVirtualUnaired", Description = "Optional filter by items that are virtual unaired episodes or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  193. public bool? IsVirtualUnaired { get; set; }
  194. [ApiMember(Name = "MinCommunityRating", Description = "Optional filter by minimum community rating.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  195. public double? MinCommunityRating { get; set; }
  196. [ApiMember(Name = "MinCriticRating", Description = "Optional filter by minimum critic rating.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  197. public double? MinCriticRating { get; set; }
  198. [ApiMember(Name = "AiredDuringSeason", Description = "Gets all episodes that aired during a season, including specials.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  199. public int? AiredDuringSeason { get; set; }
  200. [ApiMember(Name = "MinPremiereDate", Description = "Optional. The minimum premiere date. Format = ISO", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
  201. public string MinPremiereDate { get; set; }
  202. [ApiMember(Name = "MaxPremiereDate", Description = "Optional. The maximum premiere date. Format = ISO", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
  203. public string MaxPremiereDate { get; set; }
  204. [ApiMember(Name = "HasOverview", Description = "Optional filter by items that have an overview or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  205. public bool? HasOverview { get; set; }
  206. [ApiMember(Name = "HasImdbId", Description = "Optional filter by items that have an imdb id or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  207. public bool? HasImdbId { get; set; }
  208. [ApiMember(Name = "HasTmdbId", Description = "Optional filter by items that have a tmdb id or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  209. public bool? HasTmdbId { get; set; }
  210. [ApiMember(Name = "HasTvdbId", Description = "Optional filter by items that have a tvdb id or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  211. public bool? HasTvdbId { get; set; }
  212. [ApiMember(Name = "IsYearMismatched", Description = "Optional filter by items that are potentially misidentified.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  213. public bool? IsYearMismatched { get; set; }
  214. [ApiMember(Name = "IsInBoxSet", Description = "Optional filter by items that are in boxsets, or not.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  215. public bool? IsInBoxSet { get; set; }
  216. [ApiMember(Name = "IsLocked", Description = "Optional filter by items that are locked.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  217. public bool? IsLocked { get; set; }
  218. [ApiMember(Name = "IsUnidentified", Description = "Optional filter by items that are unidentified by internet metadata providers.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  219. public bool? IsUnidentified { get; set; }
  220. [ApiMember(Name = "IsPlaceHolder", Description = "Optional filter by items that are placeholders", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  221. public bool? IsPlaceHolder { get; set; }
  222. [ApiMember(Name = "HasOfficialRating", Description = "Optional filter by items that have official ratings", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  223. public bool? HasOfficialRating { get; set; }
  224. [ApiMember(Name = "CollapseBoxSetItems", Description = "Whether or not to hide items behind their boxsets.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  225. public bool? CollapseBoxSetItems { get; set; }
  226. public string[] GetStudios()
  227. {
  228. return (Studios ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
  229. }
  230. public string[] GetStudioIds()
  231. {
  232. return (StudioIds ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
  233. }
  234. public string[] GetPersonTypes()
  235. {
  236. return (PersonTypes ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
  237. }
  238. public string[] GetPersonIds()
  239. {
  240. return (PersonIds ?? string.Empty).Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
  241. }
  242. public VideoType[] GetVideoTypes()
  243. {
  244. var val = VideoTypes;
  245. if (string.IsNullOrEmpty(val))
  246. {
  247. return new VideoType[] { };
  248. }
  249. return val.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(v => (VideoType)Enum.Parse(typeof(VideoType), v, true)).ToArray();
  250. }
  251. }
  252. [Route("/Reports/Items", "GET", Summary = "Gets reports based on library items")]
  253. public class GetItemReport : BaseReportRequest, IReturn<ReportResult>
  254. {
  255. }
  256. [Route("/Reports/Headers", "GET", Summary = "Gets reports headers based on library items")]
  257. public class GetReportHeaders : IReturn<List<ReportHeader>>, IReportsHeader
  258. {
  259. /// <summary> Gets or sets the report view. </summary>
  260. /// <value> The report view. </value>
  261. [ApiMember(Name = "ReportView", Description = "The report view. Values (ReportData, ReportStatistics, ReportActivities)", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
  262. public string ReportView { get; set; }
  263. /// <summary> Gets or sets a list of types of the include items. </summary>
  264. /// <value> A list of types of the include items. </value>
  265. [ApiMember(Name = "IncludeItemTypes", Description = "Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  266. public string IncludeItemTypes { get; set; }
  267. /// <summary> Gets or sets the report columns. </summary>
  268. /// <value> The report columns. </value>
  269. [ApiMember(Name = "ReportColumns", Description = "Optional. The columns to show.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  270. public string ReportColumns { get; set; }
  271. }
  272. [Route("/Reports/Statistics", "GET", Summary = "Gets reports statistics based on library items")]
  273. public class GetReportStatistics : BaseReportRequest, IReturn<ReportStatResult>
  274. {
  275. public int? TopItems { get; set; }
  276. }
  277. [Route("/Reports/Items/Download", "GET", Summary = "Downloads report")]
  278. public class GetReportDownload : BaseReportRequest, IReportsDownload
  279. {
  280. public GetReportDownload()
  281. {
  282. ExportType = ReportExportType.CSV;
  283. }
  284. public ReportExportType ExportType { get; set; }
  285. /// <summary> Gets or sets the minimum date. </summary>
  286. /// <value> The minimum date. </value>
  287. [ApiMember(Name = "MinDate", Description = "Optional. The minimum date. Format = ISO", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
  288. public string MinDate { get; set; }
  289. }
  290. [Route("/Reports/Activities", "GET", Summary = "Gets activities entries")]
  291. public class GetActivityLogs : IReturn<ReportResult>, IReportsQuery, IReportsDownload
  292. {
  293. /// <summary> Gets or sets the report view. </summary>
  294. /// <value> The report view. </value>
  295. [ApiMember(Name = "ReportView", Description = "The report view. Values (ReportData, ReportStatistics, ReportActivities)", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
  296. public string ReportView { get; set; }
  297. /// <summary>
  298. /// Gets or sets a value indicating whether this MediaBrowser.Api.Reports.GetActivityLogs has
  299. /// query limit. </summary>
  300. /// <value>
  301. /// true if this MediaBrowser.Api.Reports.GetActivityLogs has query limit, false if not. </value>
  302. [ApiMember(Name = "HasQueryLimit", Description = "Optional. If specified, results will include all records.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
  303. public bool HasQueryLimit { get; set; }
  304. /// <summary> Gets or sets who group this MediaBrowser.Api.Reports.GetActivityLogs. </summary>
  305. /// <value> Describes who group this MediaBrowser.Api.Reports.GetActivityLogs. </value>
  306. [ApiMember(Name = "GroupBy", Description = "Optional. If specified, results will include grouped records.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  307. public string GroupBy { get; set; }
  308. /// <summary> Gets or sets the report columns. </summary>
  309. /// <value> The report columns. </value>
  310. [ApiMember(Name = "ReportColumns", Description = "Optional. The columns to show.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
  311. public string ReportColumns { get; set; }
  312. /// <summary>
  313. /// Skips over a given number of items within the results. Use for paging.
  314. /// </summary>
  315. /// <value>The start index.</value>
  316. [ApiMember(Name = "StartIndex", Description = "Optional. The record index to start at. All items with a lower index will be dropped from the results.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  317. public int? StartIndex { get; set; }
  318. /// <summary>
  319. /// The maximum number of items to return
  320. /// </summary>
  321. /// <value>The limit.</value>
  322. [ApiMember(Name = "Limit", Description = "Optional. The maximum number of records to return", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")]
  323. public int? Limit { get; set; }
  324. /// <summary> Gets or sets the minimum date. </summary>
  325. /// <value> The minimum date. </value>
  326. [ApiMember(Name = "MinDate", Description = "Optional. The minimum date. Format = ISO", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
  327. public string MinDate { get; set; }
  328. [ApiMember(Name = "IncludeItemTypes", Description = "Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
  329. public string IncludeItemTypes { get; set; }
  330. }
  331. }