/* Options: Date: 2024-12-03 18:29:27 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: CurrentUserQuery.* //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="/users", Verbs="GET") @ApiResponse(Description="Returned if the service was called without an existing session", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class CurrentUserQuery implements IReturn { /** * If you want to include the users favorites */ @ApiMember(DataType="boolean", Description="If you want to include the users favorites", ParameterType="query") public Boolean IncludeFavorites = null; public Boolean IncludeCompanyCustomers = null; public Boolean isIncludeFavorites() { return IncludeFavorites; } public CurrentUserQuery setIncludeFavorites(Boolean value) { this.IncludeFavorites = value; return this; } public Boolean isIncludeCompanyCustomers() { return IncludeCompanyCustomers; } public CurrentUserQuery setIncludeCompanyCustomers(Boolean value) { this.IncludeCompanyCustomers = value; return this; } private static Object responseType = CurrentUserQueryResponse.class; public Object getResponseType() { return responseType; } } public static class CurrentUserQueryResponse { /** * The user id for your profile. */ @ApiMember(Description="The user id for your profile.") public UUID UserId = null; public ArrayList Favorites = null; public UserProfileResponse UserProfile = null; public UserProfileResponse CustomerProfile = null; public AdminProfile AdminProfile = null; public ArrayList CompanyCustomers = null; public UUID getUserId() { return UserId; } public CurrentUserQueryResponse setUserId(UUID value) { this.UserId = value; return this; } public ArrayList getFavorites() { return Favorites; } public CurrentUserQueryResponse setFavorites(ArrayList value) { this.Favorites = value; return this; } public UserProfileResponse getUserProfile() { return UserProfile; } public CurrentUserQueryResponse setUserProfile(UserProfileResponse value) { this.UserProfile = value; return this; } public UserProfileResponse getCustomerProfile() { return CustomerProfile; } public CurrentUserQueryResponse setCustomerProfile(UserProfileResponse value) { this.CustomerProfile = value; return this; } public AdminProfile getAdminProfile() { return AdminProfile; } public CurrentUserQueryResponse setAdminProfile(AdminProfile value) { this.AdminProfile = value; return this; } public ArrayList getCompanyCustomers() { return CompanyCustomers; } public CurrentUserQueryResponse setCompanyCustomers(ArrayList value) { this.CompanyCustomers = value; return this; } } public static class CustomFieldDataResponse { public Integer Id = null; public String Column = null; public String Name = null; public String Description = null; public String Value = null; /** * Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' */ @ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'") public String DataType = null; public Integer getId() { return Id; } public CustomFieldDataResponse setId(Integer value) { this.Id = value; return this; } public String getColumn() { return Column; } public CustomFieldDataResponse setColumn(String value) { this.Column = value; return this; } public String getName() { return Name; } public CustomFieldDataResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public CustomFieldDataResponse setDescription(String value) { this.Description = value; return this; } public String getValue() { return Value; } public CustomFieldDataResponse setValue(String value) { this.Value = value; return this; } public String getDataType() { return DataType; } public CustomFieldDataResponse setDataType(String value) { this.DataType = value; return this; } } public static class UserProfileResponse { public UUID Id = null; public String Firstname = null; public String Lastname = null; public String Phone = null; public String Email = null; public UUID getId() { return Id; } public UserProfileResponse setId(UUID value) { this.Id = value; return this; } public String getFirstname() { return Firstname; } public UserProfileResponse setFirstname(String value) { this.Firstname = value; return this; } public String getLastname() { return Lastname; } public UserProfileResponse setLastname(String value) { this.Lastname = value; return this; } public String getPhone() { return Phone; } public UserProfileResponse setPhone(String value) { this.Phone = value; return this; } public String getEmail() { return Email; } public UserProfileResponse setEmail(String value) { this.Email = value; return this; } } public static class AdminProfile { public UUID CompanyId = null; public UUID Id = null; public String Firstname = null; public String Lastname = null; public String Email = null; public String WorkerId = null; public String Phone = null; public UUID getCompanyId() { return CompanyId; } public AdminProfile setCompanyId(UUID value) { this.CompanyId = value; return this; } public UUID getId() { return Id; } public AdminProfile setId(UUID value) { this.Id = value; return this; } public String getFirstname() { return Firstname; } public AdminProfile setFirstname(String value) { this.Firstname = value; return this; } public String getLastname() { return Lastname; } public AdminProfile setLastname(String value) { this.Lastname = value; return this; } public String getEmail() { return Email; } public AdminProfile setEmail(String value) { this.Email = value; return this; } public String getWorkerId() { return WorkerId; } public AdminProfile setWorkerId(String value) { this.WorkerId = value; return this; } public String getPhone() { return Phone; } public AdminProfile setPhone(String value) { this.Phone = value; return this; } } public static class CompanyCustomerResponse { public UUID CompanyId = null; public String CompanyName = null; public UUID CustomerId = null; public Boolean SubscribedToNewsletter = null; public ArrayList CustomFieldValues = null; public UUID getCompanyId() { return CompanyId; } public CompanyCustomerResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } public String getCompanyName() { return CompanyName; } public CompanyCustomerResponse setCompanyName(String value) { this.CompanyName = value; return this; } public UUID getCustomerId() { return CustomerId; } public CompanyCustomerResponse setCustomerId(UUID value) { this.CustomerId = value; return this; } public Boolean isSubscribedToNewsletter() { return SubscribedToNewsletter; } public CompanyCustomerResponse setSubscribedToNewsletter(Boolean value) { this.SubscribedToNewsletter = value; return this; } public ArrayList getCustomFieldValues() { return CustomFieldValues; } public CompanyCustomerResponse setCustomFieldValues(ArrayList value) { this.CustomFieldValues = value; return this; } } public static class UserFavorites { public UUID CompanyId = null; public CompanyQueryResponse Company = null; public UUID getCompanyId() { return CompanyId; } public UserFavorites setCompanyId(UUID value) { this.CompanyId = value; return this; } public CompanyQueryResponse getCompany() { return Company; } public UserFavorites setCompany(CompanyQueryResponse value) { this.Company = value; return this; } } }