/* Options: Date: 2024-11-21 11:41:12 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: DashboardMessageQuery.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/messages/dashboard", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class DashboardMessageQuery extends QueryDb implements IReturn>, ICompany { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", ParameterType="path") public UUID CompanyId = null; /** * If you want to filter on important messages only */ @ApiMember(DataType="boolean", Description="If you want to filter on important messages only", ParameterType="query") public Boolean Important = null; /** * Filter on Message Type Id */ @ApiMember(DataType="int", Description="Filter on Message Type Id", ParameterType="query") public Integer MessageTypeId = null; /** * If you want to include the message type information */ @ApiMember(DataType="boolean", Description="If you want to include the message type information", ParameterType="query") public Boolean IncludeMessageTypeInformation = null; public ResponseStatus ResponseStatus = null; public UUID getCompanyId() { return CompanyId; } public DashboardMessageQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Boolean isImportant() { return Important; } public DashboardMessageQuery setImportant(Boolean value) { this.Important = value; return this; } public Integer getMessageTypeId() { return MessageTypeId; } public DashboardMessageQuery setMessageTypeId(Integer value) { this.MessageTypeId = value; return this; } public Boolean isIncludeMessageTypeInformation() { return IncludeMessageTypeInformation; } public DashboardMessageQuery setIncludeMessageTypeInformation(Boolean value) { this.IncludeMessageTypeInformation = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public DashboardMessageQuery setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } @DataContract public static class QueryResponse { @DataMember(Order=1) public Integer Offset = null; @DataMember(Order=2) public Integer Total = null; @DataMember(Order=3) public ArrayList Results = null; @DataMember(Order=4) public HashMap Meta = null; @DataMember(Order=5) public ResponseStatus ResponseStatus = null; public Integer getOffset() { return Offset; } public QueryResponse setOffset(Integer value) { this.Offset = value; return this; } public Integer getTotal() { return Total; } public QueryResponse setTotal(Integer value) { this.Total = value; return this; } public ArrayList getResults() { return Results; } public QueryResponse setResults(ArrayList value) { this.Results = value; return this; } public HashMap getMeta() { return Meta; } public QueryResponse setMeta(HashMap value) { this.Meta = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public QueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class QueryDb extends QueryBase { } public static interface ICompany { public UUID CompanyId = null; } public static class DashboardMessage extends BaseModel { @References(DashboardMessageType.class) public Integer MessageTypeId = null; public DashboardMessageType MessageType = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public String Title = null; @Required() public String Body = null; @Required() public Boolean Important = null; @Required() public Date VisibleFrom = null; @Required() public Date VisibleTo = null; @Required() public Date Created = null; public Integer SupportCaseId = null; public Date ModifiedDate = null; public Integer getMessageTypeId() { return MessageTypeId; } public DashboardMessage setMessageTypeId(Integer value) { this.MessageTypeId = value; return this; } public DashboardMessageType getMessageType() { return MessageType; } public DashboardMessage setMessageType(DashboardMessageType value) { this.MessageType = value; return this; } public UUID getCompanyId() { return CompanyId; } public DashboardMessage setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public DashboardMessage setId(Integer value) { this.Id = value; return this; } public String getTitle() { return Title; } public DashboardMessage setTitle(String value) { this.Title = value; return this; } public String getBody() { return Body; } public DashboardMessage setBody(String value) { this.Body = value; return this; } public Boolean isImportant() { return Important; } public DashboardMessage setImportant(Boolean value) { this.Important = value; return this; } public Date getVisibleFrom() { return VisibleFrom; } public DashboardMessage setVisibleFrom(Date value) { this.VisibleFrom = value; return this; } public Date getVisibleTo() { return VisibleTo; } public DashboardMessage setVisibleTo(Date value) { this.VisibleTo = value; return this; } public Date getCreated() { return Created; } public DashboardMessage setCreated(Date value) { this.Created = value; return this; } public Integer getSupportCaseId() { return SupportCaseId; } public DashboardMessage setSupportCaseId(Integer value) { this.SupportCaseId = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public DashboardMessage setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class DashboardMessageQueryResponse { /** * The message id */ @ApiMember(Description="The message id") public Integer Id = null; /** * The message title. */ @ApiMember(Description="The message title.") public String Title = null; /** * The message body. */ @ApiMember(Description="The message body.") public String Body = null; /** * If the message is important. */ @ApiMember(Description="If the message is important.") public Boolean Important = null; /** * If the message visible from date. */ @ApiMember(Description="If the message visible from date.") public Date VisibleFrom = null; /** * If the message visible to date. */ @ApiMember(Description="If the message visible to date.") public Date VisibleTo = null; /** * If the message created date. */ @ApiMember(Description="If the message created date.") public Date Created = null; /** * If the message type id. */ @ApiMember(Description="If the message type id.") public Integer MessageTypeId = null; /** * If the message is connected to a support case. */ @ApiMember(Description="If the message is connected to a support case.") public Integer SupportCaseId = null; /** * If the message type information. */ @ApiMember(Description="If the message type information.") public DasboardMessageTypeResponse MessageType = null; public Integer getId() { return Id; } public DashboardMessageQueryResponse setId(Integer value) { this.Id = value; return this; } public String getTitle() { return Title; } public DashboardMessageQueryResponse setTitle(String value) { this.Title = value; return this; } public String getBody() { return Body; } public DashboardMessageQueryResponse setBody(String value) { this.Body = value; return this; } public Boolean isImportant() { return Important; } public DashboardMessageQueryResponse setImportant(Boolean value) { this.Important = value; return this; } public Date getVisibleFrom() { return VisibleFrom; } public DashboardMessageQueryResponse setVisibleFrom(Date value) { this.VisibleFrom = value; return this; } public Date getVisibleTo() { return VisibleTo; } public DashboardMessageQueryResponse setVisibleTo(Date value) { this.VisibleTo = value; return this; } public Date getCreated() { return Created; } public DashboardMessageQueryResponse setCreated(Date value) { this.Created = value; return this; } public Integer getMessageTypeId() { return MessageTypeId; } public DashboardMessageQueryResponse setMessageTypeId(Integer value) { this.MessageTypeId = value; return this; } public Integer getSupportCaseId() { return SupportCaseId; } public DashboardMessageQueryResponse setSupportCaseId(Integer value) { this.SupportCaseId = value; return this; } public DasboardMessageTypeResponse getMessageType() { return MessageType; } public DashboardMessageQueryResponse setMessageType(DasboardMessageTypeResponse value) { this.MessageType = value; return this; } } @DataContract public static class QueryBase { /** * Skip over a given number of elements in a sequence and then return the remainder. Use this when you need paging.

Example:
?skip=10&orderBy=Id */ @DataMember(Order=1) public Integer Skip = null; /** * Return a given number of elements in a sequence and then skip over the remainder. Use this when you need paging.

Example:
?take=20 */ @DataMember(Order=2) public Integer Take = null; /** * Comma separated list of fields to order by. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderBy=Id,-Age,FirstName */ @DataMember(Order=3) public String OrderBy = null; /** * Comma separated list of fields to order by in descending order. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderByDesc=Id,-Age,FirstName */ @DataMember(Order=4) public String OrderByDesc = null; /** * Include any of the aggregates AVG, COUNT, FIRST, LAST, MAX, MIN, SUM in your result set. The results will be returned in the meta field.

Example:
?include=COUNT(*) as Total

or multiple fields with
?include=Count(*) Total, Min(Age), AVG(Age) AverageAge

or unique with
?include=COUNT(DISTINCT LivingStatus) as UniqueStatus */ @DataMember(Order=5) public String Include = null; @DataMember(Order=6) public String Fields = null; @DataMember(Order=7) public HashMap Meta = null; public Integer getSkip() { return Skip; } public QueryBase setSkip(Integer value) { this.Skip = value; return this; } public Integer getTake() { return Take; } public QueryBase setTake(Integer value) { this.Take = value; return this; } public String getOrderBy() { return OrderBy; } public QueryBase setOrderBy(String value) { this.OrderBy = value; return this; } public String getOrderByDesc() { return OrderByDesc; } public QueryBase setOrderByDesc(String value) { this.OrderByDesc = value; return this; } public String getInclude() { return Include; } public QueryBase setInclude(String value) { this.Include = value; return this; } public String getFields() { return Fields; } public QueryBase setFields(String value) { this.Fields = value; return this; } public HashMap getMeta() { return Meta; } public QueryBase setMeta(HashMap value) { this.Meta = value; return this; } } public static class BaseModel { } public static class DashboardMessageType extends BaseModel { @Required() public String Name = null; @Required() public String Description = null; @Required() public String Image = null; public Boolean ApplicationMessage = null; @Required() public String Color = null; @Required() public String Icon = null; public Date ModifiedDate = null; public Integer Id = null; public String getName() { return Name; } public DashboardMessageType setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public DashboardMessageType setDescription(String value) { this.Description = value; return this; } public String getImage() { return Image; } public DashboardMessageType setImage(String value) { this.Image = value; return this; } public Boolean isApplicationMessage() { return ApplicationMessage; } public DashboardMessageType setApplicationMessage(Boolean value) { this.ApplicationMessage = value; return this; } public String getColor() { return Color; } public DashboardMessageType setColor(String value) { this.Color = value; return this; } public String getIcon() { return Icon; } public DashboardMessageType setIcon(String value) { this.Icon = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public DashboardMessageType setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public DashboardMessageType setId(Integer value) { this.Id = value; return this; } } public static class DasboardMessageTypeResponse { /** * The message type id */ @ApiMember(Description="The message type id") public Integer Id = null; /** * The message type name */ @ApiMember(Description="The message type name") public String Name = null; /** * The message type description */ @ApiMember(Description="The message type description") public String Description = null; /** * The message type image */ @ApiMember(Description="The message type image") public String ImageUrl = null; /** * If the message type is a application message */ @ApiMember(Description="If the message type is a application message") public Boolean ApplicationMessage = null; /** * The message type icon */ @ApiMember(Description="The message type icon") public String Icon = null; /** * The message type color */ @ApiMember(Description="The message type color") public String Color = null; public Integer getId() { return Id; } public DasboardMessageTypeResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public DasboardMessageTypeResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public DasboardMessageTypeResponse setDescription(String value) { this.Description = value; return this; } public String getImageUrl() { return ImageUrl; } public DasboardMessageTypeResponse setImageUrl(String value) { this.ImageUrl = value; return this; } public Boolean isApplicationMessage() { return ApplicationMessage; } public DasboardMessageTypeResponse setApplicationMessage(Boolean value) { this.ApplicationMessage = value; return this; } public String getIcon() { return Icon; } public DasboardMessageTypeResponse setIcon(String value) { this.Icon = value; return this; } public String getColor() { return Color; } public DasboardMessageTypeResponse setColor(String value) { this.Color = value; return this; } } }