/* Options: Date: 2025-01-18 08:45:13 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: ListWebhookMessages.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/webhook/messages", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class ListWebhookMessages extends ListMessagesRequestDto 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.", IsRequired=true, ParameterType="query") public UUID CompanyId = null; public UUID getCompanyId() { return CompanyId; } public ListWebhookMessages setCompanyId(UUID value) { this.CompanyId = value; return this; } private static Object responseType = ListMessagesResponseDto.class; public Object getResponseType() { return responseType; } } public static class ListMessagesResponseDto { public ArrayList Data = null; public Boolean Done = null; public String Iterator = null; public ArrayList getData() { return Data; } public ListMessagesResponseDto setData(ArrayList value) { this.Data = value; return this; } public Boolean isDone() { return Done; } public ListMessagesResponseDto setDone(Boolean value) { this.Done = value; return this; } public String getIterator() { return Iterator; } public ListMessagesResponseDto setIterator(String value) { this.Iterator = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static enum Ordering { Ascending(1), Descending(2); private final int value; Ordering(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class ListMessagesRequestDto extends ClientWebhookRequestBase { public Date Before = null; public Date After = null; public String Channel = null; public String Iterator = null; public Integer Limit = null; public Ordering Order = null; public ArrayList EventTypes = null; public Boolean WithContent = null; public Date getBefore() { return Before; } public ListMessagesRequestDto setBefore(Date value) { this.Before = value; return this; } public Date getAfter() { return After; } public ListMessagesRequestDto setAfter(Date value) { this.After = value; return this; } public String getChannel() { return Channel; } public ListMessagesRequestDto setChannel(String value) { this.Channel = value; return this; } public String getIterator() { return Iterator; } public ListMessagesRequestDto setIterator(String value) { this.Iterator = value; return this; } public Integer getLimit() { return Limit; } public ListMessagesRequestDto setLimit(Integer value) { this.Limit = value; return this; } public Ordering getOrder() { return Order; } public ListMessagesRequestDto setOrder(Ordering value) { this.Order = value; return this; } public ArrayList getEventTypes() { return EventTypes; } public ListMessagesRequestDto setEventTypes(ArrayList value) { this.EventTypes = value; return this; } public Boolean isWithContent() { return WithContent; } public ListMessagesRequestDto setWithContent(Boolean value) { this.WithContent = value; return this; } } public static class ClientWebhookRequestBase { public UUID ClientId = null; public UUID getClientId() { return ClientId; } public ClientWebhookRequestBase setClientId(UUID value) { this.ClientId = value; return this; } } }