/* Options: Date: 2025-05-04 22:50:26 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: ListUsers.* //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 { /** * Gets the users for the specified account */ @Route(Path="/users", Verbs="GET") @Api(Description="Gets the users for the specified account") public static class ListUsers extends ListRequest implements IReturn> { /** * The account IDs whose users you want to retrieve */ @ApiMember(Description="The account IDs whose users you want to retrieve") public ArrayList accountIds = null; /** * Filter by email */ @ApiMember(Description="Filter by email") public String emailFilter = null; public ArrayList getAccountIds() { return accountIds; } public ListUsers setAccountIds(ArrayList value) { this.accountIds = value; return this; } public String getEmailFilter() { return emailFilter; } public ListUsers setEmailFilter(String value) { this.emailFilter = 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 DashboardPermissions { ViewFiles, ViewNotifications, ViewSessions, ViewEndpoints, ViewReports, ViewCustomers, ViewFlows; } public static class UserInfo { public String id = null; public Boolean isAuthenticated = null; public String firstName = null; public String lastName = null; public String name = null; public String avatarUrl = null; public String emailAddress = null; public ArrayList roles = null; public ArrayList accountIds = null; public ArrayList accountNames = null; public ArrayList dashboardPermissions = null; public String getId() { return id; } public UserInfo setId(String value) { this.id = value; return this; } public Boolean getIsAuthenticated() { return isAuthenticated; } public UserInfo setIsAuthenticated(Boolean value) { this.isAuthenticated = value; return this; } public String getFirstName() { return firstName; } public UserInfo setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public UserInfo setLastName(String value) { this.lastName = value; return this; } public String getName() { return name; } public UserInfo setName(String value) { this.name = value; return this; } public String getAvatarUrl() { return avatarUrl; } public UserInfo setAvatarUrl(String value) { this.avatarUrl = value; return this; } public String getEmailAddress() { return emailAddress; } public UserInfo setEmailAddress(String value) { this.emailAddress = value; return this; } public ArrayList getRoles() { return roles; } public UserInfo setRoles(ArrayList value) { this.roles = value; return this; } public ArrayList getAccountIds() { return accountIds; } public UserInfo setAccountIds(ArrayList value) { this.accountIds = value; return this; } public ArrayList getAccountNames() { return accountNames; } public UserInfo setAccountNames(ArrayList value) { this.accountNames = value; return this; } public ArrayList getDashboardPermissions() { return dashboardPermissions; } public UserInfo setDashboardPermissions(ArrayList value) { this.dashboardPermissions = value; return this; } } }