/* Options: Date: 2025-04-29 15:41:19 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: DashboardReportRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/v1/reports", Verbs="POST") public static class DashboardReportRequest implements IReturn, IPost { /** * Report Name */ @ApiMember(Description="Report Name", IsRequired=true, ParameterType="body") public String reportName = null; /** * Filters */ @ApiMember(Description="Filters", IsRequired=true, ParameterType="body") public HashMap filters = new HashMap(); /** * Paging */ @ApiMember(Description="Paging", ParameterType="body") public ReportsPaging paging = null; /** * Sorting */ @ApiMember(Description="Sorting", ParameterType="body") public HashMap sorting = new HashMap(); public String getReportName() { return reportName; } public DashboardReportRequest setReportName(String value) { this.reportName = value; return this; } public HashMap getFilters() { return filters; } public DashboardReportRequest setFilters(HashMap value) { this.filters = value; return this; } public ReportsPaging getPaging() { return paging; } public DashboardReportRequest setPaging(ReportsPaging value) { this.paging = value; return this; } public HashMap getSorting() { return sorting; } public DashboardReportRequest setSorting(HashMap value) { this.sorting = value; return this; } private static Object responseType = DashboardReportResult.class; public Object getResponseType() { return responseType; } } public static class DashboardReportResult { public Integer totalCount = null; public ArrayList reportResult = null; public Integer getTotalCount() { return totalCount; } public DashboardReportResult setTotalCount(Integer value) { this.totalCount = value; return this; } public ArrayList getReportResult() { return reportResult; } public DashboardReportResult setReportResult(ArrayList value) { this.reportResult = value; return this; } } public static class ReportFilter { public ReportFilterType type = null; public ArrayList values = null; public Date start = null; public Date end = null; public Integer higherThan = null; public Integer lowerThan = null; public ReportFilterType getType() { return type; } public ReportFilter setType(ReportFilterType value) { this.type = value; return this; } public ArrayList getValues() { return values; } public ReportFilter setValues(ArrayList value) { this.values = value; return this; } public Date getStart() { return start; } public ReportFilter setStart(Date value) { this.start = value; return this; } public Date getEnd() { return end; } public ReportFilter setEnd(Date value) { this.end = value; return this; } public Integer getHigherThan() { return higherThan; } public ReportFilter setHigherThan(Integer value) { this.higherThan = value; return this; } public Integer getLowerThan() { return lowerThan; } public ReportFilter setLowerThan(Integer value) { this.lowerThan = value; return this; } } public static class ReportsPaging { public Integer page = null; public Integer pageSize = null; public Integer getPage() { return page; } public ReportsPaging setPage(Integer value) { this.page = value; return this; } public Integer getPageSize() { return pageSize; } public ReportsPaging setPageSize(Integer value) { this.pageSize = value; return this; } } public static enum ReportSortType { Asc, Desc; } public static enum ReportFilterType { List, ListLike, Date, Range; } }