/* Options: Date: 2025-05-04 22:56:17 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ListMessages.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/messages", Verbs="GET") public static class ListMessages extends ListRequest implements IReturn> { /** * The IDs of the account whose messages you want to retrieve */ @ApiMember(Description="The IDs of the account whose messages you want to retrieve") public ArrayList accountIds = null; /** * The IDs of the customers whose messages you want to retrieve */ @ApiMember(Description="The IDs of the customers whose messages you want to retrieve") public ArrayList customerIds = null; /** * The IDs of the endpoints whose messages you want to retrieve */ @ApiMember(Description="The IDs of the endpoints whose messages you want to retrieve") public ArrayList endpointIds = null; /** * The ID of the conversations whose messages you want to retrieve */ @ApiMember(Description="The ID of the conversations whose messages you want to retrieve") public ArrayList conversationIds = null; /** * The date after which messages should be retrieved */ @ApiMember(Description="The date after which messages should be retrieved") public String afterDate = null; public ArrayList getAccountIds() { return accountIds; } public ListMessages setAccountIds(ArrayList value) { this.accountIds = value; return this; } public ArrayList getCustomerIds() { return customerIds; } public ListMessages setCustomerIds(ArrayList value) { this.customerIds = value; return this; } public ArrayList getEndpointIds() { return endpointIds; } public ListMessages setEndpointIds(ArrayList value) { this.endpointIds = value; return this; } public ArrayList getConversationIds() { return conversationIds; } public ListMessages setConversationIds(ArrayList value) { this.conversationIds = value; return this; } public String getAfterDate() { return afterDate; } public ListMessages setAfterDate(String value) { this.afterDate = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } public static class ListResponse { /** * The items */ @ApiMember(Description="The items") public ArrayList items = null; /** * The total number of items */ @ApiMember(Description="The total number of items") public Integer totalCount = null; /** * The total number of pages */ @ApiMember(Description="The total number of pages") public Integer totalPages = null; /** * Are there more pages of items? Used with simplified paging */ @ApiMember(Description="Are there more pages of items? Used with simplified paging") public Boolean hasMorePages = null; public ArrayList getItems() { return items; } public ListResponse setItems(ArrayList value) { this.items = value; return this; } public Integer getTotalCount() { return totalCount; } public ListResponse setTotalCount(Integer value) { this.totalCount = value; return this; } public Integer getTotalPages() { return totalPages; } public ListResponse setTotalPages(Integer value) { this.totalPages = value; return this; } public Boolean isHasMorePages() { return hasMorePages; } public ListResponse setHasMorePages(Boolean value) { this.hasMorePages = value; return this; } } public static enum SortOrders { Ascend, Descend; } public static class ListRequest implements IGet { /** * The page of data to retrieve */ @ApiMember(Description="The page of data to retrieve") public Integer page = null; /** * If you want all objects to be returned. This should be used with care */ @ApiMember(Description="If you want all objects to be returned. This should be used with care") public Boolean all = null; /** * The number per page to retrieve */ @ApiMember(Description="The number per page to retrieve") public Integer countPerPage = null; /** * Specific IDs */ @ApiMember(Description="Specific IDs") public ArrayList specificIds = null; /** * Specify a sort field */ @ApiMember(Description="Specify a sort field") public String sortField = null; /** * Specify a sort order */ @ApiMember(Description="Specify a sort order") public SortOrders sortOrder = null; /** * Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array */ @ApiMember(Description="Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array") public Boolean simplifiedPaging = null; public Integer getPage() { return page; } public ListRequest setPage(Integer value) { this.page = value; return this; } public Boolean isAll() { return all; } public ListRequest setAll(Boolean value) { this.all = value; return this; } public Integer getCountPerPage() { return countPerPage; } public ListRequest setCountPerPage(Integer value) { this.countPerPage = value; return this; } public ArrayList getSpecificIds() { return specificIds; } public ListRequest setSpecificIds(ArrayList value) { this.specificIds = value; return this; } public String getSortField() { return sortField; } public ListRequest setSortField(String value) { this.sortField = value; return this; } public SortOrders getSortOrder() { return sortOrder; } public ListRequest setSortOrder(SortOrders value) { this.sortOrder = value; return this; } public Boolean isSimplifiedPaging() { return simplifiedPaging; } public ListRequest setSimplifiedPaging(Boolean value) { this.simplifiedPaging = value; return this; } } public static enum MessageDirections { Incoming, Outgoing; } public static class MessageInfo { public String id = null; public String accountId = null; public String customerId = null; public String endpointId = null; public String endpointDisplayName = null; public String date = null; public MessageDirections direction = null; public String otherAddress = null; public String sender = null; public String text = null; public Boolean isUnread = null; public String getId() { return id; } public MessageInfo setId(String value) { this.id = value; return this; } public String getAccountId() { return accountId; } public MessageInfo setAccountId(String value) { this.accountId = value; return this; } public String getCustomerId() { return customerId; } public MessageInfo setCustomerId(String value) { this.customerId = value; return this; } public String getEndpointId() { return endpointId; } public MessageInfo setEndpointId(String value) { this.endpointId = value; return this; } public String getEndpointDisplayName() { return endpointDisplayName; } public MessageInfo setEndpointDisplayName(String value) { this.endpointDisplayName = value; return this; } public String getDate() { return date; } public MessageInfo setDate(String value) { this.date = value; return this; } public MessageDirections getDirection() { return direction; } public MessageInfo setDirection(MessageDirections value) { this.direction = value; return this; } public String getOtherAddress() { return otherAddress; } public MessageInfo setOtherAddress(String value) { this.otherAddress = value; return this; } public String getSender() { return sender; } public MessageInfo setSender(String value) { this.sender = value; return this; } public String getText() { return text; } public MessageInfo setText(String value) { this.text = value; return this; } public Boolean getIsUnread() { return isUnread; } public MessageInfo setIsUnread(Boolean value) { this.isUnread = value; return this; } } }