From a0b82a703e82e774b5a440e19d1fca1ce3cc70fa Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Thu, 24 Oct 2024 14:05:46 +1100 Subject: [PATCH] Add tests. Get TestDtos from live server and move to match naming for packages. --- src/AndroidClient/build.gradle | 3 +- .../net/servicestack/client/GsonTests.java | 10 +- .../client/JsonServiceClientTests.java | 99 + .../java/net/servicestack/client/dto.java | 1853 ------- .../servicestack/client/tests/TestDtos.java | 4568 +++++++++++++++++ 5 files changed, 4675 insertions(+), 1858 deletions(-) delete mode 100644 src/AndroidClient/client/src/test/java/net/servicestack/client/dto.java create mode 100644 src/AndroidClient/client/src/test/java/net/servicestack/client/tests/TestDtos.java diff --git a/src/AndroidClient/build.gradle b/src/AndroidClient/build.gradle index 04929e5b..1667f37f 100644 --- a/src/AndroidClient/build.gradle +++ b/src/AndroidClient/build.gradle @@ -39,5 +39,4 @@ allprojects { } } } - // This code is where all the magic happens and fixes the error. -} +} \ No newline at end of file diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/GsonTests.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/GsonTests.java index e5b13e58..055d9c1b 100644 --- a/src/AndroidClient/client/src/test/java/net/servicestack/client/GsonTests.java +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/GsonTests.java @@ -2,13 +2,15 @@ package net.servicestack.client; +import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; import java.util.ArrayList; import java.util.List; +import com.google.gson.GsonBuilder; import junit.framework.TestCase; -import net.servicestack.client.dto.*; +import net.servicestack.client.tests.TestDtos; public class GsonTests extends TestCase { @@ -117,9 +119,11 @@ public void test_Can_serialize_nested_classes() { public void test_Can_deserialize_Hello() { String json = "{\"Result\":\"World\"}\n"; - Gson gson = new Gson(); + Gson gson = new GsonBuilder() + .setFieldNamingStrategy(FieldNamingPolicy.UPPER_CAMEL_CASE) + .create(); - HelloResponse response = gson.fromJson(json, HelloResponse.class); + TestDtos.HelloResponse response = gson.fromJson(json, TestDtos.HelloResponse.class); assertEquals("World", response.getResult()); } diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonServiceClientTests.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonServiceClientTests.java index 228e7a31..237354f0 100644 --- a/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonServiceClientTests.java +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonServiceClientTests.java @@ -7,11 +7,15 @@ import net.servicestack.client.JsonServiceClient; import net.servicestack.client.WebServiceException; +import net.servicestack.client.tests.TestDtos; import test.dtos.*; import java.net.HttpURLConnection; +import java.nio.charset.StandardCharsets; import java.util.Calendar; import java.util.Date; +import java.util.List; +import java.util.Optional; public class JsonServiceClientTests extends TestCase { @@ -93,4 +97,99 @@ public void test_can_change_basePath() { client.setBasePath("/api/"); assertEquals("https://test.servicestack.net/api/", client.getReplyUrl()); } + + public void test_Can_Post_file_with_Request() { + try { + TestDtos.SpeechToText request = new TestDtos.SpeechToText(); + request.setTag("ztag"); + request.setRefId("zid"); + + byte[] fileBytes = "Hello World".getBytes(StandardCharsets.UTF_8); + FileUpload[] files = new FileUpload[]{ + new FileUpload( + "audio", // fieldName + "test.txt", // fileName + "text/plain", // contentType + fileBytes // data + ) + }; + + TestDtos.GenerationResponse response = client.postFilesWithRequest( + "/api/SpeechToText", + request, + files, + TestDtos.GenerationResponse.class + ); + + List outputs = response.getTextOutputs(); + + assertNotNull("Response should not be null", response); + assertNotNull("Text outputs should not be null", outputs); + assertEquals("Should match expected output", "audio, Audio 11, test.txt, text/plain", outputs.get(0).getText()); + assertEquals("Should match expected tag", "Tag ztag", outputs.get(1).getText()); + assertEquals("Should match expected refId", "RefId zid", outputs.get(2).getText()); + + } catch (Exception e) { + fail("Error during test: " + e.getMessage()); + } + } + + public void test_Can_Post_Multiple_files_with_Request() { + try { + TestDtos.TestFileUploads request = new TestDtos.TestFileUploads(); + request.setId(1); + request.setRefId("zid"); + + byte[] textFileBytes = "Hello World".getBytes(StandardCharsets.UTF_8); + byte[] markdownFileBytes = "## Heading".getBytes(StandardCharsets.UTF_8); + + FileUpload[] files = new FileUpload[]{ + new FileUpload( + "audio", // fieldName + "test.txt", // fileName + "text/plain", // contentType + textFileBytes // data + ), + new FileUpload( + "content", // fieldName + "test.md", // fileName + "text/markdown", // contentType + markdownFileBytes // data + ) + }; + + TestDtos.TestFileUploadsResponse response = client.postFilesWithRequest( + "/api/TestFileUploads", + request, + files, + TestDtos.TestFileUploadsResponse.class + ); + + assertNotNull("Response should not be null", response); + assertEquals("Id should match", Optional.of(1), response.getId()); + assertEquals("RefId should match", "zid", response.getRefId()); + assertEquals("Should have correct number of files", 2, response.getFiles().size()); + + // Verify first file + TestDtos.UploadInfo file1 = response.getFiles().get(0); + assertEquals("First file name should match", "audio", file1.getName()); + assertEquals("First filename should match", "test.txt", file1.getFileName()); + assertEquals("First file content length should match", Optional.of("Hello World".length()), file1.getContentLength()); + assertEquals("First file content type should match", "text/plain", file1.getContentType()); + + // Verify second file + TestDtos.UploadInfo file2 = response.getFiles().get(1); + assertEquals("Second file name should match", "content", file2.getName()); + assertEquals("Second filename should match", "test.md", file2.getFileName()); + assertEquals("Second file content length should match", Optional.of("## Heading".length()), file2.getContentLength()); + assertEquals("Second file content type should match", "text/markdown", file2.getContentType()); + + } catch (Exception e) { + fail("Error during test: " + e.getMessage()); + } + } + +// Async versions would not be needed in Java as the API is already based on blocking calls +// If async behavior is needed, it would typically be handled by the calling code using +// CompletableFuture or other async patterns external to these tests } diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/dto.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/dto.java deleted file mode 100644 index d70620c1..00000000 --- a/src/AndroidClient/client/src/test/java/net/servicestack/client/dto.java +++ /dev/null @@ -1,1853 +0,0 @@ -/* Options: -Date: 2015-03-25 04:55:22 -Version: 1 -BaseUrl: http://localhost:2020 - -Package: servicestack.net.client.tests -//GlobalNamespace: dto -//AddPropertyAccessors: True -//SettersReturnThis: True -//AddServiceStackTypes: True -//AddResponseStatus: False -//AddImplicitVersion: -//IncludeTypes: -//ExcludeTypes: -//DefaultImports: java.math.*,java.util.*,net.servicestack.client.* -*/ - -package net.servicestack.client; - -import java.math.*; -import java.util.*; -import net.servicestack.client.*; - -public class dto -{ - - public static class QueryBase_1 extends QueryBase - { - - } - - public static class Rockstar - { - public Integer Id = null; - public String FirstName = null; - public String LastName = null; - public Integer Age = null; - - public Integer getId() { return Id; } - public Rockstar setId(Integer value) { this.Id = value; return this; } - public String getFirstName() { return FirstName; } - public Rockstar setFirstName(String value) { this.FirstName = value; return this; } - public String getLastName() { return LastName; } - public Rockstar setLastName(String value) { this.LastName = value; return this; } - public Integer getAge() { return Age; } - public Rockstar setAge(Integer value) { this.Age = value; return this; } - } - - public static class MetadataTestChild - { - public String Name = null; - public ArrayList Results = null; - - public String getName() { return Name; } - public MetadataTestChild setName(String value) { this.Name = value; return this; } - public ArrayList getResults() { return Results; } - public MetadataTestChild setResults(ArrayList value) { this.Results = value; return this; } - } - - @DataContract - public static class MenuExample - { - @DataMember(Order=1) - @ApiMember() - public MenuItemExample MenuItemExample1 = null; - - public MenuItemExample getMenuItemExample1() { return MenuItemExample1; } - public MenuExample setMenuItemExample1(MenuItemExample value) { this.MenuItemExample1 = value; return this; } - } - - public static class MetadataType - { - public String Name = null; - public String Namespace = null; - public ArrayList GenericArgs = null; - public MetadataTypeName Inherits = null; - public String DisplayType = null; - public String Description = null; - public Boolean ReturnVoidMarker = null; - public Boolean IsNested = null; - public Boolean IsEnum = null; - public Boolean IsInterface = null; - public Boolean IsAbstract = null; - public MetadataTypeName ReturnMarkerTypeName = null; - public ArrayList Routes = null; - public MetadataDataContract DataContract = null; - public ArrayList Properties = null; - public ArrayList Attributes = null; - public ArrayList InnerTypes = null; - public ArrayList EnumNames = null; - public ArrayList EnumValues = null; - - public String getName() { return Name; } - public MetadataType setName(String value) { this.Name = value; return this; } - public String getNamespace() { return Namespace; } - public MetadataType setNamespace(String value) { this.Namespace = value; return this; } - public ArrayList getGenericArgs() { return GenericArgs; } - public MetadataType setGenericArgs(ArrayList value) { this.GenericArgs = value; return this; } - public MetadataTypeName getInherits() { return Inherits; } - public MetadataType setInherits(MetadataTypeName value) { this.Inherits = value; return this; } - public String getDisplayType() { return DisplayType; } - public MetadataType setDisplayType(String value) { this.DisplayType = value; return this; } - public String getDescription() { return Description; } - public MetadataType setDescription(String value) { this.Description = value; return this; } - public Boolean isReturnVoidMarker() { return ReturnVoidMarker; } - public MetadataType setReturnVoidMarker(Boolean value) { this.ReturnVoidMarker = value; return this; } - public Boolean getIsNested() { return IsNested; } - public MetadataType setIsNested(Boolean value) { this.IsNested = value; return this; } - public Boolean getIsEnum() { return IsEnum; } - public MetadataType setIsEnum(Boolean value) { this.IsEnum = value; return this; } - public Boolean getIsInterface() { return IsInterface; } - public MetadataType setIsInterface(Boolean value) { this.IsInterface = value; return this; } - public Boolean getIsAbstract() { return IsAbstract; } - public MetadataType setIsAbstract(Boolean value) { this.IsAbstract = value; return this; } - public MetadataTypeName getReturnMarkerTypeName() { return ReturnMarkerTypeName; } - public MetadataType setReturnMarkerTypeName(MetadataTypeName value) { this.ReturnMarkerTypeName = value; return this; } - public ArrayList getRoutes() { return Routes; } - public MetadataType setRoutes(ArrayList value) { this.Routes = value; return this; } - public MetadataDataContract getDataContract() { return DataContract; } - public MetadataType setDataContract(MetadataDataContract value) { this.DataContract = value; return this; } - public ArrayList getProperties() { return Properties; } - public MetadataType setProperties(ArrayList value) { this.Properties = value; return this; } - public ArrayList getAttributes() { return Attributes; } - public MetadataType setAttributes(ArrayList value) { this.Attributes = value; return this; } - public ArrayList getInnerTypes() { return InnerTypes; } - public MetadataType setInnerTypes(ArrayList value) { this.InnerTypes = value; return this; } - public ArrayList getEnumNames() { return EnumNames; } - public MetadataType setEnumNames(ArrayList value) { this.EnumNames = value; return this; } - public ArrayList getEnumValues() { return EnumValues; } - public MetadataType setEnumValues(ArrayList value) { this.EnumValues = value; return this; } - } - - public static class AutoQueryViewerConfig - { - public String ServiceBaseUrl = null; - public String ServiceName = null; - public String ServiceDescription = null; - public String ServiceIconUrl = null; - public Boolean IsPublic = null; - public Boolean OnlyShowAnnotatedServices = null; - public ArrayList ImplicitConventions = null; - public String DefaultSearchField = null; - public String DefaultSearchType = null; - public String DefaultSearchText = null; - public String BrandUrl = null; - public String BrandImageUrl = null; - public String TextColor = null; - public String LinkColor = null; - public String BackgroundColor = null; - public String BackgroundImageUrl = null; - public String IconUrl = null; - - public String getServiceBaseUrl() { return ServiceBaseUrl; } - public AutoQueryViewerConfig setServiceBaseUrl(String value) { this.ServiceBaseUrl = value; return this; } - public String getServiceName() { return ServiceName; } - public AutoQueryViewerConfig setServiceName(String value) { this.ServiceName = value; return this; } - public String getServiceDescription() { return ServiceDescription; } - public AutoQueryViewerConfig setServiceDescription(String value) { this.ServiceDescription = value; return this; } - public String getServiceIconUrl() { return ServiceIconUrl; } - public AutoQueryViewerConfig setServiceIconUrl(String value) { this.ServiceIconUrl = value; return this; } - public Boolean getIsPublic() { return IsPublic; } - public AutoQueryViewerConfig setIsPublic(Boolean value) { this.IsPublic = value; return this; } - public Boolean isOnlyShowAnnotatedServices() { return OnlyShowAnnotatedServices; } - public AutoQueryViewerConfig setOnlyShowAnnotatedServices(Boolean value) { this.OnlyShowAnnotatedServices = value; return this; } - public ArrayList getImplicitConventions() { return ImplicitConventions; } - public AutoQueryViewerConfig setImplicitConventions(ArrayList value) { this.ImplicitConventions = value; return this; } - public String getDefaultSearchField() { return DefaultSearchField; } - public AutoQueryViewerConfig setDefaultSearchField(String value) { this.DefaultSearchField = value; return this; } - public String getDefaultSearchType() { return DefaultSearchType; } - public AutoQueryViewerConfig setDefaultSearchType(String value) { this.DefaultSearchType = value; return this; } - public String getDefaultSearchText() { return DefaultSearchText; } - public AutoQueryViewerConfig setDefaultSearchText(String value) { this.DefaultSearchText = value; return this; } - public String getBrandUrl() { return BrandUrl; } - public AutoQueryViewerConfig setBrandUrl(String value) { this.BrandUrl = value; return this; } - public String getBrandImageUrl() { return BrandImageUrl; } - public AutoQueryViewerConfig setBrandImageUrl(String value) { this.BrandImageUrl = value; return this; } - public String getTextColor() { return TextColor; } - public AutoQueryViewerConfig setTextColor(String value) { this.TextColor = value; return this; } - public String getLinkColor() { return LinkColor; } - public AutoQueryViewerConfig setLinkColor(String value) { this.LinkColor = value; return this; } - public String getBackgroundColor() { return BackgroundColor; } - public AutoQueryViewerConfig setBackgroundColor(String value) { this.BackgroundColor = value; return this; } - public String getBackgroundImageUrl() { return BackgroundImageUrl; } - public AutoQueryViewerConfig setBackgroundImageUrl(String value) { this.BackgroundImageUrl = value; return this; } - public String getIconUrl() { return IconUrl; } - public AutoQueryViewerConfig setIconUrl(String value) { this.IconUrl = value; return this; } - } - - public static class AutoQueryOperation - { - public String Request = null; - public String From = null; - public String To = null; - - public String getRequest() { return Request; } - public AutoQueryOperation setRequest(String value) { this.Request = value; return this; } - public String getFrom() { return From; } - public AutoQueryOperation setFrom(String value) { this.From = value; return this; } - public String getTo() { return To; } - public AutoQueryOperation setTo(String value) { this.To = value; return this; } - } - - public static class Issue221Base - { - public T Id = null; - - public T getId() { return Id; } - public Issue221Base setId(T value) { this.Id = value; return this; } - } - - public static class NativeTypesTestService - { - - } - - public static class NestedClass - { - public String Value = null; - - public String getValue() { return Value; } - public NestedClass setValue(String value) { this.Value = value; return this; } - } - - public static class ListResult - { - public String Result = null; - - public String getResult() { return Result; } - public ListResult setResult(String value) { this.Result = value; return this; } - } - - public static class ArrayResult - { - public String Result = null; - - public String getResult() { return Result; } - public ArrayResult setResult(String value) { this.Result = value; return this; } - } - - public static enum EnumType - { - Value1, - Value2; - } - - @Flags() - public static enum EnumFlags - { - Value1(1), - Value2(2), - Value3(4); - - private final int value; - EnumFlags(final int intValue) { value = intValue; } - public int getValue() { return value; } - } - - public static class AllTypes - { - public Integer Id = null; - public Integer NullableId = null; - public Short Byte = null; - public Short Short = null; - public Integer Int = null; - public Long Long = null; - public Integer UShort = null; - public Long UInt = null; - public BigInteger ULong = null; - public Float Float = null; - public Double Double = null; - public BigDecimal Decimal = null; - public String String = null; - public Date DateTime = null; - public TimeSpan TimeSpan = null; - public Date DateTimeOffset = null; - public UUID Guid = null; - public String Char = null; - public Date NullableDateTime = null; - public TimeSpan NullableTimeSpan = null; - public ArrayList StringList = null; - public ArrayList StringArray = null; - public HashMap StringMap = null; - public HashMap IntStringMap = null; - public SubType SubType = null; - - public Integer getId() { return Id; } - public AllTypes setId(Integer value) { this.Id = value; return this; } - public Integer getNullableId() { return NullableId; } - public AllTypes setNullableId(Integer value) { this.NullableId = value; return this; } - public Short getByte() { return Byte; } - public AllTypes setByte(Short value) { this.Byte = value; return this; } - public Short getShort() { return Short; } - public AllTypes setShort(Short value) { this.Short = value; return this; } - public Integer getInt() { return Int; } - public AllTypes setInt(Integer value) { this.Int = value; return this; } - public Long getLong() { return Long; } - public AllTypes setLong(Long value) { this.Long = value; return this; } - public Integer getUShort() { return UShort; } - public AllTypes setUShort(Integer value) { this.UShort = value; return this; } - public Long getUInt() { return UInt; } - public AllTypes setUInt(Long value) { this.UInt = value; return this; } - public BigInteger getULong() { return ULong; } - public AllTypes setULong(BigInteger value) { this.ULong = value; return this; } - public Float getFloat() { return Float; } - public AllTypes setFloat(Float value) { this.Float = value; return this; } - public Double getDouble() { return Double; } - public AllTypes setDouble(Double value) { this.Double = value; return this; } - public BigDecimal getDecimal() { return Decimal; } - public AllTypes setDecimal(BigDecimal value) { this.Decimal = value; return this; } - public String getString() { return String; } - public AllTypes setString(String value) { this.String = value; return this; } - public Date getDateTime() { return DateTime; } - public AllTypes setDateTime(Date value) { this.DateTime = value; return this; } - public TimeSpan getTimeSpan() { return TimeSpan; } - public AllTypes setTimeSpan(TimeSpan value) { this.TimeSpan = value; return this; } - public Date getDateTimeOffset() { return DateTimeOffset; } - public AllTypes setDateTimeOffset(Date value) { this.DateTimeOffset = value; return this; } - public UUID getGuid() { return Guid; } - public AllTypes setGuid(UUID value) { this.Guid = value; return this; } - public String getChar() { return Char; } - public AllTypes setChar(String value) { this.Char = value; return this; } - public Date getNullableDateTime() { return NullableDateTime; } - public AllTypes setNullableDateTime(Date value) { this.NullableDateTime = value; return this; } - public TimeSpan getNullableTimeSpan() { return NullableTimeSpan; } - public AllTypes setNullableTimeSpan(TimeSpan value) { this.NullableTimeSpan = value; return this; } - public ArrayList getStringList() { return StringList; } - public AllTypes setStringList(ArrayList value) { this.StringList = value; return this; } - public ArrayList getStringArray() { return StringArray; } - public AllTypes setStringArray(ArrayList value) { this.StringArray = value; return this; } - public HashMap getStringMap() { return StringMap; } - public AllTypes setStringMap(HashMap value) { this.StringMap = value; return this; } - public HashMap getIntStringMap() { return IntStringMap; } - public AllTypes setIntStringMap(HashMap value) { this.IntStringMap = value; return this; } - public SubType getSubType() { return SubType; } - public AllTypes setSubType(SubType value) { this.SubType = value; return this; } - } - - public static class AllCollectionTypes - { - public ArrayList IntArray = null; - public ArrayList IntList = null; - public ArrayList StringArray = null; - public ArrayList StringList = null; - public ArrayList PocoArray = null; - public ArrayList PocoList = null; - public HashMap> PocoLookup = null; - public HashMap>> PocoLookupMap = null; - - public ArrayList getIntArray() { return IntArray; } - public AllCollectionTypes setIntArray(ArrayList value) { this.IntArray = value; return this; } - public ArrayList getIntList() { return IntList; } - public AllCollectionTypes setIntList(ArrayList value) { this.IntList = value; return this; } - public ArrayList getStringArray() { return StringArray; } - public AllCollectionTypes setStringArray(ArrayList value) { this.StringArray = value; return this; } - public ArrayList getStringList() { return StringList; } - public AllCollectionTypes setStringList(ArrayList value) { this.StringList = value; return this; } - public ArrayList getPocoArray() { return PocoArray; } - public AllCollectionTypes setPocoArray(ArrayList value) { this.PocoArray = value; return this; } - public ArrayList getPocoList() { return PocoList; } - public AllCollectionTypes setPocoList(ArrayList value) { this.PocoList = value; return this; } - public HashMap> getPocoLookup() { return PocoLookup; } - public AllCollectionTypes setPocoLookup(HashMap> value) { this.PocoLookup = value; return this; } - public HashMap>> getPocoLookupMap() { return PocoLookupMap; } - public AllCollectionTypes setPocoLookupMap(HashMap>> value) { this.PocoLookupMap = value; return this; } - } - - public static class HelloBase - { - public Integer Id = null; - - public Integer getId() { return Id; } - public HelloBase setId(Integer value) { this.Id = value; return this; } - } - - public static class HelloResponseBase - { - public Integer RefId = null; - - public Integer getRefId() { return RefId; } - public HelloResponseBase setRefId(Integer value) { this.RefId = value; return this; } - } - - public static class Poco - { - public String Name = null; - - public String getName() { return Name; } - public Poco setName(String value) { this.Name = value; return this; } - } - - public static class HelloBase_1 - { - public ArrayList Items = null; - public ArrayList Counts = null; - - public ArrayList getItems() { return Items; } - public HelloBase_1 setItems(ArrayList value) { this.Items = value; return this; } - public ArrayList getCounts() { return Counts; } - public HelloBase_1 setCounts(ArrayList value) { this.Counts = value; return this; } - } - - public static class Item - { - public String Value = null; - - public String getValue() { return Value; } - public Item setValue(String value) { this.Value = value; return this; } - } - - public static class InheritedItem - { - public String Name = null; - - public String getName() { return Name; } - public InheritedItem setName(String value) { this.Name = value; return this; } - } - - public static class HelloWithReturnResponse - { - public String Result = null; - - public String getResult() { return Result; } - public HelloWithReturnResponse setResult(String value) { this.Result = value; return this; } - } - - public static class HelloType - { - public String Result = null; - - public String getResult() { return Result; } - public HelloType setResult(String value) { this.Result = value; return this; } - } - - @DataContract - public static class AuthUserSession - { - @DataMember(Order=1) - public String ReferrerUrl = null; - - @DataMember(Order=2) - public String Id = null; - - @DataMember(Order=3) - public String UserAuthId = null; - - @DataMember(Order=4) - public String UserAuthName = null; - - @DataMember(Order=5) - public String UserName = null; - - @DataMember(Order=6) - public String TwitterUserId = null; - - @DataMember(Order=7) - public String TwitterScreenName = null; - - @DataMember(Order=8) - public String FacebookUserId = null; - - @DataMember(Order=9) - public String FacebookUserName = null; - - @DataMember(Order=10) - public String FirstName = null; - - @DataMember(Order=11) - public String LastName = null; - - @DataMember(Order=12) - public String DisplayName = null; - - @DataMember(Order=13) - public String Company = null; - - @DataMember(Order=14) - public String Email = null; - - @DataMember(Order=15) - public String PrimaryEmail = null; - - @DataMember(Order=16) - public String PhoneNumber = null; - - @DataMember(Order=17) - public Date BirthDate = null; - - @DataMember(Order=18) - public String BirthDateRaw = null; - - @DataMember(Order=19) - public String Address = null; - - @DataMember(Order=20) - public String Address2 = null; - - @DataMember(Order=21) - public String City = null; - - @DataMember(Order=22) - public String State = null; - - @DataMember(Order=23) - public String Country = null; - - @DataMember(Order=24) - public String Culture = null; - - @DataMember(Order=25) - public String FullName = null; - - @DataMember(Order=26) - public String Gender = null; - - @DataMember(Order=27) - public String Language = null; - - @DataMember(Order=28) - public String MailAddress = null; - - @DataMember(Order=29) - public String Nickname = null; - - @DataMember(Order=30) - public String PostalCode = null; - - @DataMember(Order=31) - public String TimeZone = null; - - @DataMember(Order=32) - public String RequestTokenSecret = null; - - @DataMember(Order=33) - public Date CreatedAt = null; - - @DataMember(Order=34) - public Date LastModified = null; - - @DataMember(Order=35) - public ArrayList Roles = null; - - @DataMember(Order=36) - public ArrayList Permissions = null; - - @DataMember(Order=37) - public Boolean IsAuthenticated = null; - - @DataMember(Order=38) - public String Sequence = null; - - @DataMember(Order=39) - public Long Tag = null; - - @DataMember(Order=40) - public ArrayList ProviderOAuthAccess = null; - - public String getReferrerUrl() { return ReferrerUrl; } - public AuthUserSession setReferrerUrl(String value) { this.ReferrerUrl = value; return this; } - public String getId() { return Id; } - public AuthUserSession setId(String value) { this.Id = value; return this; } - public String getUserAuthId() { return UserAuthId; } - public AuthUserSession setUserAuthId(String value) { this.UserAuthId = value; return this; } - public String getUserAuthName() { return UserAuthName; } - public AuthUserSession setUserAuthName(String value) { this.UserAuthName = value; return this; } - public String getUserName() { return UserName; } - public AuthUserSession setUserName(String value) { this.UserName = value; return this; } - public String getTwitterUserId() { return TwitterUserId; } - public AuthUserSession setTwitterUserId(String value) { this.TwitterUserId = value; return this; } - public String getTwitterScreenName() { return TwitterScreenName; } - public AuthUserSession setTwitterScreenName(String value) { this.TwitterScreenName = value; return this; } - public String getFacebookUserId() { return FacebookUserId; } - public AuthUserSession setFacebookUserId(String value) { this.FacebookUserId = value; return this; } - public String getFacebookUserName() { return FacebookUserName; } - public AuthUserSession setFacebookUserName(String value) { this.FacebookUserName = value; return this; } - public String getFirstName() { return FirstName; } - public AuthUserSession setFirstName(String value) { this.FirstName = value; return this; } - public String getLastName() { return LastName; } - public AuthUserSession setLastName(String value) { this.LastName = value; return this; } - public String getDisplayName() { return DisplayName; } - public AuthUserSession setDisplayName(String value) { this.DisplayName = value; return this; } - public String getCompany() { return Company; } - public AuthUserSession setCompany(String value) { this.Company = value; return this; } - public String getEmail() { return Email; } - public AuthUserSession setEmail(String value) { this.Email = value; return this; } - public String getPrimaryEmail() { return PrimaryEmail; } - public AuthUserSession setPrimaryEmail(String value) { this.PrimaryEmail = value; return this; } - public String getPhoneNumber() { return PhoneNumber; } - public AuthUserSession setPhoneNumber(String value) { this.PhoneNumber = value; return this; } - public Date getBirthDate() { return BirthDate; } - public AuthUserSession setBirthDate(Date value) { this.BirthDate = value; return this; } - public String getBirthDateRaw() { return BirthDateRaw; } - public AuthUserSession setBirthDateRaw(String value) { this.BirthDateRaw = value; return this; } - public String getAddress() { return Address; } - public AuthUserSession setAddress(String value) { this.Address = value; return this; } - public String getAddress2() { return Address2; } - public AuthUserSession setAddress2(String value) { this.Address2 = value; return this; } - public String getCity() { return City; } - public AuthUserSession setCity(String value) { this.City = value; return this; } - public String getState() { return State; } - public AuthUserSession setState(String value) { this.State = value; return this; } - public String getCountry() { return Country; } - public AuthUserSession setCountry(String value) { this.Country = value; return this; } - public String getCulture() { return Culture; } - public AuthUserSession setCulture(String value) { this.Culture = value; return this; } - public String getFullName() { return FullName; } - public AuthUserSession setFullName(String value) { this.FullName = value; return this; } - public String getGender() { return Gender; } - public AuthUserSession setGender(String value) { this.Gender = value; return this; } - public String getLanguage() { return Language; } - public AuthUserSession setLanguage(String value) { this.Language = value; return this; } - public String getMailAddress() { return MailAddress; } - public AuthUserSession setMailAddress(String value) { this.MailAddress = value; return this; } - public String getNickname() { return Nickname; } - public AuthUserSession setNickname(String value) { this.Nickname = value; return this; } - public String getPostalCode() { return PostalCode; } - public AuthUserSession setPostalCode(String value) { this.PostalCode = value; return this; } - public String getTimeZone() { return TimeZone; } - public AuthUserSession setTimeZone(String value) { this.TimeZone = value; return this; } - public String getRequestTokenSecret() { return RequestTokenSecret; } - public AuthUserSession setRequestTokenSecret(String value) { this.RequestTokenSecret = value; return this; } - public Date getCreatedAt() { return CreatedAt; } - public AuthUserSession setCreatedAt(Date value) { this.CreatedAt = value; return this; } - public Date getLastModified() { return LastModified; } - public AuthUserSession setLastModified(Date value) { this.LastModified = value; return this; } - public ArrayList getRoles() { return Roles; } - public AuthUserSession setRoles(ArrayList value) { this.Roles = value; return this; } - public ArrayList getPermissions() { return Permissions; } - public AuthUserSession setPermissions(ArrayList value) { this.Permissions = value; return this; } - public Boolean getIsAuthenticated() { return IsAuthenticated; } - public AuthUserSession setIsAuthenticated(Boolean value) { this.IsAuthenticated = value; return this; } - public String getSequence() { return Sequence; } - public AuthUserSession setSequence(String value) { this.Sequence = value; return this; } - public Long getTag() { return Tag; } - public AuthUserSession setTag(Long value) { this.Tag = value; return this; } - public ArrayList getProviderOAuthAccess() { return ProviderOAuthAccess; } - public AuthUserSession setProviderOAuthAccess(ArrayList value) { this.ProviderOAuthAccess = value; return this; } - } - - public static interface IPoco - { - public String Name = null; - } - - public static interface IEmptyInterface - { - } - - public static class EmptyClass - { - - } - - public static class TypeA - { - public ArrayList Bar = null; - - public ArrayList getBar() { return Bar; } - public TypeA setBar(ArrayList value) { this.Bar = value; return this; } - } - - public static class InnerType - { - public Long Id = null; - public String Name = null; - - public Long getId() { return Id; } - public InnerType setId(Long value) { this.Id = value; return this; } - public String getName() { return Name; } - public InnerType setName(String value) { this.Name = value; return this; } - } - - public static enum InnerEnum - { - Foo, - Bar, - Baz; - } - - public static interface IAuthTokens - { - public String Provider = null; - public String UserId = null; - public String AccessToken = null; - public String AccessTokenSecret = null; - public String RefreshToken = null; - public Date RefreshTokenExpiry = null; - public String RequestToken = null; - public String RequestTokenSecret = null; - public HashMap Items = null; - } - - public static class QueryBase - { - @DataMember(Order=1) - public Integer Skip = null; - - @DataMember(Order=2) - public Integer Take = null; - - @DataMember(Order=3) - public String OrderBy = null; - - @DataMember(Order=4) - public String OrderByDesc = 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 static class MetadataTestNestedChild - { - public String Name = null; - - public String getName() { return Name; } - public MetadataTestNestedChild setName(String value) { this.Name = value; return this; } - } - - public static class MenuItemExample - { - @DataMember(Order=1) - @ApiMember() - public String Name1 = null; - - public MenuItemExampleItem MenuItemExampleItem = null; - - public String getName1() { return Name1; } - public MenuItemExample setName1(String value) { this.Name1 = value; return this; } - public MenuItemExampleItem getMenuItemExampleItem() { return MenuItemExampleItem; } - public MenuItemExample setMenuItemExampleItem(MenuItemExampleItem value) { this.MenuItemExampleItem = value; return this; } - } - - public static class MetadataTypeName - { - public String Name = null; - public String Namespace = null; - public ArrayList GenericArgs = null; - - public String getName() { return Name; } - public MetadataTypeName setName(String value) { this.Name = value; return this; } - public String getNamespace() { return Namespace; } - public MetadataTypeName setNamespace(String value) { this.Namespace = value; return this; } - public ArrayList getGenericArgs() { return GenericArgs; } - public MetadataTypeName setGenericArgs(ArrayList value) { this.GenericArgs = value; return this; } - } - - public static class MetadataRoute - { - public String Path = null; - public String Verbs = null; - public String Notes = null; - public String Summary = null; - - public String getPath() { return Path; } - public MetadataRoute setPath(String value) { this.Path = value; return this; } - public String getVerbs() { return Verbs; } - public MetadataRoute setVerbs(String value) { this.Verbs = value; return this; } - public String getNotes() { return Notes; } - public MetadataRoute setNotes(String value) { this.Notes = value; return this; } - public String getSummary() { return Summary; } - public MetadataRoute setSummary(String value) { this.Summary = value; return this; } - } - - public static class MetadataDataContract - { - public String Name = null; - public String Namespace = null; - - public String getName() { return Name; } - public MetadataDataContract setName(String value) { this.Name = value; return this; } - public String getNamespace() { return Namespace; } - public MetadataDataContract setNamespace(String value) { this.Namespace = value; return this; } - } - - public static class MetadataPropertyType - { - public String Name = null; - public String Type = null; - public Boolean IsValueType = null; - public String TypeNamespace = null; - public ArrayList GenericArgs = null; - public String Value = null; - public String Description = null; - public MetadataDataMember DataMember = null; - public Boolean ReadOnly = null; - public String ParamType = null; - public String DisplayType = null; - public Boolean IsRequired = null; - public ArrayList AllowableValues = null; - public Integer AllowableMin = null; - public Integer AllowableMax = null; - public ArrayList Attributes = null; - - public String getName() { return Name; } - public MetadataPropertyType setName(String value) { this.Name = value; return this; } - public String getType() { return Type; } - public MetadataPropertyType setType(String value) { this.Type = value; return this; } - public Boolean getIsValueType() { return IsValueType; } - public MetadataPropertyType setIsValueType(Boolean value) { this.IsValueType = value; return this; } - public String getTypeNamespace() { return TypeNamespace; } - public MetadataPropertyType setTypeNamespace(String value) { this.TypeNamespace = value; return this; } - public ArrayList getGenericArgs() { return GenericArgs; } - public MetadataPropertyType setGenericArgs(ArrayList value) { this.GenericArgs = value; return this; } - public String getValue() { return Value; } - public MetadataPropertyType setValue(String value) { this.Value = value; return this; } - public String getDescription() { return Description; } - public MetadataPropertyType setDescription(String value) { this.Description = value; return this; } - public MetadataDataMember getDataMember() { return DataMember; } - public MetadataPropertyType setDataMember(MetadataDataMember value) { this.DataMember = value; return this; } - public Boolean isReadOnly() { return ReadOnly; } - public MetadataPropertyType setReadOnly(Boolean value) { this.ReadOnly = value; return this; } - public String getParamType() { return ParamType; } - public MetadataPropertyType setParamType(String value) { this.ParamType = value; return this; } - public String getDisplayType() { return DisplayType; } - public MetadataPropertyType setDisplayType(String value) { this.DisplayType = value; return this; } - public Boolean getIsRequired() { return IsRequired; } - public MetadataPropertyType setIsRequired(Boolean value) { this.IsRequired = value; return this; } - public ArrayList getAllowableValues() { return AllowableValues; } - public MetadataPropertyType setAllowableValues(ArrayList value) { this.AllowableValues = value; return this; } - public Integer getAllowableMin() { return AllowableMin; } - public MetadataPropertyType setAllowableMin(Integer value) { this.AllowableMin = value; return this; } - public Integer getAllowableMax() { return AllowableMax; } - public MetadataPropertyType setAllowableMax(Integer value) { this.AllowableMax = value; return this; } - public ArrayList getAttributes() { return Attributes; } - public MetadataPropertyType setAttributes(ArrayList value) { this.Attributes = value; return this; } - } - - public static class MetadataAttribute - { - public String Name = null; - public ArrayList ConstructorArgs = null; - public ArrayList Args = null; - - public String getName() { return Name; } - public MetadataAttribute setName(String value) { this.Name = value; return this; } - public ArrayList getConstructorArgs() { return ConstructorArgs; } - public MetadataAttribute setConstructorArgs(ArrayList value) { this.ConstructorArgs = value; return this; } - public ArrayList getArgs() { return Args; } - public MetadataAttribute setArgs(ArrayList value) { this.Args = value; return this; } - } - - @DataContract - public static class Property - { - @DataMember - public String Name = null; - - @DataMember - public String Value = null; - - public String getName() { return Name; } - public Property setName(String value) { this.Name = value; return this; } - public String getValue() { return Value; } - public Property setValue(String value) { this.Value = value; return this; } - } - - public static class SubType - { - public Integer Id = null; - public String Name = null; - - public Integer getId() { return Id; } - public SubType setId(Integer value) { this.Id = value; return this; } - public String getName() { return Name; } - public SubType setName(String value) { this.Name = value; return this; } - } - - public static class TypeB - { - public String Foo = null; - - public String getFoo() { return Foo; } - public TypeB setFoo(String value) { this.Foo = value; return this; } - } - - public static class TypesGroup - { - - } - - public static class MenuItemExampleItem - { - @DataMember(Order=1) - @ApiMember() - public String Name1 = null; - - public String getName1() { return Name1; } - public MenuItemExampleItem setName1(String value) { this.Name1 = value; return this; } - } - - public static class MetadataDataMember - { - public String Name = null; - public Integer Order = null; - public Boolean IsRequired = null; - public Boolean EmitDefaultValue = null; - - public String getName() { return Name; } - public MetadataDataMember setName(String value) { this.Name = value; return this; } - public Integer getOrder() { return Order; } - public MetadataDataMember setOrder(Integer value) { this.Order = value; return this; } - public Boolean getIsRequired() { return IsRequired; } - public MetadataDataMember setIsRequired(Boolean value) { this.IsRequired = value; return this; } - public Boolean isEmitDefaultValue() { return EmitDefaultValue; } - public MetadataDataMember setEmitDefaultValue(Boolean value) { this.EmitDefaultValue = value; return this; } - } - - @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 ChangeRequestResponse - { - public String ContentType = null; - public String Header = null; - public String QueryString = null; - public String Form = null; - public ResponseStatus ResponseStatus = null; - - public String getContentType() { return ContentType; } - public ChangeRequestResponse setContentType(String value) { this.ContentType = value; return this; } - public String getHeader() { return Header; } - public ChangeRequestResponse setHeader(String value) { this.Header = value; return this; } - public String getQueryString() { return QueryString; } - public ChangeRequestResponse setQueryString(String value) { this.QueryString = value; return this; } - public String getForm() { return Form; } - public ChangeRequestResponse setForm(String value) { this.Form = value; return this; } - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public ChangeRequestResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - } - - public static class CustomHttpErrorResponse - { - public String Custom = null; - public ResponseStatus ResponseStatus = null; - - public String getCustom() { return Custom; } - public CustomHttpErrorResponse setCustom(String value) { this.Custom = value; return this; } - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public CustomHttpErrorResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - } - - public static class CustomFieldHttpErrorResponse - { - public String Custom = null; - public ResponseStatus ResponseStatus = null; - - public String getCustom() { return Custom; } - public CustomFieldHttpErrorResponse setCustom(String value) { this.Custom = value; return this; } - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public CustomFieldHttpErrorResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - } - - public static class NoRepeatResponse - { - public UUID Id = null; - - public UUID getId() { return Id; } - public NoRepeatResponse setId(UUID value) { this.Id = value; return this; } - } - - public static class BatchThrowsResponse - { - public String Result = null; - public ResponseStatus ResponseStatus = null; - - public String getResult() { return Result; } - public BatchThrowsResponse setResult(String value) { this.Result = value; return this; } - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public BatchThrowsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - } - - public static class MetadataTestResponse - { - public Integer Id = null; - public ArrayList Results = null; - - public Integer getId() { return Id; } - public MetadataTestResponse setId(Integer value) { this.Id = value; return this; } - public ArrayList getResults() { return Results; } - public MetadataTestResponse setResults(ArrayList value) { this.Results = value; return this; } - } - - @DataContract - public static class GetExampleResponse - { - @DataMember(Order=1) - public ResponseStatus ResponseStatus = null; - - @DataMember(Order=2) - @ApiMember() - public MenuExample MenuExample1 = null; - - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public GetExampleResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - public MenuExample getMenuExample1() { return MenuExample1; } - public GetExampleResponse setMenuExample1(MenuExample value) { this.MenuExample1 = value; return this; } - } - - public static class AutoQueryMetadataResponse - { - public AutoQueryViewerConfig Config = null; - public ArrayList Operations = null; - public ArrayList Types = null; - public ResponseStatus ResponseStatus = null; - - public AutoQueryViewerConfig getConfig() { return Config; } - public AutoQueryMetadataResponse setConfig(AutoQueryViewerConfig value) { this.Config = value; return this; } - public ArrayList getOperations() { return Operations; } - public AutoQueryMetadataResponse setOperations(ArrayList value) { this.Operations = value; return this; } - public ArrayList getTypes() { return Types; } - public AutoQueryMetadataResponse setTypes(ArrayList value) { this.Types = value; return this; } - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public AutoQueryMetadataResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - } - - public static class HelloResponse - { - public String Result = null; - - public String getResult() { return Result; } - public HelloResponse setResult(String value) { this.Result = value; return this; } - } - - /** - * Description on HelloAllResponse type - */ - @DataContract - public static class HelloAnnotatedResponse - { - @DataMember - public String Result = null; - - public String getResult() { return Result; } - public HelloAnnotatedResponse setResult(String value) { this.Result = value; return this; } - } - - public static class HelloExistingResponse - { - public HelloList HelloList = null; - public HelloArray HelloArray = null; - public ArrayList ArrayResults = null; - public ArrayList ListResults = null; - - public HelloList getHelloList() { return HelloList; } - public HelloExistingResponse setHelloList(HelloList value) { this.HelloList = value; return this; } - public HelloArray getHelloArray() { return HelloArray; } - public HelloExistingResponse setHelloArray(HelloArray value) { this.HelloArray = value; return this; } - public ArrayList getArrayResults() { return ArrayResults; } - public HelloExistingResponse setArrayResults(ArrayList value) { this.ArrayResults = value; return this; } - public ArrayList getListResults() { return ListResults; } - public HelloExistingResponse setListResults(ArrayList value) { this.ListResults = value; return this; } - } - - public static class HelloAllTypesResponse - { - public String Result = null; - public AllTypes AllTypes = null; - public AllCollectionTypes AllCollectionTypes = null; - - public String getResult() { return Result; } - public HelloAllTypesResponse setResult(String value) { this.Result = value; return this; } - public AllTypes getAllTypes() { return AllTypes; } - public HelloAllTypesResponse setAllTypes(AllTypes value) { this.AllTypes = value; return this; } - public AllCollectionTypes getAllCollectionTypes() { return AllCollectionTypes; } - public HelloAllTypesResponse setAllCollectionTypes(AllCollectionTypes value) { this.AllCollectionTypes = value; return this; } - } - - @DataContract - public static class HelloWithDataContractResponse - { - @DataMember(Name="result", Order=1, IsRequired=true, EmitDefaultValue=false) - public String Result = null; - - public String getResult() { return Result; } - public HelloWithDataContractResponse setResult(String value) { this.Result = value; return this; } - } - - /** - * Description on HelloWithDescriptionResponse type - */ - public static class HelloWithDescriptionResponse - { - public String Result = null; - - public String getResult() { return Result; } - public HelloWithDescriptionResponse setResult(String value) { this.Result = value; return this; } - } - - public static class HelloWithInheritanceResponse extends HelloResponseBase - { - public String Result = null; - - public String getResult() { return Result; } - public HelloWithInheritanceResponse setResult(String value) { this.Result = value; return this; } - } - - public static class HelloWithAlternateReturnResponse extends HelloWithReturnResponse - { - public String AltResult = null; - - public String getAltResult() { return AltResult; } - public HelloWithAlternateReturnResponse setAltResult(String value) { this.AltResult = value; return this; } - } - - public static class HelloWithRouteResponse - { - public String Result = null; - - public String getResult() { return Result; } - public HelloWithRouteResponse setResult(String value) { this.Result = value; return this; } - } - - public static class HelloWithTypeResponse - { - public HelloType Result = null; - - public HelloType getResult() { return Result; } - public HelloWithTypeResponse setResult(HelloType value) { this.Result = value; return this; } - } - - public static class HelloSessionResponse - { - public AuthUserSession Result = null; - - public AuthUserSession getResult() { return Result; } - public HelloSessionResponse setResult(AuthUserSession value) { this.Result = value; return this; } - } - - public static class Request1Response - { - public TypeA Test = null; - - public TypeA getTest() { return Test; } - public Request1Response setTest(TypeA value) { this.Test = value; return this; } - } - - public static class Request2Response - { - public TypeA Test = null; - - public TypeA getTest() { return Test; } - public Request2Response setTest(TypeA value) { this.Test = value; return this; } - } - - public static class HelloInnerTypesResponse - { - public InnerType InnerType = null; - public InnerEnum InnerEnum = null; - - public InnerType getInnerType() { return InnerType; } - public HelloInnerTypesResponse setInnerType(InnerType value) { this.InnerType = value; return this; } - public InnerEnum getInnerEnum() { return InnerEnum; } - public HelloInnerTypesResponse setInnerEnum(InnerEnum value) { this.InnerEnum = value; return this; } - } - - public static class CustomUserSession extends AuthUserSession - { - @DataMember - public String CustomName = null; - - @DataMember - public String CustomInfo = null; - - public String getCustomName() { return CustomName; } - public CustomUserSession setCustomName(String value) { this.CustomName = value; return this; } - public String getCustomInfo() { return CustomInfo; } - public CustomUserSession setCustomInfo(String value) { this.CustomInfo = value; return this; } - } - - public static class Echo - { - public String Sentence = null; - - public String getSentence() { return Sentence; } - public Echo setSentence(String value) { this.Sentence = value; return this; } - } - - public static class ThrowTypeResponse - { - public ResponseStatus ResponseStatus = null; - - public ResponseStatus getResponseStatus() { return ResponseStatus; } - public ThrowTypeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } - } - - public static class acsprofileResponse - { - public String profileId = null; - - public String getProfileId() { return profileId; } - public acsprofileResponse setProfileId(String value) { this.profileId = value; return this; } - } - - public static class AddressResponse - { - public String Address = null; - - public String getAddress() { return Address; } - public AddressResponse setAddress(String value) { this.Address = value; return this; } - } - - @Route("/anontype") - public static class AnonType - { - - } - - @Route("/query/rockstars") - public static class QueryRockstars extends QueryBase_1 implements IReturn> - { - public Integer Age = null; - - public Integer getAge() { return Age; } - public QueryRockstars setAge(Integer value) { this.Age = value; return this; } - private static Class responseType = new QueryResponse().getClass(); - public Class getResponseType() { return responseType; } - } - - @Route("/changerequest/{Id}") - public static class ChangeRequest implements IReturn - { - public String Id = null; - - public String getId() { return Id; } - public ChangeRequest setId(String value) { this.Id = value; return this; } - private static Class responseType = ChangeRequestResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("/Routing/LeadPost.aspx") - public static class LegacyLeadPost - { - public String LeadType = null; - public Integer MyId = null; - - public String getLeadType() { return LeadType; } - public LegacyLeadPost setLeadType(String value) { this.LeadType = value; return this; } - public Integer getMyId() { return MyId; } - public LegacyLeadPost setMyId(Integer value) { this.MyId = value; return this; } - } - - @Route("/info/{Id}") - public static class Info - { - public String Id = null; - - public String getId() { return Id; } - public Info setId(String value) { this.Id = value; return this; } - } - - public static class CustomHttpError implements IReturn - { - public Integer StatusCode = null; - public String StatusDescription = null; - - public Integer getStatusCode() { return StatusCode; } - public CustomHttpError setStatusCode(Integer value) { this.StatusCode = value; return this; } - public String getStatusDescription() { return StatusDescription; } - public CustomHttpError setStatusDescription(String value) { this.StatusDescription = value; return this; } - private static Class responseType = CustomHttpErrorResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class CustomFieldHttpError implements IReturn - { - - private static Class responseType = CustomFieldHttpErrorResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("{PathInfo*}") - public static class FallbackRoute - { - public String PathInfo = null; - - public String getPathInfo() { return PathInfo; } - public FallbackRoute setPathInfo(String value) { this.PathInfo = value; return this; } - } - - public static class NoRepeat implements IReturn - { - public UUID Id = null; - - public UUID getId() { return Id; } - public NoRepeat setId(UUID value) { this.Id = value; return this; } - private static Class responseType = NoRepeatResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class BatchThrows implements IReturn - { - public Integer Id = null; - public String Name = null; - - public Integer getId() { return Id; } - public BatchThrows setId(Integer value) { this.Id = value; return this; } - public String getName() { return Name; } - public BatchThrows setName(String value) { this.Name = value; return this; } - private static Class responseType = BatchThrowsResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class BatchThrowsAsync implements IReturn - { - public Integer Id = null; - public String Name = null; - - public Integer getId() { return Id; } - public BatchThrowsAsync setId(Integer value) { this.Id = value; return this; } - public String getName() { return Name; } - public BatchThrowsAsync setName(String value) { this.Name = value; return this; } - private static Class responseType = BatchThrowsResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class MetadataTest implements IReturn - { - public Integer Id = null; - - public Integer getId() { return Id; } - public MetadataTest setId(Integer value) { this.Id = value; return this; } - private static Class responseType = MetadataTestResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route(Path="/example", Verbs="GET") - @DataContract - public static class GetExample implements IReturn - { - - private static Class responseType = GetExampleResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class MetadataRequest implements IReturn - { - public MetadataType MetadataType = null; - - public MetadataType getMetadataType() { return MetadataType; } - public MetadataRequest setMetadataType(MetadataType value) { this.MetadataType = value; return this; } - private static Class responseType = AutoQueryMetadataResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("/namedconnection") - public static class NamedConnection - { - public String EmailAddresses = null; - - public String getEmailAddresses() { return EmailAddresses; } - public NamedConnection setEmailAddresses(String value) { this.EmailAddresses = value; return this; } - } - - public static class Issue221Long extends Issue221Base - { - - } - - public static class HelloInService implements IReturn - { - public String Name = null; - - public String getName() { return Name; } - public HelloInService setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("/hello/{Name}") - // @Route("/hello") - public static class Hello implements IReturn - { - @Required() - public String Name = null; - - public String Title = null; - - public String getName() { return Name; } - public Hello setName(String value) { this.Name = value; return this; } - public String getTitle() { return Title; } - public Hello setTitle(String value) { this.Title = value; return this; } - private static Class responseType = HelloResponse.class; - public Class getResponseType() { return responseType; } - } - - /** - * Description on HelloAll type - */ - @DataContract - public static class HelloAnnotated implements IReturn - { - @DataMember - public String Name = null; - - public String getName() { return Name; } - public HelloAnnotated setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloAnnotatedResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloWithNestedClass implements IReturn - { - public String Name = null; - public NestedClass NestedClassProp = null; - - public String getName() { return Name; } - public HelloWithNestedClass setName(String value) { this.Name = value; return this; } - public NestedClass getNestedClassProp() { return NestedClassProp; } - public HelloWithNestedClass setNestedClassProp(NestedClass value) { this.NestedClassProp = value; return this; } - private static Class responseType = HelloResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloList implements IReturn> - { - public ArrayList Names = null; - - public ArrayList getNames() { return Names; } - public HelloList setNames(ArrayList value) { this.Names = value; return this; } - private static Class responseType = new ArrayList().getClass(); - public Class getResponseType() { return responseType; } - } - - public static class HelloArray implements IReturn> - { - public ArrayList Names = null; - - public ArrayList getNames() { return Names; } - public HelloArray setNames(ArrayList value) { this.Names = value; return this; } - private static Class responseType = new ArrayList().getClass(); - public Class getResponseType() { return responseType; } - } - - public static class HelloExisting implements IReturn - { - public ArrayList Names = null; - - public ArrayList getNames() { return Names; } - public HelloExisting setNames(ArrayList value) { this.Names = value; return this; } - private static Class responseType = HelloExistingResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloWithEnum - { - public EnumType EnumProp = null; - public EnumType NullableEnumProp = null; - public EnumFlags EnumFlags = null; - - public EnumType getEnumProp() { return EnumProp; } - public HelloWithEnum setEnumProp(EnumType value) { this.EnumProp = value; return this; } - public EnumType getNullableEnumProp() { return NullableEnumProp; } - public HelloWithEnum setNullableEnumProp(EnumType value) { this.NullableEnumProp = value; return this; } - public EnumFlags getEnumFlags() { return EnumFlags; } - public HelloWithEnum setEnumFlags(EnumFlags value) { this.EnumFlags = value; return this; } - } - - public static class RestrictedAttributes - { - public Integer Id = null; - public String Name = null; - public Hello Hello = null; - - public Integer getId() { return Id; } - public RestrictedAttributes setId(Integer value) { this.Id = value; return this; } - public String getName() { return Name; } - public RestrictedAttributes setName(String value) { this.Name = value; return this; } - public Hello getHello() { return Hello; } - public RestrictedAttributes setHello(Hello value) { this.Hello = value; return this; } - } - - /** - * AllowedAttributes Description - */ - @Route(Path="/allowed-attributes", Verbs="GET") - @Api("AllowedAttributes Description") - // @ApiResponse(400, "Your request was not understood") - @DataContract - public static class AllowedAttributes - { - @DataMember(Name="Aliased") - @ApiMember(Description="Range Description", ParameterType="path", DataType="double", IsRequired=true) - public Double Range = null; - - public Double getRange() { return Range; } - public AllowedAttributes setRange(Double value) { this.Range = value; return this; } - } - - public static class HelloAllTypes implements IReturn - { - public String Name = null; - public AllTypes AllTypes = null; - public AllCollectionTypes AllCollectionTypes = null; - - public String getName() { return Name; } - public HelloAllTypes setName(String value) { this.Name = value; return this; } - public AllTypes getAllTypes() { return AllTypes; } - public HelloAllTypes setAllTypes(AllTypes value) { this.AllTypes = value; return this; } - public AllCollectionTypes getAllCollectionTypes() { return AllCollectionTypes; } - public HelloAllTypes setAllCollectionTypes(AllCollectionTypes value) { this.AllCollectionTypes = value; return this; } - private static Class responseType = HelloAllTypesResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloString - { - public String Name = null; - - public String getName() { return Name; } - public HelloString setName(String value) { this.Name = value; return this; } - } - - public static class HelloVoid implements IReturnVoid - { - public String Name = null; - - public String getName() { return Name; } - public HelloVoid setName(String value) { this.Name = value; return this; } - } - - @DataContract - public static class HelloWithDataContract implements IReturn - { - @DataMember(Name="name", Order=1, IsRequired=true, EmitDefaultValue=false) - public String Name = null; - - @DataMember(Name="id", Order=2, EmitDefaultValue=false) - public Integer Id = null; - - public String getName() { return Name; } - public HelloWithDataContract setName(String value) { this.Name = value; return this; } - public Integer getId() { return Id; } - public HelloWithDataContract setId(Integer value) { this.Id = value; return this; } - private static Class responseType = HelloWithDataContractResponse.class; - public Class getResponseType() { return responseType; } - } - - /** - * Description on HelloWithDescription type - */ - public static class HelloWithDescription implements IReturn - { - public String Name = null; - - public String getName() { return Name; } - public HelloWithDescription setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloWithDescriptionResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloWithInheritance extends HelloBase implements IReturn - { - public String Name = null; - - public String getName() { return Name; } - public HelloWithInheritance setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloWithInheritanceResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloWithGenericInheritance extends HelloBase_1 - { - public String Result = null; - - public String getResult() { return Result; } - public HelloWithGenericInheritance setResult(String value) { this.Result = value; return this; } - } - - public static class HelloWithGenericInheritance2 extends HelloBase_1 - { - public String Result = null; - - public String getResult() { return Result; } - public HelloWithGenericInheritance2 setResult(String value) { this.Result = value; return this; } - } - - public static class HelloWithNestedInheritance extends HelloBase_1 - { - - } - - public static class HelloWithListInheritance extends ArrayList - { - - } - - public static class HelloWithReturn implements IReturn - { - public String Name = null; - - public String getName() { return Name; } - public HelloWithReturn setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloWithAlternateReturnResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("/helloroute") - public static class HelloWithRoute implements IReturn - { - public String Name = null; - - public String getName() { return Name; } - public HelloWithRoute setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloWithRouteResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloWithType implements IReturn - { - public String Name = null; - - public String getName() { return Name; } - public HelloWithType setName(String value) { this.Name = value; return this; } - private static Class responseType = HelloWithTypeResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloSession implements IReturn - { - - private static Class responseType = HelloSessionResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloInterface - { - public IPoco Poco = null; - public IEmptyInterface EmptyInterface = null; - public EmptyClass EmptyClass = null; - public String Value = null; - - public IPoco getPoco() { return Poco; } - public HelloInterface setPoco(IPoco value) { this.Poco = value; return this; } - public IEmptyInterface getEmptyInterface() { return EmptyInterface; } - public HelloInterface setEmptyInterface(IEmptyInterface value) { this.EmptyInterface = value; return this; } - public EmptyClass getEmptyClass() { return EmptyClass; } - public HelloInterface setEmptyClass(EmptyClass value) { this.EmptyClass = value; return this; } - public String getValue() { return Value; } - public HelloInterface setValue(String value) { this.Value = value; return this; } - } - - public static class Request1 implements IReturn - { - public TypeA Test = null; - - public TypeA getTest() { return Test; } - public Request1 setTest(TypeA value) { this.Test = value; return this; } - private static Class responseType = Request1Response.class; - public Class getResponseType() { return responseType; } - } - - public static class Request2 implements IReturn - { - public TypeA Test = null; - - public TypeA getTest() { return Test; } - public Request2 setTest(TypeA value) { this.Test = value; return this; } - private static Class responseType = Request2Response.class; - public Class getResponseType() { return responseType; } - } - - public static class HelloInnerTypes implements IReturn - { - - private static Class responseType = HelloInnerTypesResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class GetUserSession implements IReturn - { - - private static Class responseType = CustomUserSession.class; - public Class getResponseType() { return responseType; } - } - - /** - * Echoes a sentence - */ - @Route(Path="/echoes", Verbs="POST") - @Api("Echoes a sentence") - public static class Echoes implements IReturn - { - @ApiMember(Description="The sentence to echo.", ParameterType="form", DataType="string", IsRequired=true, Name="Sentence") - public String Sentence = null; - - public String getSentence() { return Sentence; } - public Echoes setSentence(String value) { this.Sentence = value; return this; } - private static Class responseType = Echo.class; - public Class getResponseType() { return responseType; } - } - - public static class CachedEcho - { - public Boolean Reload = null; - public String Sentence = null; - - public Boolean isReload() { return Reload; } - public CachedEcho setReload(Boolean value) { this.Reload = value; return this; } - public String getSentence() { return Sentence; } - public CachedEcho setSentence(String value) { this.Sentence = value; return this; } - } - - public static class AsyncTest implements IReturn - { - - private static Class responseType = Echo.class; - public Class getResponseType() { return responseType; } - } - - @Route("/throwhttperror/{Status}") - public static class ThrowHttpError - { - public Integer Status = null; - public String Message = null; - - public Integer getStatus() { return Status; } - public ThrowHttpError setStatus(Integer value) { this.Status = value; return this; } - public String getMessage() { return Message; } - public ThrowHttpError setMessage(String value) { this.Message = value; return this; } - } - - @Route("/throw404") - // @Route("/throw404/{Message}") - public static class Throw404 - { - public String Message = null; - - public String getMessage() { return Message; } - public Throw404 setMessage(String value) { this.Message = value; return this; } - } - - @Route("/throw/{Type}") - public static class ThrowType implements IReturn - { - public String Type = null; - public String Message = null; - - public String getType() { return Type; } - public ThrowType setType(String value) { this.Type = value; return this; } - public String getMessage() { return Message; } - public ThrowType setMessage(String value) { this.Message = value; return this; } - private static Class responseType = ThrowTypeResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("/api/acsprofiles/{profileId}") - // @Route(Path="/api/acsprofiles", Verbs="POST,PUT,PATCH,DELETE") - public static class ACSProfile implements IReturn - { - public String profileId = null; - @Required() - @StringLength(20) - public String shortName = null; - - @StringLength(60) - public String longName = null; - - @StringLength(20) - public String regionId = null; - - @StringLength(20) - public String groupId = null; - - @StringLength(12) - public String deviceID = null; - - public Date lastUpdated = null; - public Boolean enabled = null; - - public String getProfileId() { return profileId; } - public ACSProfile setProfileId(String value) { this.profileId = value; return this; } - public String getShortName() { return shortName; } - public ACSProfile setShortName(String value) { this.shortName = value; return this; } - public String getLongName() { return longName; } - public ACSProfile setLongName(String value) { this.longName = value; return this; } - public String getRegionId() { return regionId; } - public ACSProfile setRegionId(String value) { this.regionId = value; return this; } - public String getGroupId() { return groupId; } - public ACSProfile setGroupId(String value) { this.groupId = value; return this; } - public String getDeviceID() { return deviceID; } - public ACSProfile setDeviceID(String value) { this.deviceID = value; return this; } - public Date getLastUpdated() { return lastUpdated; } - public ACSProfile setLastUpdated(Date value) { this.lastUpdated = value; return this; } - public Boolean isEnabled() { return enabled; } - public ACSProfile setEnabled(Boolean value) { this.enabled = value; return this; } - private static Class responseType = acsprofileResponse.class; - public Class getResponseType() { return responseType; } - } - - public static class TestMiniverView - { - - } - - @Route("/user/{UserId}/Address") - public static class UpdateAddress implements IReturn - { - public Integer UserId = null; - public String Address = null; - - public Integer getUserId() { return UserId; } - public UpdateAddress setUserId(Integer value) { this.UserId = value; return this; } - public String getAddress() { return Address; } - public UpdateAddress setAddress(String value) { this.Address = value; return this; } - private static Class responseType = AddressResponse.class; - public Class getResponseType() { return responseType; } - } - - @Route("/user/{UserId}/AddressVoid") - public static class UpdateAddressVoid implements IReturnVoid - { - public Integer UserId = null; - public String Address = null; - - public Integer getUserId() { return UserId; } - public UpdateAddressVoid setUserId(Integer value) { this.UserId = value; return this; } - public String getAddress() { return Address; } - public UpdateAddressVoid setAddress(String value) { this.Address = value; return this; } - } - -} \ No newline at end of file diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/tests/TestDtos.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/tests/TestDtos.java new file mode 100644 index 00000000..6a1a3652 --- /dev/null +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/tests/TestDtos.java @@ -0,0 +1,4568 @@ +/* Options: +Date: 2024-10-24 02:46:25 +Version: 8.41 +Tip: To override a DTO option, remove "//" prefix before updating +BaseUrl: https://test.servicestack.net + +Package: net.servicestack.client.tests +GlobalNamespace: TestDtos +//AddPropertyAccessors: True +//SettersReturnThis: True +//AddServiceStackTypes: True +//AddResponseStatus: False +//AddDescriptionAsComments: True +//AddImplicitVersion: +//IncludeTypes: +//ExcludeTypes: +//TreatTypesAsStrings: +//DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.*,java.io.* +*/ + +package net.servicestack.client.tests; + +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 TestDtos +{ + + public static class QueryItems extends QueryDb_2 implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/channels/{Channel}/raw") + public static class PostRawToChannel implements IReturnVoid + { + public String from = null; + public String toUserId = null; + public String channel = null; + public String message = null; + public String selector = null; + + public String getFrom() { return from; } + public PostRawToChannel setFrom(String value) { this.from = value; return this; } + public String getToUserId() { return toUserId; } + public PostRawToChannel setToUserId(String value) { this.toUserId = value; return this; } + public String getChannel() { return channel; } + public PostRawToChannel setChannel(String value) { this.channel = value; return this; } + public String getMessage() { return message; } + public PostRawToChannel setMessage(String value) { this.message = value; return this; } + public String getSelector() { return selector; } + public PostRawToChannel setSelector(String value) { this.selector = value; return this; } + } + + @Route(Path="/channels/{Channel}/chat") + public static class PostChatToChannel implements IReturn + { + public String from = null; + public String toUserId = null; + public String channel = null; + public String message = null; + public String selector = null; + + public String getFrom() { return from; } + public PostChatToChannel setFrom(String value) { this.from = value; return this; } + public String getToUserId() { return toUserId; } + public PostChatToChannel setToUserId(String value) { this.toUserId = value; return this; } + public String getChannel() { return channel; } + public PostChatToChannel setChannel(String value) { this.channel = value; return this; } + public String getMessage() { return message; } + public PostChatToChannel setMessage(String value) { this.message = value; return this; } + public String getSelector() { return selector; } + public PostChatToChannel setSelector(String value) { this.selector = value; return this; } + private static Object responseType = ChatMessage.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/chathistory") + public static class GetChatHistory implements IReturn + { + public ArrayList channels = null; + public Long afterId = null; + public Integer take = null; + + public ArrayList getChannels() { return channels; } + public GetChatHistory setChannels(ArrayList value) { this.channels = value; return this; } + public Long getAfterId() { return afterId; } + public GetChatHistory setAfterId(Long value) { this.afterId = value; return this; } + public Integer getTake() { return take; } + public GetChatHistory setTake(Integer value) { this.take = value; return this; } + private static Object responseType = GetChatHistoryResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/reset") + public static class ClearChatHistory implements IReturnVoid + { + + } + + @Route(Path="/reset-serverevents") + public static class ResetServerEvents implements IReturnVoid + { + + } + + @Route(Path="/channels/{Channel}/object") + public static class PostObjectToChannel implements IReturnVoid + { + public String toUserId = null; + public String channel = null; + public String selector = null; + public CustomType customType = null; + public SetterType setterType = null; + + public String getToUserId() { return toUserId; } + public PostObjectToChannel setToUserId(String value) { this.toUserId = value; return this; } + public String getChannel() { return channel; } + public PostObjectToChannel setChannel(String value) { this.channel = value; return this; } + public String getSelector() { return selector; } + public PostObjectToChannel setSelector(String value) { this.selector = value; return this; } + public CustomType getCustomType() { return customType; } + public PostObjectToChannel setCustomType(CustomType value) { this.customType = value; return this; } + public SetterType getSetterType() { return setterType; } + public PostObjectToChannel setSetterType(SetterType value) { this.setterType = value; return this; } + } + + @Route(Path="/account") + public static class GetUserDetails implements IReturn + { + + private static Object responseType = GetUserDetailsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CustomHttpError implements IReturn + { + public Integer statusCode = null; + public String statusDescription = null; + + public Integer getStatusCode() { return statusCode; } + public CustomHttpError setStatusCode(Integer value) { this.statusCode = value; return this; } + public String getStatusDescription() { return statusDescription; } + public CustomHttpError setStatusDescription(String value) { this.statusDescription = value; return this; } + private static Object responseType = CustomHttpErrorResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class AltQueryItems implements IReturn> + { + public String name = null; + + public String getName() { return name; } + public AltQueryItems setName(String value) { this.name = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class GetItems implements IReturn + { + + private static Object responseType = Items.class; + public Object getResponseType() { return responseType; } + } + + public static class GetNakedItems implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @ValidateRequest(Validator="IsAuthenticated") + public static class DeclarativeValidationAuth + { + public String name = null; + + public String getName() { return name; } + public DeclarativeValidationAuth setName(String value) { this.name = value; return this; } + } + + public static class DeclarativeCollectiveValidationTest implements IReturn + { + @Validate(Validator="NotEmpty") + // @Validate(Validator="MaximumLength(20)") + public String site = null; + + public ArrayList declarativeValidations = null; + public ArrayList fluentValidations = null; + + public String getSite() { return site; } + public DeclarativeCollectiveValidationTest setSite(String value) { this.site = value; return this; } + public ArrayList getDeclarativeValidations() { return declarativeValidations; } + public DeclarativeCollectiveValidationTest setDeclarativeValidations(ArrayList value) { this.declarativeValidations = value; return this; } + public ArrayList getFluentValidations() { return fluentValidations; } + public DeclarativeCollectiveValidationTest setFluentValidations(ArrayList value) { this.fluentValidations = value; return this; } + private static Object responseType = EmptyResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class DeclarativeSingleValidationTest implements IReturn + { + @Validate(Validator="NotEmpty") + // @Validate(Validator="MaximumLength(20)") + public String site = null; + + public DeclarativeSingleValidation declarativeSingleValidation = null; + public FluentSingleValidation fluentSingleValidation = null; + + public String getSite() { return site; } + public DeclarativeSingleValidationTest setSite(String value) { this.site = value; return this; } + public DeclarativeSingleValidation getDeclarativeSingleValidation() { return declarativeSingleValidation; } + public DeclarativeSingleValidationTest setDeclarativeSingleValidation(DeclarativeSingleValidation value) { this.declarativeSingleValidation = value; return this; } + public FluentSingleValidation getFluentSingleValidation() { return fluentSingleValidation; } + public DeclarativeSingleValidationTest setFluentSingleValidation(FluentSingleValidation value) { this.fluentSingleValidation = value; return this; } + private static Object responseType = EmptyResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class DummyTypes + { + public ArrayList helloResponses = null; + public ArrayList listResult = null; + public ArrayList arrayResult = null; + public CancelRequest cancelRequest = null; + public CancelRequestResponse cancelRequestResponse = null; + public UpdateEventSubscriber updateEventSubscriber = null; + public UpdateEventSubscriberResponse updateEventSubscriberResponse = null; + public GetApiKeys getApiKeys = null; + public GetApiKeysResponse getApiKeysResponse = null; + public RegenerateApiKeys regenerateApiKeys = null; + public RegenerateApiKeysResponse regenerateApiKeysResponse = null; + public UserApiKey userApiKey = null; + public ConvertSessionToToken convertSessionToToken = null; + public ConvertSessionToTokenResponse convertSessionToTokenResponse = null; + public GetAccessToken getAccessToken = null; + public GetAccessTokenResponse getAccessTokenResponse = null; + public NavItem navItem = null; + public GetNavItems getNavItems = null; + public GetNavItemsResponse getNavItemsResponse = null; + public EmptyResponse emptyResponse = null; + public IdResponse idResponse = null; + public StringResponse stringResponse = null; + public StringsResponse stringsResponse = null; + public AuditBase auditBase = null; + + public ArrayList getHelloResponses() { return helloResponses; } + public DummyTypes setHelloResponses(ArrayList value) { this.helloResponses = value; return this; } + public ArrayList getListResult() { return listResult; } + public DummyTypes setListResult(ArrayList value) { this.listResult = value; return this; } + public ArrayList getArrayResult() { return arrayResult; } + public DummyTypes setArrayResult(ArrayList value) { this.arrayResult = value; return this; } + public CancelRequest getCancelRequest() { return cancelRequest; } + public DummyTypes setCancelRequest(CancelRequest value) { this.cancelRequest = value; return this; } + public CancelRequestResponse getCancelRequestResponse() { return cancelRequestResponse; } + public DummyTypes setCancelRequestResponse(CancelRequestResponse value) { this.cancelRequestResponse = value; return this; } + public UpdateEventSubscriber getUpdateEventSubscriber() { return updateEventSubscriber; } + public DummyTypes setUpdateEventSubscriber(UpdateEventSubscriber value) { this.updateEventSubscriber = value; return this; } + public UpdateEventSubscriberResponse getUpdateEventSubscriberResponse() { return updateEventSubscriberResponse; } + public DummyTypes setUpdateEventSubscriberResponse(UpdateEventSubscriberResponse value) { this.updateEventSubscriberResponse = value; return this; } + public GetApiKeys getGetApiKeys() { return getApiKeys; } + public DummyTypes setGetApiKeys(GetApiKeys value) { this.getApiKeys = value; return this; } + public GetApiKeysResponse getGetApiKeysResponse() { return getApiKeysResponse; } + public DummyTypes setGetApiKeysResponse(GetApiKeysResponse value) { this.getApiKeysResponse = value; return this; } + public RegenerateApiKeys getRegenerateApiKeys() { return regenerateApiKeys; } + public DummyTypes setRegenerateApiKeys(RegenerateApiKeys value) { this.regenerateApiKeys = value; return this; } + public RegenerateApiKeysResponse getRegenerateApiKeysResponse() { return regenerateApiKeysResponse; } + public DummyTypes setRegenerateApiKeysResponse(RegenerateApiKeysResponse value) { this.regenerateApiKeysResponse = value; return this; } + public UserApiKey getUserApiKey() { return userApiKey; } + public DummyTypes setUserApiKey(UserApiKey value) { this.userApiKey = value; return this; } + public ConvertSessionToToken getConvertSessionToToken() { return convertSessionToToken; } + public DummyTypes setConvertSessionToToken(ConvertSessionToToken value) { this.convertSessionToToken = value; return this; } + public ConvertSessionToTokenResponse getConvertSessionToTokenResponse() { return convertSessionToTokenResponse; } + public DummyTypes setConvertSessionToTokenResponse(ConvertSessionToTokenResponse value) { this.convertSessionToTokenResponse = value; return this; } + public GetAccessToken getGetAccessToken() { return getAccessToken; } + public DummyTypes setGetAccessToken(GetAccessToken value) { this.getAccessToken = value; return this; } + public GetAccessTokenResponse getGetAccessTokenResponse() { return getAccessTokenResponse; } + public DummyTypes setGetAccessTokenResponse(GetAccessTokenResponse value) { this.getAccessTokenResponse = value; return this; } + public NavItem getNavItem() { return navItem; } + public DummyTypes setNavItem(NavItem value) { this.navItem = value; return this; } + public GetNavItems getGetNavItems() { return getNavItems; } + public DummyTypes setGetNavItems(GetNavItems value) { this.getNavItems = value; return this; } + public GetNavItemsResponse getGetNavItemsResponse() { return getNavItemsResponse; } + public DummyTypes setGetNavItemsResponse(GetNavItemsResponse value) { this.getNavItemsResponse = value; return this; } + public EmptyResponse getEmptyResponse() { return emptyResponse; } + public DummyTypes setEmptyResponse(EmptyResponse value) { this.emptyResponse = value; return this; } + public IdResponse getIdResponse() { return idResponse; } + public DummyTypes setIdResponse(IdResponse value) { this.idResponse = value; return this; } + public StringResponse getStringResponse() { return stringResponse; } + public DummyTypes setStringResponse(StringResponse value) { this.stringResponse = value; return this; } + public StringsResponse getStringsResponse() { return stringsResponse; } + public DummyTypes setStringsResponse(StringsResponse value) { this.stringsResponse = value; return this; } + public AuditBase getAuditBase() { return auditBase; } + public DummyTypes setAuditBase(AuditBase value) { this.auditBase = value; return this; } + } + + @Route(Path="/throwhttperror/{Status}") + public static class ThrowHttpError + { + public Integer status = null; + public String message = null; + + public Integer getStatus() { return status; } + public ThrowHttpError setStatus(Integer value) { this.status = value; return this; } + public String getMessage() { return message; } + public ThrowHttpError setMessage(String value) { this.message = value; return this; } + } + + @Route(Path="/throw404") + // @Route(Path="/throw404/{Message}") + public static class Throw404 + { + public String message = null; + + public String getMessage() { return message; } + public Throw404 setMessage(String value) { this.message = value; return this; } + } + + @Route(Path="/throwcustom400") + // @Route(Path="/throwcustom400/{Message}") + public static class ThrowCustom400 + { + public String message = null; + + public String getMessage() { return message; } + public ThrowCustom400 setMessage(String value) { this.message = value; return this; } + } + + @Route(Path="/returncustom400") + // @Route(Path="/returncustom400/{Message}") + public static class ReturnCustom400 implements IReturn + { + public String message = null; + + public String getMessage() { return message; } + public ReturnCustom400 setMessage(String value) { this.message = value; return this; } + private static Object responseType = ReturnCustom400Response.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/throw/{Type}") + public static class ThrowType implements IReturn + { + public String type = null; + public String message = null; + + public String getType() { return type; } + public ThrowType setType(String value) { this.type = value; return this; } + public String getMessage() { return message; } + public ThrowType setMessage(String value) { this.message = value; return this; } + private static Object responseType = ThrowTypeResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/throwvalidation") + public static class ThrowValidation implements IReturn + { + public Integer age = null; + public String required = null; + public String email = null; + + public Integer getAge() { return age; } + public ThrowValidation setAge(Integer value) { this.age = value; return this; } + public String getRequired() { return required; } + public ThrowValidation setRequired(String value) { this.required = value; return this; } + public String getEmail() { return email; } + public ThrowValidation setEmail(String value) { this.email = value; return this; } + private static Object responseType = ThrowValidationResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/throwbusinesserror") + public static class ThrowBusinessError implements IReturn + { + + private static Object responseType = ThrowBusinessErrorResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert speech to text + */ + @Api(Description="Convert speech to text") + public static class SpeechToText implements IReturn, IGeneration + { + /** + * The audio stream containing the speech to be transcribed + */ + @ApiMember(Description="The audio stream containing the speech to be transcribed") + @Required() + public InputStream audio = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getAudio() { return audio; } + public SpeechToText setAudio(InputStream value) { this.audio = value; return this; } + public String getRefId() { return refId; } + public SpeechToText setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public SpeechToText setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class TestFileUploads implements IReturn + { + public Integer id = null; + public String refId = null; + + public Integer getId() { return id; } + public TestFileUploads setId(Integer value) { this.id = value; return this; } + public String getRefId() { return refId; } + public TestFileUploads setRefId(String value) { this.refId = value; return this; } + private static Object responseType = TestFileUploadsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class RootPathRoutes + { + public String path = null; + + public String getPath() { return path; } + public RootPathRoutes setPath(String value) { this.path = value; return this; } + } + + public static class GetAccount implements IReturn + { + public String account = null; + + public String getAccount() { return account; } + public GetAccount setAccount(String value) { this.account = value; return this; } + private static Object responseType = Account.class; + public Object getResponseType() { return responseType; } + } + + public static class GetProject implements IReturn + { + public String account = null; + public String project = null; + + public String getAccount() { return account; } + public GetProject setAccount(String value) { this.account = value; return this; } + public String getProject() { return project; } + public GetProject setProject(String value) { this.project = value; return this; } + private static Object responseType = Project.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/image-stream") + public static class ImageAsStream implements IReturn + { + public String format = null; + + public String getFormat() { return format; } + public ImageAsStream setFormat(String value) { this.format = value; return this; } + private static Object responseType = InputStream.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/image-bytes") + public static class ImageAsBytes implements IReturn + { + public String format = null; + + public String getFormat() { return format; } + public ImageAsBytes setFormat(String value) { this.format = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/image-custom") + public static class ImageAsCustomResult implements IReturn + { + public String format = null; + + public String getFormat() { return format; } + public ImageAsCustomResult setFormat(String value) { this.format = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/image-response") + public static class ImageWriteToResponse implements IReturn + { + public String format = null; + + public String getFormat() { return format; } + public ImageWriteToResponse setFormat(String value) { this.format = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/image-file") + public static class ImageAsFile implements IReturn + { + public String format = null; + + public String getFormat() { return format; } + public ImageAsFile setFormat(String value) { this.format = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/image-redirect") + public static class ImageAsRedirect + { + public String format = null; + + public String getFormat() { return format; } + public ImageAsRedirect setFormat(String value) { this.format = value; return this; } + } + + @Route(Path="/hello-image/{Name}") + public static class HelloImage implements IReturn + { + public String name = null; + public String format = null; + public Integer width = null; + public Integer height = null; + public Integer fontSize = null; + public String fontFamily = null; + public String foreground = null; + public String background = null; + + public String getName() { return name; } + public HelloImage setName(String value) { this.name = value; return this; } + public String getFormat() { return format; } + public HelloImage setFormat(String value) { this.format = value; return this; } + public Integer getWidth() { return width; } + public HelloImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public HelloImage setHeight(Integer value) { this.height = value; return this; } + public Integer getFontSize() { return fontSize; } + public HelloImage setFontSize(Integer value) { this.fontSize = value; return this; } + public String getFontFamily() { return fontFamily; } + public HelloImage setFontFamily(String value) { this.fontFamily = value; return this; } + public String getForeground() { return foreground; } + public HelloImage setForeground(String value) { this.foreground = value; return this; } + public String getBackground() { return background; } + public HelloImage setBackground(String value) { this.background = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/secured") + @ValidateRequest(Validator="IsAuthenticated") + public static class Secured implements IReturn + { + public String name = null; + + public String getName() { return name; } + public Secured setName(String value) { this.name = value; return this; } + private static Object responseType = SecuredResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/jwt") + public static class CreateJwt extends AuthUserSession implements IReturn + { + public Date jwtExpiry = null; + + public Date getJwtExpiry() { return jwtExpiry; } + public CreateJwt setJwtExpiry(Date value) { this.jwtExpiry = value; return this; } + private static Object responseType = CreateJwtResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/jwt-refresh") + public static class CreateRefreshJwt implements IReturn + { + public String userAuthId = null; + public Date jwtExpiry = null; + + public String getUserAuthId() { return userAuthId; } + public CreateRefreshJwt setUserAuthId(String value) { this.userAuthId = value; return this; } + public Date getJwtExpiry() { return jwtExpiry; } + public CreateRefreshJwt setJwtExpiry(Date value) { this.jwtExpiry = value; return this; } + private static Object responseType = CreateRefreshJwtResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/jwt-invalidate") + public static class InvalidateLastAccessToken implements IReturn + { + + private static Object responseType = EmptyResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/logs") + public static class ViewLogs implements IReturn + { + public Boolean clear = null; + + public Boolean isClear() { return clear; } + public ViewLogs setClear(Boolean value) { this.clear = value; return this; } + private static Object responseType = String.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/metadatatest") + public static class MetadataTest implements IReturn + { + public Integer id = null; + + public Integer getId() { return id; } + public MetadataTest setId(Integer value) { this.id = value; return this; } + private static Object responseType = MetadataTestResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/metadatatest-array") + public static class MetadataTestArray implements IReturn> + { + public Integer id = null; + + public Integer getId() { return id; } + public MetadataTestArray setId(Integer value) { this.id = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/example", Verbs="GET") + @DataContract + public static class GetExample implements IReturn + { + + private static Object responseType = GetExampleResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/messages/{Id}", Verbs="GET") + public static class RequestMessage implements IReturn + { + public Integer id = null; + + public Integer getId() { return id; } + public RequestMessage setId(Integer value) { this.id = value; return this; } + private static Object responseType = Message.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/messages/{Id}", Verbs="PUT") + public static class Message implements IReturn + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public Message setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public Message setName(String value) { this.name = value; return this; } + private static Object responseType = Message.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/randomids") + public static class GetRandomIds implements IReturn + { + public Integer take = null; + + public Integer getTake() { return take; } + public GetRandomIds setTake(Integer value) { this.take = value; return this; } + private static Object responseType = GetRandomIdsResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/textfile-test") + public static class TextFileTest + { + public Boolean asAttachment = null; + + public Boolean isAsAttachment() { return asAttachment; } + public TextFileTest setAsAttachment(Boolean value) { this.asAttachment = value; return this; } + } + + @Route(Path="/return/text") + public static class ReturnText + { + public String text = null; + + public String getText() { return text; } + public ReturnText setText(String value) { this.text = value; return this; } + } + + @Route(Path="/return/html") + public static class ReturnHtml + { + public String text = null; + + public String getText() { return text; } + public ReturnHtml setText(String value) { this.text = value; return this; } + } + + @Route(Path="/hello") + // @Route(Path="/hello/{Name}") + public static class Hello implements IReturn + { + @Required() + public String name = null; + + public String title = null; + + public String getName() { return name; } + public Hello setName(String value) { this.name = value; return this; } + public String getTitle() { return title; } + public Hello setTitle(String value) { this.title = value; return this; } + private static Object responseType = HelloResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/hello-secure/{Name}") + @ValidateRequest(Validator="IsAuthenticated") + public static class HelloSecure implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloSecure setName(String value) { this.name = value; return this; } + private static Object responseType = HelloResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Description on HelloAll type + */ + @DataContract + public static class HelloAnnotated implements IReturn + { + @DataMember + public String name = null; + + public String getName() { return name; } + public HelloAnnotated setName(String value) { this.name = value; return this; } + private static Object responseType = HelloAnnotatedResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloWithNestedClass implements IReturn + { + public String name = null; + public NestedClass nestedClassProp = null; + + public String getName() { return name; } + public HelloWithNestedClass setName(String value) { this.name = value; return this; } + public NestedClass getNestedClassProp() { return nestedClassProp; } + public HelloWithNestedClass setNestedClassProp(NestedClass value) { this.nestedClassProp = value; return this; } + private static Object responseType = HelloResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloList implements IReturn> + { + public ArrayList names = null; + + public ArrayList getNames() { return names; } + public HelloList setNames(ArrayList value) { this.names = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class HelloArray implements IReturn> + { + public ArrayList names = null; + + public ArrayList getNames() { return names; } + public HelloArray setNames(ArrayList value) { this.names = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class HelloMap implements IReturn> + { + public ArrayList names = null; + + public ArrayList getNames() { return names; } + public HelloMap setNames(ArrayList value) { this.names = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class HelloQueryResponse implements IReturn> + { + public ArrayList names = null; + + public ArrayList getNames() { return names; } + public HelloQueryResponse setNames(ArrayList value) { this.names = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class HelloWithEnum + { + public EnumType enumProp = null; + public EnumTypeFlags enumTypeFlags = null; + public EnumWithValues enumWithValues = null; + public EnumType nullableEnumProp = null; + public EnumFlags enumFlags = null; + public EnumAsInt enumAsInt = null; + public EnumStyle enumStyle = null; + public EnumStyleMembers enumStyleMembers = null; + + public EnumType getEnumProp() { return enumProp; } + public HelloWithEnum setEnumProp(EnumType value) { this.enumProp = value; return this; } + public EnumTypeFlags getEnumTypeFlags() { return enumTypeFlags; } + public HelloWithEnum setEnumTypeFlags(EnumTypeFlags value) { this.enumTypeFlags = value; return this; } + public EnumWithValues getEnumWithValues() { return enumWithValues; } + public HelloWithEnum setEnumWithValues(EnumWithValues value) { this.enumWithValues = value; return this; } + public EnumType getNullableEnumProp() { return nullableEnumProp; } + public HelloWithEnum setNullableEnumProp(EnumType value) { this.nullableEnumProp = value; return this; } + public EnumFlags getEnumFlags() { return enumFlags; } + public HelloWithEnum setEnumFlags(EnumFlags value) { this.enumFlags = value; return this; } + public EnumAsInt getEnumAsInt() { return enumAsInt; } + public HelloWithEnum setEnumAsInt(EnumAsInt value) { this.enumAsInt = value; return this; } + public EnumStyle getEnumStyle() { return enumStyle; } + public HelloWithEnum setEnumStyle(EnumStyle value) { this.enumStyle = value; return this; } + public EnumStyleMembers getEnumStyleMembers() { return enumStyleMembers; } + public HelloWithEnum setEnumStyleMembers(EnumStyleMembers value) { this.enumStyleMembers = value; return this; } + } + + public static class HelloWithEnumList + { + public ArrayList enumProp = null; + public ArrayList enumWithValues = null; + public ArrayList nullableEnumProp = null; + public ArrayList enumFlags = null; + public ArrayList enumStyle = null; + + public ArrayList getEnumProp() { return enumProp; } + public HelloWithEnumList setEnumProp(ArrayList value) { this.enumProp = value; return this; } + public ArrayList getEnumWithValues() { return enumWithValues; } + public HelloWithEnumList setEnumWithValues(ArrayList value) { this.enumWithValues = value; return this; } + public ArrayList getNullableEnumProp() { return nullableEnumProp; } + public HelloWithEnumList setNullableEnumProp(ArrayList value) { this.nullableEnumProp = value; return this; } + public ArrayList getEnumFlags() { return enumFlags; } + public HelloWithEnumList setEnumFlags(ArrayList value) { this.enumFlags = value; return this; } + public ArrayList getEnumStyle() { return enumStyle; } + public HelloWithEnumList setEnumStyle(ArrayList value) { this.enumStyle = value; return this; } + } + + public static class HelloWithEnumMap + { + public HashMap enumProp = null; + public HashMap enumWithValues = null; + public HashMap nullableEnumProp = null; + public HashMap enumFlags = null; + public HashMap enumStyle = null; + + public HashMap getEnumProp() { return enumProp; } + public HelloWithEnumMap setEnumProp(HashMap value) { this.enumProp = value; return this; } + public HashMap getEnumWithValues() { return enumWithValues; } + public HelloWithEnumMap setEnumWithValues(HashMap value) { this.enumWithValues = value; return this; } + public HashMap getNullableEnumProp() { return nullableEnumProp; } + public HelloWithEnumMap setNullableEnumProp(HashMap value) { this.nullableEnumProp = value; return this; } + public HashMap getEnumFlags() { return enumFlags; } + public HelloWithEnumMap setEnumFlags(HashMap value) { this.enumFlags = value; return this; } + public HashMap getEnumStyle() { return enumStyle; } + public HelloWithEnumMap setEnumStyle(HashMap value) { this.enumStyle = value; return this; } + } + + public static class RestrictedAttributes + { + public Integer id = null; + public String name = null; + public Hello hello = null; + + public Integer getId() { return id; } + public RestrictedAttributes setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public RestrictedAttributes setName(String value) { this.name = value; return this; } + public Hello getHello() { return hello; } + public RestrictedAttributes setHello(Hello value) { this.hello = value; return this; } + } + + /** + * AllowedAttributes Description + */ + @Route(Path="/allowed-attributes", Verbs="GET") + @Api(Description="AllowedAttributes Description") + @ApiResponse(Description="Your request was not understood", StatusCode=400) + @DataContract + public static class AllowedAttributes + { + /** + * Range Description + */ + @DataMember(Name="Aliased") + @SerializedName("Aliased") + @ApiMember(DataType="double", Description="Range Description", IsRequired=true, ParameterType="path") + public Double range = null; + + public Double getRange() { return range; } + public AllowedAttributes setRange(Double value) { this.range = value; return this; } + } + + @Route(Path="/all-types") + public static class HelloAllTypes implements IReturn + { + public String name = null; + public AllTypes allTypes = null; + public AllCollectionTypes allCollectionTypes = null; + + public String getName() { return name; } + public HelloAllTypes setName(String value) { this.name = value; return this; } + public AllTypes getAllTypes() { return allTypes; } + public HelloAllTypes setAllTypes(AllTypes value) { this.allTypes = value; return this; } + public AllCollectionTypes getAllCollectionTypes() { return allCollectionTypes; } + public HelloAllTypes setAllCollectionTypes(AllCollectionTypes value) { this.allCollectionTypes = value; return this; } + private static Object responseType = HelloAllTypesResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloSubAllTypes extends AllTypesBase implements IReturn + { + public Integer hierarchy = null; + + public Integer getHierarchy() { return hierarchy; } + public HelloSubAllTypes setHierarchy(Integer value) { this.hierarchy = value; return this; } + private static Object responseType = SubAllTypes.class; + public Object getResponseType() { return responseType; } + } + + public static class AllTypes implements IReturn + { + public Integer id = null; + public Integer nullableId = null; + @SerializedName("byte") public Short Byte = null; + @SerializedName("short") public Short Short = null; + @SerializedName("int") public Integer Int = null; + @SerializedName("long") public Long Long = null; + public Integer uShort = null; + public Long uInt = null; + public BigInteger uLong = null; + @SerializedName("float") public Float Float = null; + @SerializedName("double") public Double Double = null; + public BigDecimal decimal = null; + public String string = null; + public Date dateTime = null; + public TimeSpan timeSpan = null; + public Date dateTimeOffset = null; + public UUID guid = null; + @SerializedName("char") public String Char = null; + public KeyValuePair keyValuePair = null; + public Date nullableDateTime = null; + public TimeSpan nullableTimeSpan = null; + public ArrayList stringList = null; + public ArrayList stringArray = null; + public HashMap stringMap = null; + public HashMap intStringMap = null; + public SubType subType = null; + + public Integer getId() { return id; } + public AllTypes setId(Integer value) { this.id = value; return this; } + public Integer getNullableId() { return nullableId; } + public AllTypes setNullableId(Integer value) { this.nullableId = value; return this; } + public Short getByte() { return Byte; } + public AllTypes setByte(Short value) { this.Byte = value; return this; } + public Short getShort() { return Short; } + public AllTypes setShort(Short value) { this.Short = value; return this; } + public Integer getInt() { return Int; } + public AllTypes setInt(Integer value) { this.Int = value; return this; } + public Long getLong() { return Long; } + public AllTypes setLong(Long value) { this.Long = value; return this; } + public Integer getUShort() { return uShort; } + public AllTypes setUShort(Integer value) { this.uShort = value; return this; } + public Long getUInt() { return uInt; } + public AllTypes setUInt(Long value) { this.uInt = value; return this; } + public BigInteger getULong() { return uLong; } + public AllTypes setULong(BigInteger value) { this.uLong = value; return this; } + public Float getFloat() { return Float; } + public AllTypes setFloat(Float value) { this.Float = value; return this; } + public Double getDouble() { return Double; } + public AllTypes setDouble(Double value) { this.Double = value; return this; } + public BigDecimal getDecimal() { return decimal; } + public AllTypes setDecimal(BigDecimal value) { this.decimal = value; return this; } + public String getString() { return string; } + public AllTypes setString(String value) { this.string = value; return this; } + public Date getDateTime() { return dateTime; } + public AllTypes setDateTime(Date value) { this.dateTime = value; return this; } + public TimeSpan getTimeSpan() { return timeSpan; } + public AllTypes setTimeSpan(TimeSpan value) { this.timeSpan = value; return this; } + public Date getDateTimeOffset() { return dateTimeOffset; } + public AllTypes setDateTimeOffset(Date value) { this.dateTimeOffset = value; return this; } + public UUID getGuid() { return guid; } + public AllTypes setGuid(UUID value) { this.guid = value; return this; } + public String getChar() { return Char; } + public AllTypes setChar(String value) { this.Char = value; return this; } + public KeyValuePair getKeyValuePair() { return keyValuePair; } + public AllTypes setKeyValuePair(KeyValuePair value) { this.keyValuePair = value; return this; } + public Date getNullableDateTime() { return nullableDateTime; } + public AllTypes setNullableDateTime(Date value) { this.nullableDateTime = value; return this; } + public TimeSpan getNullableTimeSpan() { return nullableTimeSpan; } + public AllTypes setNullableTimeSpan(TimeSpan value) { this.nullableTimeSpan = value; return this; } + public ArrayList getStringList() { return stringList; } + public AllTypes setStringList(ArrayList value) { this.stringList = value; return this; } + public ArrayList getStringArray() { return stringArray; } + public AllTypes setStringArray(ArrayList value) { this.stringArray = value; return this; } + public HashMap getStringMap() { return stringMap; } + public AllTypes setStringMap(HashMap value) { this.stringMap = value; return this; } + public HashMap getIntStringMap() { return intStringMap; } + public AllTypes setIntStringMap(HashMap value) { this.intStringMap = value; return this; } + public SubType getSubType() { return subType; } + public AllTypes setSubType(SubType value) { this.subType = value; return this; } + private static Object responseType = AllTypes.class; + public Object getResponseType() { return responseType; } + } + + public static class AllCollectionTypes implements IReturn + { + public ArrayList intArray = null; + public ArrayList intList = null; + public ArrayList stringArray = null; + public ArrayList stringList = null; + public ArrayList floatArray = null; + public ArrayList doubleList = null; + public byte[] byteArray = null; + public ArrayList charArray = null; + public ArrayList decimalList = null; + public ArrayList pocoArray = null; + public ArrayList pocoList = null; + public HashMap> pocoLookup = null; + public HashMap>> pocoLookupMap = null; + + public ArrayList getIntArray() { return intArray; } + public AllCollectionTypes setIntArray(ArrayList value) { this.intArray = value; return this; } + public ArrayList getIntList() { return intList; } + public AllCollectionTypes setIntList(ArrayList value) { this.intList = value; return this; } + public ArrayList getStringArray() { return stringArray; } + public AllCollectionTypes setStringArray(ArrayList value) { this.stringArray = value; return this; } + public ArrayList getStringList() { return stringList; } + public AllCollectionTypes setStringList(ArrayList value) { this.stringList = value; return this; } + public ArrayList getFloatArray() { return floatArray; } + public AllCollectionTypes setFloatArray(ArrayList value) { this.floatArray = value; return this; } + public ArrayList getDoubleList() { return doubleList; } + public AllCollectionTypes setDoubleList(ArrayList value) { this.doubleList = value; return this; } + public byte[] getByteArray() { return byteArray; } + public AllCollectionTypes setByteArray(byte[] value) { this.byteArray = value; return this; } + public ArrayList getCharArray() { return charArray; } + public AllCollectionTypes setCharArray(ArrayList value) { this.charArray = value; return this; } + public ArrayList getDecimalList() { return decimalList; } + public AllCollectionTypes setDecimalList(ArrayList value) { this.decimalList = value; return this; } + public ArrayList getPocoArray() { return pocoArray; } + public AllCollectionTypes setPocoArray(ArrayList value) { this.pocoArray = value; return this; } + public ArrayList getPocoList() { return pocoList; } + public AllCollectionTypes setPocoList(ArrayList value) { this.pocoList = value; return this; } + public HashMap> getPocoLookup() { return pocoLookup; } + public AllCollectionTypes setPocoLookup(HashMap> value) { this.pocoLookup = value; return this; } + public HashMap>> getPocoLookupMap() { return pocoLookupMap; } + public AllCollectionTypes setPocoLookupMap(HashMap>> value) { this.pocoLookupMap = value; return this; } + private static Object responseType = AllCollectionTypes.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloString implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloString setName(String value) { this.name = value; return this; } + private static Object responseType = String.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloDateTime implements IReturn + { + public Date dateTime = null; + + public Date getDateTime() { return dateTime; } + public HelloDateTime setDateTime(Date value) { this.dateTime = value; return this; } + private static Object responseType = HelloDateTime.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloVoid + { + public String name = null; + + public String getName() { return name; } + public HelloVoid setName(String value) { this.name = value; return this; } + } + + @DataContract + public static class HelloWithDataContract implements IReturn + { + @DataMember(Name="name", Order=1, IsRequired=true, EmitDefaultValue=false) + @SerializedName("name") + public String name = null; + + @DataMember(Name="id", Order=2, EmitDefaultValue=false) + @SerializedName("id") + public Integer id = null; + + public String getName() { return name; } + public HelloWithDataContract setName(String value) { this.name = value; return this; } + public Integer getId() { return id; } + public HelloWithDataContract setId(Integer value) { this.id = value; return this; } + private static Object responseType = HelloWithDataContractResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Description on HelloWithDescription type + */ + public static class HelloWithDescription implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloWithDescription setName(String value) { this.name = value; return this; } + private static Object responseType = HelloWithDescriptionResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloWithInheritance extends HelloBase implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloWithInheritance setName(String value) { this.name = value; return this; } + private static Object responseType = HelloWithInheritanceResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloWithGenericInheritance extends HelloBase_1 + { + public String result = null; + + public String getResult() { return result; } + public HelloWithGenericInheritance setResult(String value) { this.result = value; return this; } + } + + public static class HelloWithGenericInheritance2 extends HelloBase_1 + { + public String result = null; + + public String getResult() { return result; } + public HelloWithGenericInheritance2 setResult(String value) { this.result = value; return this; } + } + + public static class HelloWithReturn implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloWithReturn setName(String value) { this.name = value; return this; } + private static Object responseType = HelloWithAlternateReturnResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/helloroute") + public static class HelloWithRoute implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloWithRoute setName(String value) { this.name = value; return this; } + private static Object responseType = HelloWithRouteResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloWithType implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloWithType setName(String value) { this.name = value; return this; } + private static Object responseType = HelloWithTypeResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloInterface + { + public IPoco poco = null; + public IEmptyInterface emptyInterface = null; + public EmptyClass emptyClass = null; + + public IPoco getPoco() { return poco; } + public HelloInterface setPoco(IPoco value) { this.poco = value; return this; } + public IEmptyInterface getEmptyInterface() { return emptyInterface; } + public HelloInterface setEmptyInterface(IEmptyInterface value) { this.emptyInterface = value; return this; } + public EmptyClass getEmptyClass() { return emptyClass; } + public HelloInterface setEmptyClass(EmptyClass value) { this.emptyClass = value; return this; } + } + + public static class HelloInnerTypes implements IReturn + { + + private static Object responseType = HelloInnerTypesResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloBuiltin + { + public DayOfWeek dayOfWeek = null; + + public DayOfWeek getDayOfWeek() { return dayOfWeek; } + public HelloBuiltin setDayOfWeek(DayOfWeek value) { this.dayOfWeek = value; return this; } + } + + public static class HelloGet implements IReturn, IGet + { + public Integer id = null; + + public Integer getId() { return id; } + public HelloGet setId(Integer value) { this.id = value; return this; } + private static Object responseType = HelloVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloPost extends HelloBase implements IReturn, IPost + { + + private static Object responseType = HelloVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloPut implements IReturn, IPut + { + public Integer id = null; + + public Integer getId() { return id; } + public HelloPut setId(Integer value) { this.id = value; return this; } + private static Object responseType = HelloVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloDelete implements IReturn, IDelete + { + public Integer id = null; + + public Integer getId() { return id; } + public HelloDelete setId(Integer value) { this.id = value; return this; } + private static Object responseType = HelloVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloPatch implements IReturn, IPatch + { + public Integer id = null; + + public Integer getId() { return id; } + public HelloPatch setId(Integer value) { this.id = value; return this; } + private static Object responseType = HelloVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloReturnVoid implements IReturnVoid + { + public Integer id = null; + + public Integer getId() { return id; } + public HelloReturnVoid setId(Integer value) { this.id = value; return this; } + } + + public static class EnumRequest implements IReturn, IPut + { + public ScopeType operator = null; + + public ScopeType getOperator() { return operator; } + public EnumRequest setOperator(ScopeType value) { this.operator = value; return this; } + private static Object responseType = EnumResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/hellotypes/{Name}") + public static class HelloTypes implements IReturn + { + public String string = null; + public Boolean bool = null; + @SerializedName("int") public Integer Int = null; + + public String getString() { return string; } + public HelloTypes setString(String value) { this.string = value; return this; } + public Boolean isBool() { return bool; } + public HelloTypes setBool(Boolean value) { this.bool = value; return this; } + public Integer getInt() { return Int; } + public HelloTypes setInt(Integer value) { this.Int = value; return this; } + private static Object responseType = HelloTypes.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/hellozip") + @DataContract + public static class HelloZip implements IReturn + { + @DataMember + public String name = null; + + @DataMember + public ArrayList test = null; + + public String getName() { return name; } + public HelloZip setName(String value) { this.name = value; return this; } + public ArrayList getTest() { return test; } + public HelloZip setTest(ArrayList value) { this.test = value; return this; } + private static Object responseType = HelloZipResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/ping") + public static class Ping implements IReturn + { + + private static Object responseType = PingResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/reset-connections") + public static class ResetConnections + { + + } + + @Route(Path="/requires-role") + public static class RequiresRole implements IReturn + { + + private static Object responseType = RequiresRoleResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/return/string") + public static class ReturnString implements IReturn + { + public String data = null; + + public String getData() { return data; } + public ReturnString setData(String value) { this.data = value; return this; } + private static Object responseType = String.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/return/bytes") + public static class ReturnBytes implements IReturn + { + public byte[] data = null; + + public byte[] getData() { return data; } + public ReturnBytes setData(byte[] value) { this.data = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/return/stream") + public static class ReturnStream implements IReturn + { + public byte[] data = null; + + public byte[] getData() { return data; } + public ReturnStream setData(byte[] value) { this.data = value; return this; } + private static Object responseType = InputStream.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/return/json") + public static class ReturnJson + { + + } + + @Route(Path="/return/json/header") + public static class ReturnJsonHeader + { + + } + + @Route(Path="/write/json") + public static class WriteJson + { + + } + + @Route(Path="/Request1", Verbs="GET") + public static class GetRequest1 implements IReturn>, IGet + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/Request2", Verbs="GET") + public static class GetRequest2 implements IReturn>, IGet + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/sendjson") + public static class SendJson implements IReturn + { + public Integer id = null; + public String name = null; + public InputStream requestStream = null; + + public Integer getId() { return id; } + public SendJson setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public SendJson setName(String value) { this.name = value; return this; } + public InputStream getRequestStream() { return requestStream; } + public SendJson setRequestStream(InputStream value) { this.requestStream = value; return this; } + private static Object responseType = String.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/sendtext") + public static class SendText implements IReturn + { + public Integer id = null; + public String name = null; + public String contentType = null; + public InputStream requestStream = null; + + public Integer getId() { return id; } + public SendText setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public SendText setName(String value) { this.name = value; return this; } + public String getContentType() { return contentType; } + public SendText setContentType(String value) { this.contentType = value; return this; } + public InputStream getRequestStream() { return requestStream; } + public SendText setRequestStream(InputStream value) { this.requestStream = value; return this; } + private static Object responseType = String.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/sendraw") + public static class SendRaw implements IReturn + { + public Integer id = null; + public String name = null; + public String contentType = null; + public InputStream requestStream = null; + + public Integer getId() { return id; } + public SendRaw setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public SendRaw setName(String value) { this.name = value; return this; } + public String getContentType() { return contentType; } + public SendRaw setContentType(String value) { this.contentType = value; return this; } + public InputStream getRequestStream() { return requestStream; } + public SendRaw setRequestStream(InputStream value) { this.requestStream = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + public static class SendDefault implements IReturn + { + public Integer id = null; + + public Integer getId() { return id; } + public SendDefault setId(Integer value) { this.id = value; return this; } + private static Object responseType = SendVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/sendrestget/{Id}", Verbs="GET") + public static class SendRestGet implements IReturn, IGet + { + public Integer id = null; + + public Integer getId() { return id; } + public SendRestGet setId(Integer value) { this.id = value; return this; } + private static Object responseType = SendVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class SendGet implements IReturn, IGet + { + public Integer id = null; + + public Integer getId() { return id; } + public SendGet setId(Integer value) { this.id = value; return this; } + private static Object responseType = SendVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class SendPost implements IReturn, IPost + { + public Integer id = null; + + public Integer getId() { return id; } + public SendPost setId(Integer value) { this.id = value; return this; } + private static Object responseType = SendVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class SendPut implements IReturn, IPut + { + public Integer id = null; + + public Integer getId() { return id; } + public SendPut setId(Integer value) { this.id = value; return this; } + private static Object responseType = SendVerbResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class SendReturnVoid implements IReturnVoid + { + public Integer id = null; + + public Integer getId() { return id; } + public SendReturnVoid setId(Integer value) { this.id = value; return this; } + } + + @Route(Path="/session") + public static class GetSession implements IReturn + { + + private static Object responseType = GetSessionResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/session/edit/{CustomName}") + public static class UpdateSession implements IReturn + { + public String customName = null; + + public String getCustomName() { return customName; } + public UpdateSession setCustomName(String value) { this.customName = value; return this; } + private static Object responseType = GetSessionResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/Stuff") + @DataContract(Namespace="http://schemas.servicestack.net/types") + public static class GetStuff implements IReturn + { + @DataMember + @ApiMember(DataType="DateTime", Name="Summary Date") + public Date summaryDate = null; + + @DataMember + @ApiMember(DataType="DateTime", Name="Summary End Date") + public Date summaryEndDate = null; + + @DataMember + @ApiMember(DataType="string", Name="Symbol") + public String symbol = null; + + @DataMember + @ApiMember(DataType="string", Name="Email") + public String email = null; + + @DataMember + @ApiMember(DataType="bool", Name="Is Enabled") + public Boolean isEnabled = null; + + public Date getSummaryDate() { return summaryDate; } + public GetStuff setSummaryDate(Date value) { this.summaryDate = value; return this; } + public Date getSummaryEndDate() { return summaryEndDate; } + public GetStuff setSummaryEndDate(Date value) { this.summaryEndDate = value; return this; } + public String getSymbol() { return symbol; } + public GetStuff setSymbol(String value) { this.symbol = value; return this; } + public String getEmail() { return email; } + public GetStuff setEmail(String value) { this.email = value; return this; } + public Boolean getIsEnabled() { return isEnabled; } + public GetStuff setIsEnabled(Boolean value) { this.isEnabled = value; return this; } + private static Object responseType = GetStuffResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class StoreLogs implements IReturn + { + public ArrayList loggers = null; + + public ArrayList getLoggers() { return loggers; } + public StoreLogs setLoggers(ArrayList value) { this.loggers = value; return this; } + private static Object responseType = StoreLogsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class HelloAuth implements IReturn + { + public String name = null; + + public String getName() { return name; } + public HelloAuth setName(String value) { this.name = value; return this; } + private static Object responseType = HelloResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/testauth") + public static class TestAuth implements IReturn + { + + private static Object responseType = TestAuthResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class RequiresAdmin implements IReturn + { + public Integer id = null; + + public Integer getId() { return id; } + public RequiresAdmin setId(Integer value) { this.id = value; return this; } + private static Object responseType = RequiresAdmin.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/testdata/AllTypes") + public static class TestDataAllTypes implements IReturn + { + + private static Object responseType = AllTypes.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/testdata/AllCollectionTypes") + public static class TestDataAllCollectionTypes implements IReturn + { + + private static Object responseType = AllCollectionTypes.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/custom") + // @Route(Path="/custom/{Data}") + public static class CustomRoute implements IReturn + { + public String data = null; + + public String getData() { return data; } + public CustomRoute setData(String value) { this.data = value; return this; } + private static Object responseType = CustomRoute.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/void-response") + public static class TestVoidResponse + { + + } + + @Route(Path="/null-response") + public static class TestNullResponse + { + + } + + @Route(Path="/wait/{ForMs}") + public static class Wait implements IReturn + { + public Integer forMs = null; + + public Integer getForMs() { return forMs; } + public Wait setForMs(Integer value) { this.forMs = value; return this; } + private static Object responseType = Wait.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/echo/types") + public static class EchoTypes implements IReturn + { + @SerializedName("byte") public Short Byte = null; + @SerializedName("short") public Short Short = null; + @SerializedName("int") public Integer Int = null; + @SerializedName("long") public Long Long = null; + public Integer uShort = null; + public Long uInt = null; + public BigInteger uLong = null; + @SerializedName("float") public Float Float = null; + @SerializedName("double") public Double Double = null; + public BigDecimal decimal = null; + public String string = null; + public Date dateTime = null; + public TimeSpan timeSpan = null; + public Date dateTimeOffset = null; + public UUID guid = null; + @SerializedName("char") public String Char = null; + + public Short getByte() { return Byte; } + public EchoTypes setByte(Short value) { this.Byte = value; return this; } + public Short getShort() { return Short; } + public EchoTypes setShort(Short value) { this.Short = value; return this; } + public Integer getInt() { return Int; } + public EchoTypes setInt(Integer value) { this.Int = value; return this; } + public Long getLong() { return Long; } + public EchoTypes setLong(Long value) { this.Long = value; return this; } + public Integer getUShort() { return uShort; } + public EchoTypes setUShort(Integer value) { this.uShort = value; return this; } + public Long getUInt() { return uInt; } + public EchoTypes setUInt(Long value) { this.uInt = value; return this; } + public BigInteger getULong() { return uLong; } + public EchoTypes setULong(BigInteger value) { this.uLong = value; return this; } + public Float getFloat() { return Float; } + public EchoTypes setFloat(Float value) { this.Float = value; return this; } + public Double getDouble() { return Double; } + public EchoTypes setDouble(Double value) { this.Double = value; return this; } + public BigDecimal getDecimal() { return decimal; } + public EchoTypes setDecimal(BigDecimal value) { this.decimal = value; return this; } + public String getString() { return string; } + public EchoTypes setString(String value) { this.string = value; return this; } + public Date getDateTime() { return dateTime; } + public EchoTypes setDateTime(Date value) { this.dateTime = value; return this; } + public TimeSpan getTimeSpan() { return timeSpan; } + public EchoTypes setTimeSpan(TimeSpan value) { this.timeSpan = value; return this; } + public Date getDateTimeOffset() { return dateTimeOffset; } + public EchoTypes setDateTimeOffset(Date value) { this.dateTimeOffset = value; return this; } + public UUID getGuid() { return guid; } + public EchoTypes setGuid(UUID value) { this.guid = value; return this; } + public String getChar() { return Char; } + public EchoTypes setChar(String value) { this.Char = value; return this; } + private static Object responseType = EchoTypes.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/echo/collections") + public static class EchoCollections implements IReturn + { + public ArrayList stringList = null; + public ArrayList stringArray = null; + public HashMap stringMap = null; + public HashMap intStringMap = null; + + public ArrayList getStringList() { return stringList; } + public EchoCollections setStringList(ArrayList value) { this.stringList = value; return this; } + public ArrayList getStringArray() { return stringArray; } + public EchoCollections setStringArray(ArrayList value) { this.stringArray = value; return this; } + public HashMap getStringMap() { return stringMap; } + public EchoCollections setStringMap(HashMap value) { this.stringMap = value; return this; } + public HashMap getIntStringMap() { return intStringMap; } + public EchoCollections setIntStringMap(HashMap value) { this.intStringMap = value; return this; } + private static Object responseType = EchoCollections.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/echo/complex") + public static class EchoComplexTypes implements IReturn + { + public SubType subType = null; + public ArrayList subTypes = null; + public HashMap subTypeMap = null; + public HashMap stringMap = null; + public HashMap intStringMap = null; + + public SubType getSubType() { return subType; } + public EchoComplexTypes setSubType(SubType value) { this.subType = value; return this; } + public ArrayList getSubTypes() { return subTypes; } + public EchoComplexTypes setSubTypes(ArrayList value) { this.subTypes = value; return this; } + public HashMap getSubTypeMap() { return subTypeMap; } + public EchoComplexTypes setSubTypeMap(HashMap value) { this.subTypeMap = value; return this; } + public HashMap getStringMap() { return stringMap; } + public EchoComplexTypes setStringMap(HashMap value) { this.stringMap = value; return this; } + public HashMap getIntStringMap() { return intStringMap; } + public EchoComplexTypes setIntStringMap(HashMap value) { this.intStringMap = value; return this; } + private static Object responseType = EchoComplexTypes.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/rockstars", Verbs="POST") + public static class StoreRockstars extends ArrayList implements IReturn + { + + private static Object responseType = StoreRockstars.class; + public Object getResponseType() { return responseType; } + } + + /** + * Sign Up + */ + @Route(Path="/register", Verbs="PUT,POST") + @Api(Description="Sign Up") + @DataContract + public static class Register implements IReturn, IPost + { + @DataMember(Order=1) + public String userName = null; + + @DataMember(Order=2) + public String firstName = null; + + @DataMember(Order=3) + public String lastName = null; + + @DataMember(Order=4) + public String displayName = null; + + @DataMember(Order=5) + public String email = null; + + @DataMember(Order=6) + public String password = null; + + @DataMember(Order=7) + public String confirmPassword = null; + + @DataMember(Order=8) + public Boolean autoLogin = null; + + @DataMember(Order=10) + public String errorView = null; + + @DataMember(Order=11) + public HashMap meta = null; + + public String getUserName() { return userName; } + public Register setUserName(String value) { this.userName = value; return this; } + public String getFirstName() { return firstName; } + public Register setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public Register setLastName(String value) { this.lastName = value; return this; } + public String getDisplayName() { return displayName; } + public Register setDisplayName(String value) { this.displayName = value; return this; } + public String getEmail() { return email; } + public Register setEmail(String value) { this.email = value; return this; } + public String getPassword() { return password; } + public Register setPassword(String value) { this.password = value; return this; } + public String getConfirmPassword() { return confirmPassword; } + public Register setConfirmPassword(String value) { this.confirmPassword = value; return this; } + public Boolean isAutoLogin() { return autoLogin; } + public Register setAutoLogin(Boolean value) { this.autoLogin = value; return this; } + public String getErrorView() { return errorView; } + public Register setErrorView(String value) { this.errorView = value; return this; } + public HashMap getMeta() { return meta; } + public Register setMeta(HashMap value) { this.meta = value; return this; } + private static Object responseType = RegisterResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Sign In + */ + @Route(Path="/auth", Verbs="GET,POST") + // @Route(Path="/auth/{provider}", Verbs="GET,POST") + @Api(Description="Sign In") + @DataContract + public static class Authenticate implements IReturn, IPost + { + /** + * AuthProvider, e.g. credentials + */ + @DataMember(Order=1) + public String provider = null; + + @DataMember(Order=2) + public String userName = null; + + @DataMember(Order=3) + public String password = null; + + @DataMember(Order=4) + public Boolean rememberMe = null; + + @DataMember(Order=5) + public String accessToken = null; + + @DataMember(Order=6) + public String accessTokenSecret = null; + + @DataMember(Order=7) + public String returnUrl = null; + + @DataMember(Order=8) + public String errorView = null; + + @DataMember(Order=9) + public HashMap meta = null; + + public String getProvider() { return provider; } + public Authenticate setProvider(String value) { this.provider = value; return this; } + public String getUserName() { return userName; } + public Authenticate setUserName(String value) { this.userName = value; return this; } + public String getPassword() { return password; } + public Authenticate setPassword(String value) { this.password = value; return this; } + public Boolean isRememberMe() { return rememberMe; } + public Authenticate setRememberMe(Boolean value) { this.rememberMe = value; return this; } + public String getAccessToken() { return accessToken; } + public Authenticate setAccessToken(String value) { this.accessToken = value; return this; } + public String getAccessTokenSecret() { return accessTokenSecret; } + public Authenticate setAccessTokenSecret(String value) { this.accessTokenSecret = value; return this; } + public String getReturnUrl() { return returnUrl; } + public Authenticate setReturnUrl(String value) { this.returnUrl = value; return this; } + public String getErrorView() { return errorView; } + public Authenticate setErrorView(String value) { this.errorView = value; return this; } + public HashMap getMeta() { return meta; } + public Authenticate setMeta(HashMap value) { this.meta = value; return this; } + private static Object responseType = AuthenticateResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/assignroles", Verbs="POST") + @DataContract + public static class AssignRoles implements IReturn, IPost + { + @DataMember(Order=1) + public String userName = null; + + @DataMember(Order=2) + public ArrayList permissions = null; + + @DataMember(Order=3) + public ArrayList roles = null; + + @DataMember(Order=4) + public HashMap meta = null; + + public String getUserName() { return userName; } + public AssignRoles setUserName(String value) { this.userName = value; return this; } + public ArrayList getPermissions() { return permissions; } + public AssignRoles setPermissions(ArrayList value) { this.permissions = value; return this; } + public ArrayList getRoles() { return roles; } + public AssignRoles setRoles(ArrayList value) { this.roles = value; return this; } + public HashMap getMeta() { return meta; } + public AssignRoles setMeta(HashMap value) { this.meta = value; return this; } + private static Object responseType = AssignRolesResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/unassignroles", Verbs="POST") + @DataContract + public static class UnAssignRoles implements IReturn, IPost + { + @DataMember(Order=1) + public String userName = null; + + @DataMember(Order=2) + public ArrayList permissions = null; + + @DataMember(Order=3) + public ArrayList roles = null; + + @DataMember(Order=4) + public HashMap meta = null; + + public String getUserName() { return userName; } + public UnAssignRoles setUserName(String value) { this.userName = value; return this; } + public ArrayList getPermissions() { return permissions; } + public UnAssignRoles setPermissions(ArrayList value) { this.permissions = value; return this; } + public ArrayList getRoles() { return roles; } + public UnAssignRoles setRoles(ArrayList value) { this.roles = value; return this; } + public HashMap getMeta() { return meta; } + public UnAssignRoles setMeta(HashMap value) { this.meta = value; return this; } + private static Object responseType = UnAssignRolesResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class QueryRockstarAudit extends QueryDbTenant_2 implements IReturn> + { + public Integer id = null; + + public Integer getId() { return id; } + public QueryRockstarAudit setId(Integer value) { this.id = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class QueryRockstarAuditSubOr extends QueryDb_2 implements IReturn> + { + public String firstNameStartsWith = null; + public Integer ageOlderThan = null; + + public String getFirstNameStartsWith() { return firstNameStartsWith; } + public QueryRockstarAuditSubOr setFirstNameStartsWith(String value) { this.firstNameStartsWith = value; return this; } + public Integer getAgeOlderThan() { return ageOlderThan; } + public QueryRockstarAuditSubOr setAgeOlderThan(Integer value) { this.ageOlderThan = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class QueryPocoBase extends QueryDb_1 implements IReturn> + { + public Integer id = null; + + public Integer getId() { return id; } + public QueryPocoBase setId(Integer value) { this.id = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class QueryPocoIntoBase extends QueryDb_2 implements IReturn> + { + public Integer id = null; + + public Integer getId() { return id; } + public QueryPocoIntoBase setId(Integer value) { this.id = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/message/query/{Id}", Verbs="GET") + public static class MessageQuery extends QueryDb_1 implements IReturn> + { + public Integer id = null; + + public Integer getId() { return id; } + public MessageQuery setId(Integer value) { this.id = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/rockstars", Verbs="GET") + public static class QueryRockstars extends QueryDb_1 implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class CreateRockstarAudit extends RockstarBase implements IReturn, ICreateDb + { + + private static Object responseType = RockstarWithIdResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CreateRockstarAuditTenant extends CreateAuditTenantBase implements IReturn, IHasSessionId + { + public String sessionId = null; + public String firstName = null; + public String lastName = null; + public Integer age = null; + public Date dateOfBirth = null; + public Date dateDied = null; + public LivingStatus livingStatus = null; + + public String getSessionId() { return sessionId; } + public CreateRockstarAuditTenant setSessionId(String value) { this.sessionId = value; return this; } + public String getFirstName() { return firstName; } + public CreateRockstarAuditTenant setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public CreateRockstarAuditTenant setLastName(String value) { this.lastName = value; return this; } + public Integer getAge() { return age; } + public CreateRockstarAuditTenant setAge(Integer value) { this.age = value; return this; } + public Date getDateOfBirth() { return dateOfBirth; } + public CreateRockstarAuditTenant setDateOfBirth(Date value) { this.dateOfBirth = value; return this; } + public Date getDateDied() { return dateDied; } + public CreateRockstarAuditTenant setDateDied(Date value) { this.dateDied = value; return this; } + public LivingStatus getLivingStatus() { return livingStatus; } + public CreateRockstarAuditTenant setLivingStatus(LivingStatus value) { this.livingStatus = value; return this; } + private static Object responseType = RockstarWithIdAndResultResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class UpdateRockstarAuditTenant extends UpdateAuditTenantBase implements IReturn, IHasSessionId + { + public String sessionId = null; + public Integer id = null; + public String firstName = null; + public LivingStatus livingStatus = null; + + public String getSessionId() { return sessionId; } + public UpdateRockstarAuditTenant setSessionId(String value) { this.sessionId = value; return this; } + public Integer getId() { return id; } + public UpdateRockstarAuditTenant setId(Integer value) { this.id = value; return this; } + public String getFirstName() { return firstName; } + public UpdateRockstarAuditTenant setFirstName(String value) { this.firstName = value; return this; } + public LivingStatus getLivingStatus() { return livingStatus; } + public UpdateRockstarAuditTenant setLivingStatus(LivingStatus value) { this.livingStatus = value; return this; } + private static Object responseType = RockstarWithIdAndResultResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class PatchRockstarAuditTenant extends PatchAuditTenantBase implements IReturn, IHasSessionId + { + public String sessionId = null; + public Integer id = null; + public String firstName = null; + public LivingStatus livingStatus = null; + + public String getSessionId() { return sessionId; } + public PatchRockstarAuditTenant setSessionId(String value) { this.sessionId = value; return this; } + public Integer getId() { return id; } + public PatchRockstarAuditTenant setId(Integer value) { this.id = value; return this; } + public String getFirstName() { return firstName; } + public PatchRockstarAuditTenant setFirstName(String value) { this.firstName = value; return this; } + public LivingStatus getLivingStatus() { return livingStatus; } + public PatchRockstarAuditTenant setLivingStatus(LivingStatus value) { this.livingStatus = value; return this; } + private static Object responseType = RockstarWithIdAndResultResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class SoftDeleteAuditTenant extends SoftDeleteAuditTenantBase implements IReturn + { + public Integer id = null; + + public Integer getId() { return id; } + public SoftDeleteAuditTenant setId(Integer value) { this.id = value; return this; } + private static Object responseType = RockstarWithIdAndResultResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CreateRockstarAuditMqToken extends RockstarBase implements IReturn, ICreateDb, IHasBearerToken + { + public String bearerToken = null; + + public String getBearerToken() { return bearerToken; } + public CreateRockstarAuditMqToken setBearerToken(String value) { this.bearerToken = value; return this; } + private static Object responseType = RockstarWithIdResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class RealDeleteAuditTenant implements IReturn, IDeleteDb, IHasSessionId + { + public String sessionId = null; + public Integer id = null; + public Integer age = null; + + public String getSessionId() { return sessionId; } + public RealDeleteAuditTenant setSessionId(String value) { this.sessionId = value; return this; } + public Integer getId() { return id; } + public RealDeleteAuditTenant setId(Integer value) { this.id = value; return this; } + public Integer getAge() { return age; } + public RealDeleteAuditTenant setAge(Integer value) { this.age = value; return this; } + private static Object responseType = RockstarWithIdAndCountResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CreateRockstarVersion extends RockstarBase implements IReturn, ICreateDb + { + + private static Object responseType = RockstarWithIdAndRowVersionResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/messages/crud/{Id}", Verbs="PUT") + public static class MessageCrud implements IReturnVoid, ISaveDb + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public MessageCrud setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public MessageCrud setName(String value) { this.name = value; return this; } + } + + @Route(Path="/access-token") + @DataContract + public static class GetAccessToken implements IReturn, IPost + { + @DataMember(Order=1) + public String refreshToken = null; + + @DataMember(Order=2) + public HashMap meta = null; + + public String getRefreshToken() { return refreshToken; } + public GetAccessToken setRefreshToken(String value) { this.refreshToken = value; return this; } + public HashMap getMeta() { return meta; } + public GetAccessToken setMeta(HashMap value) { this.meta = value; return this; } + private static Object responseType = GetAccessTokenResponse.class; + 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 ChatMessage + { + public Long id = null; + public String channel = null; + public String fromUserId = null; + public String fromName = null; + public String displayName = null; + public String message = null; + public String userAuthId = null; + @SerializedName("private") public Boolean Private = null; + + public Long getId() { return id; } + public ChatMessage setId(Long value) { this.id = value; return this; } + public String getChannel() { return channel; } + public ChatMessage setChannel(String value) { this.channel = value; return this; } + public String getFromUserId() { return fromUserId; } + public ChatMessage setFromUserId(String value) { this.fromUserId = value; return this; } + public String getFromName() { return fromName; } + public ChatMessage setFromName(String value) { this.fromName = value; return this; } + public String getDisplayName() { return displayName; } + public ChatMessage setDisplayName(String value) { this.displayName = value; return this; } + public String getMessage() { return message; } + public ChatMessage setMessage(String value) { this.message = value; return this; } + public String getUserAuthId() { return userAuthId; } + public ChatMessage setUserAuthId(String value) { this.userAuthId = value; return this; } + public Boolean isPrivate() { return Private; } + public ChatMessage setPrivate(Boolean value) { this.Private = value; return this; } + } + + public static class GetChatHistoryResponse + { + public ArrayList results = null; + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public GetChatHistoryResponse setResults(ArrayList value) { this.results = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetChatHistoryResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class GetUserDetailsResponse + { + public String provider = null; + public String userId = null; + public String userName = null; + public String fullName = null; + public String displayName = null; + public String firstName = null; + public String lastName = null; + public String company = null; + public String email = null; + public String phoneNumber = null; + public Date birthDate = null; + public String birthDateRaw = null; + public String address = null; + public String address2 = null; + public String city = null; + public String state = null; + public String country = null; + public String culture = null; + public String gender = null; + public String language = null; + public String mailAddress = null; + public String nickname = null; + public String postalCode = null; + public String timeZone = null; + + public String getProvider() { return provider; } + public GetUserDetailsResponse setProvider(String value) { this.provider = value; return this; } + public String getUserId() { return userId; } + public GetUserDetailsResponse setUserId(String value) { this.userId = value; return this; } + public String getUserName() { return userName; } + public GetUserDetailsResponse setUserName(String value) { this.userName = value; return this; } + public String getFullName() { return fullName; } + public GetUserDetailsResponse setFullName(String value) { this.fullName = value; return this; } + public String getDisplayName() { return displayName; } + public GetUserDetailsResponse setDisplayName(String value) { this.displayName = value; return this; } + public String getFirstName() { return firstName; } + public GetUserDetailsResponse setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public GetUserDetailsResponse setLastName(String value) { this.lastName = value; return this; } + public String getCompany() { return company; } + public GetUserDetailsResponse setCompany(String value) { this.company = value; return this; } + public String getEmail() { return email; } + public GetUserDetailsResponse setEmail(String value) { this.email = value; return this; } + public String getPhoneNumber() { return phoneNumber; } + public GetUserDetailsResponse setPhoneNumber(String value) { this.phoneNumber = value; return this; } + public Date getBirthDate() { return birthDate; } + public GetUserDetailsResponse setBirthDate(Date value) { this.birthDate = value; return this; } + public String getBirthDateRaw() { return birthDateRaw; } + public GetUserDetailsResponse setBirthDateRaw(String value) { this.birthDateRaw = value; return this; } + public String getAddress() { return address; } + public GetUserDetailsResponse setAddress(String value) { this.address = value; return this; } + public String getAddress2() { return address2; } + public GetUserDetailsResponse setAddress2(String value) { this.address2 = value; return this; } + public String getCity() { return city; } + public GetUserDetailsResponse setCity(String value) { this.city = value; return this; } + public String getState() { return state; } + public GetUserDetailsResponse setState(String value) { this.state = value; return this; } + public String getCountry() { return country; } + public GetUserDetailsResponse setCountry(String value) { this.country = value; return this; } + public String getCulture() { return culture; } + public GetUserDetailsResponse setCulture(String value) { this.culture = value; return this; } + public String getGender() { return gender; } + public GetUserDetailsResponse setGender(String value) { this.gender = value; return this; } + public String getLanguage() { return language; } + public GetUserDetailsResponse setLanguage(String value) { this.language = value; return this; } + public String getMailAddress() { return mailAddress; } + public GetUserDetailsResponse setMailAddress(String value) { this.mailAddress = value; return this; } + public String getNickname() { return nickname; } + public GetUserDetailsResponse setNickname(String value) { this.nickname = value; return this; } + public String getPostalCode() { return postalCode; } + public GetUserDetailsResponse setPostalCode(String value) { this.postalCode = value; return this; } + public String getTimeZone() { return timeZone; } + public GetUserDetailsResponse setTimeZone(String value) { this.timeZone = value; return this; } + } + + public static class CustomHttpErrorResponse + { + public String custom = null; + public ResponseStatus responseStatus = null; + + public String getCustom() { return custom; } + public CustomHttpErrorResponse setCustom(String value) { this.custom = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public CustomHttpErrorResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class QueryResponseAlt + { + public Integer offset = null; + public Integer total = null; + public ArrayList results = null; + public HashMap meta = null; + public ResponseStatus responseStatus = null; + + public Integer getOffset() { return offset; } + public QueryResponseAlt setOffset(Integer value) { this.offset = value; return this; } + public Integer getTotal() { return total; } + public QueryResponseAlt setTotal(Integer value) { this.total = value; return this; } + public ArrayList getResults() { return results; } + public QueryResponseAlt setResults(ArrayList value) { this.results = value; return this; } + public HashMap getMeta() { return meta; } + public QueryResponseAlt setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public QueryResponseAlt setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class Items + { + public ArrayList results = null; + + public ArrayList getResults() { return results; } + public Items setResults(ArrayList value) { this.results = value; return this; } + } + + @DataContract + public static class EmptyResponse + { + @DataMember(Order=1) + public ResponseStatus responseStatus = null; + + public ResponseStatus getResponseStatus() { return responseStatus; } + public EmptyResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class ReturnCustom400Response + { + public ResponseStatus responseStatus = null; + + public ResponseStatus getResponseStatus() { return responseStatus; } + public ReturnCustom400Response setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class ThrowTypeResponse + { + public ResponseStatus responseStatus = null; + + public ResponseStatus getResponseStatus() { return responseStatus; } + public ThrowTypeResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class ThrowValidationResponse + { + public Integer age = null; + public String required = null; + public String email = null; + public ResponseStatus responseStatus = null; + + public Integer getAge() { return age; } + public ThrowValidationResponse setAge(Integer value) { this.age = value; return this; } + public String getRequired() { return required; } + public ThrowValidationResponse setRequired(String value) { this.required = value; return this; } + public String getEmail() { return email; } + public ThrowValidationResponse setEmail(String value) { this.email = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public ThrowValidationResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class ThrowBusinessErrorResponse + { + public ResponseStatus responseStatus = null; + + public ResponseStatus getResponseStatus() { return responseStatus; } + public ThrowBusinessErrorResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + /** + * Response object for generation requests + */ + public static class GenerationResponse + { + /** + * List of generated outputs + */ + @ApiMember(Description="List of generated outputs") + public ArrayList outputs = null; + + /** + * List of generated text outputs + */ + @ApiMember(Description="List of generated text outputs") + public ArrayList textOutputs = null; + + /** + * Detailed response status information + */ + @ApiMember(Description="Detailed response status information") + public ResponseStatus responseStatus = null; + + public ArrayList getOutputs() { return outputs; } + public GenerationResponse setOutputs(ArrayList value) { this.outputs = value; return this; } + public ArrayList getTextOutputs() { return textOutputs; } + public GenerationResponse setTextOutputs(ArrayList value) { this.textOutputs = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GenerationResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class TestFileUploadsResponse + { + public Integer id = null; + public String refId = null; + public ArrayList files = null; + public ResponseStatus responseStatus = null; + + public Integer getId() { return id; } + public TestFileUploadsResponse setId(Integer value) { this.id = value; return this; } + public String getRefId() { return refId; } + public TestFileUploadsResponse setRefId(String value) { this.refId = value; return this; } + public ArrayList getFiles() { return files; } + public TestFileUploadsResponse setFiles(ArrayList value) { this.files = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public TestFileUploadsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class Account + { + public String name = null; + + public String getName() { return name; } + public Account setName(String value) { this.name = value; return this; } + } + + public static class Project + { + public String account = null; + public String name = null; + + public String getAccount() { return account; } + public Project setAccount(String value) { this.account = value; return this; } + public String getName() { return name; } + public Project setName(String value) { this.name = value; return this; } + } + + public static class SecuredResponse + { + public String result = null; + public ResponseStatus responseStatus = null; + + public String getResult() { return result; } + public SecuredResponse setResult(String value) { this.result = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public SecuredResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class CreateJwtResponse + { + public String token = null; + public ResponseStatus responseStatus = null; + + public String getToken() { return token; } + public CreateJwtResponse setToken(String value) { this.token = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public CreateJwtResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class CreateRefreshJwtResponse + { + public String token = null; + public ResponseStatus responseStatus = null; + + public String getToken() { return token; } + public CreateRefreshJwtResponse setToken(String value) { this.token = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public CreateRefreshJwtResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class MetadataTestResponse + { + public Integer id = null; + public ArrayList results = null; + + public Integer getId() { return id; } + public MetadataTestResponse setId(Integer value) { this.id = value; return this; } + public ArrayList getResults() { return results; } + public MetadataTestResponse setResults(ArrayList value) { this.results = value; return this; } + } + + @DataContract + public static class GetExampleResponse + { + @DataMember(Order=1) + public ResponseStatus responseStatus = null; + + @DataMember(Order=2) + @ApiMember() + public MenuExample menuExample1 = null; + + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetExampleResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + public MenuExample getMenuExample1() { return menuExample1; } + public GetExampleResponse setMenuExample1(MenuExample value) { this.menuExample1 = value; return this; } + } + + public static class GetRandomIdsResponse + { + public ArrayList results = null; + + public ArrayList getResults() { return results; } + public GetRandomIdsResponse setResults(ArrayList value) { this.results = value; return this; } + } + + public static class HelloResponse + { + public String result = null; + + public String getResult() { return result; } + public HelloResponse setResult(String value) { this.result = value; return this; } + } + + /** + * Description on HelloAllResponse type + */ + @DataContract + public static class HelloAnnotatedResponse + { + @DataMember + public String result = null; + + public String getResult() { return result; } + public HelloAnnotatedResponse setResult(String value) { this.result = value; return this; } + } + + public static class HelloAllTypesResponse + { + public String result = null; + public AllTypes allTypes = null; + public AllCollectionTypes allCollectionTypes = null; + + public String getResult() { return result; } + public HelloAllTypesResponse setResult(String value) { this.result = value; return this; } + public AllTypes getAllTypes() { return allTypes; } + public HelloAllTypesResponse setAllTypes(AllTypes value) { this.allTypes = value; return this; } + public AllCollectionTypes getAllCollectionTypes() { return allCollectionTypes; } + public HelloAllTypesResponse setAllCollectionTypes(AllCollectionTypes value) { this.allCollectionTypes = value; return this; } + } + + public static class SubAllTypes extends AllTypesBase + { + public Integer hierarchy = null; + + public Integer getHierarchy() { return hierarchy; } + public SubAllTypes setHierarchy(Integer value) { this.hierarchy = value; return this; } + } + + @DataContract + public static class HelloWithDataContractResponse + { + @DataMember(Name="result", Order=1, IsRequired=true, EmitDefaultValue=false) + @SerializedName("result") + public String result = null; + + public String getResult() { return result; } + public HelloWithDataContractResponse setResult(String value) { this.result = value; return this; } + } + + /** + * Description on HelloWithDescriptionResponse type + */ + public static class HelloWithDescriptionResponse + { + public String result = null; + + public String getResult() { return result; } + public HelloWithDescriptionResponse setResult(String value) { this.result = value; return this; } + } + + public static class HelloWithInheritanceResponse extends HelloResponseBase + { + public String result = null; + + public String getResult() { return result; } + public HelloWithInheritanceResponse setResult(String value) { this.result = value; return this; } + } + + public static class HelloWithAlternateReturnResponse extends HelloWithReturnResponse + { + public String altResult = null; + + public String getAltResult() { return altResult; } + public HelloWithAlternateReturnResponse setAltResult(String value) { this.altResult = value; return this; } + } + + public static class HelloWithRouteResponse + { + public String result = null; + + public String getResult() { return result; } + public HelloWithRouteResponse setResult(String value) { this.result = value; return this; } + } + + public static class HelloWithTypeResponse + { + public HelloType result = null; + + public HelloType getResult() { return result; } + public HelloWithTypeResponse setResult(HelloType value) { this.result = value; return this; } + } + + public static class HelloInnerTypesResponse + { + public InnerType innerType = null; + public InnerEnum innerEnum = null; + + public InnerType getInnerType() { return innerType; } + public HelloInnerTypesResponse setInnerType(InnerType value) { this.innerType = value; return this; } + public InnerEnum getInnerEnum() { return innerEnum; } + public HelloInnerTypesResponse setInnerEnum(InnerEnum value) { this.innerEnum = value; return this; } + } + + public static class HelloVerbResponse + { + public String result = null; + + public String getResult() { return result; } + public HelloVerbResponse setResult(String value) { this.result = value; return this; } + } + + public static class EnumResponse + { + public ScopeType operator = null; + + public ScopeType getOperator() { return operator; } + public EnumResponse setOperator(ScopeType value) { this.operator = value; return this; } + } + + @DataContract + public static class HelloZipResponse + { + @DataMember + public String result = null; + + public String getResult() { return result; } + public HelloZipResponse setResult(String value) { this.result = value; return this; } + } + + public static class PingResponse + { + public HashMap responses = null; + public ResponseStatus responseStatus = null; + + public HashMap getResponses() { return responses; } + public PingResponse setResponses(HashMap value) { this.responses = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public PingResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class RequiresRoleResponse + { + public String result = null; + public ResponseStatus responseStatus = null; + + public String getResult() { return result; } + public RequiresRoleResponse setResult(String value) { this.result = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RequiresRoleResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class SendVerbResponse + { + public Integer id = null; + public String pathInfo = null; + public String requestMethod = null; + + public Integer getId() { return id; } + public SendVerbResponse setId(Integer value) { this.id = value; return this; } + public String getPathInfo() { return pathInfo; } + public SendVerbResponse setPathInfo(String value) { this.pathInfo = value; return this; } + public String getRequestMethod() { return requestMethod; } + public SendVerbResponse setRequestMethod(String value) { this.requestMethod = value; return this; } + } + + public static class GetSessionResponse + { + public CustomUserSession result = null; + public UnAuthInfo unAuthInfo = null; + public ResponseStatus responseStatus = null; + + public CustomUserSession getResult() { return result; } + public GetSessionResponse setResult(CustomUserSession value) { this.result = value; return this; } + public UnAuthInfo getUnAuthInfo() { return unAuthInfo; } + public GetSessionResponse setUnAuthInfo(UnAuthInfo value) { this.unAuthInfo = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetSessionResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract(Namespace="http://schemas.servicestack.net/types") + public static class GetStuffResponse + { + @DataMember + public Date summaryDate = null; + + @DataMember + public Date summaryEndDate = null; + + @DataMember + public String symbol = null; + + @DataMember + public String email = null; + + @DataMember + public Boolean isEnabled = null; + + public Date getSummaryDate() { return summaryDate; } + public GetStuffResponse setSummaryDate(Date value) { this.summaryDate = value; return this; } + public Date getSummaryEndDate() { return summaryEndDate; } + public GetStuffResponse setSummaryEndDate(Date value) { this.summaryEndDate = value; return this; } + public String getSymbol() { return symbol; } + public GetStuffResponse setSymbol(String value) { this.symbol = value; return this; } + public String getEmail() { return email; } + public GetStuffResponse setEmail(String value) { this.email = value; return this; } + public Boolean getIsEnabled() { return isEnabled; } + public GetStuffResponse setIsEnabled(Boolean value) { this.isEnabled = value; return this; } + } + + public static class StoreLogsResponse + { + public ArrayList existingLogs = null; + public ResponseStatus responseStatus = null; + + public ArrayList getExistingLogs() { return existingLogs; } + public StoreLogsResponse setExistingLogs(ArrayList value) { this.existingLogs = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public StoreLogsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class TestAuthResponse + { + public String userId = null; + public String sessionId = null; + public String userName = null; + public String displayName = null; + public ResponseStatus responseStatus = null; + + public String getUserId() { return userId; } + public TestAuthResponse setUserId(String value) { this.userId = value; return this; } + public String getSessionId() { return sessionId; } + public TestAuthResponse setSessionId(String value) { this.sessionId = value; return this; } + public String getUserName() { return userName; } + public TestAuthResponse setUserName(String value) { this.userName = value; return this; } + public String getDisplayName() { return displayName; } + public TestAuthResponse setDisplayName(String value) { this.displayName = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public TestAuthResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class RegisterResponse implements IHasSessionId, IHasBearerToken + { + @DataMember(Order=1) + public String userId = null; + + @DataMember(Order=2) + public String sessionId = null; + + @DataMember(Order=3) + public String userName = null; + + @DataMember(Order=4) + public String referrerUrl = null; + + @DataMember(Order=5) + public String bearerToken = null; + + @DataMember(Order=6) + public String refreshToken = null; + + @DataMember(Order=7) + public Date refreshTokenExpiry = null; + + @DataMember(Order=8) + public ArrayList roles = null; + + @DataMember(Order=9) + public ArrayList permissions = null; + + @DataMember(Order=10) + public String redirectUrl = null; + + @DataMember(Order=11) + public ResponseStatus responseStatus = null; + + @DataMember(Order=12) + public HashMap meta = null; + + public String getUserId() { return userId; } + public RegisterResponse setUserId(String value) { this.userId = value; return this; } + public String getSessionId() { return sessionId; } + public RegisterResponse setSessionId(String value) { this.sessionId = value; return this; } + public String getUserName() { return userName; } + public RegisterResponse setUserName(String value) { this.userName = value; return this; } + public String getReferrerUrl() { return referrerUrl; } + public RegisterResponse setReferrerUrl(String value) { this.referrerUrl = value; return this; } + public String getBearerToken() { return bearerToken; } + public RegisterResponse setBearerToken(String value) { this.bearerToken = value; return this; } + public String getRefreshToken() { return refreshToken; } + public RegisterResponse setRefreshToken(String value) { this.refreshToken = value; return this; } + public Date getRefreshTokenExpiry() { return refreshTokenExpiry; } + public RegisterResponse setRefreshTokenExpiry(Date value) { this.refreshTokenExpiry = value; return this; } + public ArrayList getRoles() { return roles; } + public RegisterResponse setRoles(ArrayList value) { this.roles = value; return this; } + public ArrayList getPermissions() { return permissions; } + public RegisterResponse setPermissions(ArrayList value) { this.permissions = value; return this; } + public String getRedirectUrl() { return redirectUrl; } + public RegisterResponse setRedirectUrl(String value) { this.redirectUrl = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RegisterResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + public HashMap getMeta() { return meta; } + public RegisterResponse setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class AuthenticateResponse implements IHasSessionId, IHasBearerToken + { + @DataMember(Order=1) + public String userId = null; + + @DataMember(Order=2) + public String sessionId = null; + + @DataMember(Order=3) + public String userName = null; + + @DataMember(Order=4) + public String displayName = null; + + @DataMember(Order=5) + public String referrerUrl = null; + + @DataMember(Order=6) + public String bearerToken = null; + + @DataMember(Order=7) + public String refreshToken = null; + + @DataMember(Order=8) + public Date refreshTokenExpiry = null; + + @DataMember(Order=9) + public String profileUrl = null; + + @DataMember(Order=10) + public ArrayList roles = null; + + @DataMember(Order=11) + public ArrayList permissions = null; + + @DataMember(Order=12) + public String authProvider = null; + + @DataMember(Order=13) + public ResponseStatus responseStatus = null; + + @DataMember(Order=14) + public HashMap meta = null; + + public String getUserId() { return userId; } + public AuthenticateResponse setUserId(String value) { this.userId = value; return this; } + public String getSessionId() { return sessionId; } + public AuthenticateResponse setSessionId(String value) { this.sessionId = value; return this; } + public String getUserName() { return userName; } + public AuthenticateResponse setUserName(String value) { this.userName = value; return this; } + public String getDisplayName() { return displayName; } + public AuthenticateResponse setDisplayName(String value) { this.displayName = value; return this; } + public String getReferrerUrl() { return referrerUrl; } + public AuthenticateResponse setReferrerUrl(String value) { this.referrerUrl = value; return this; } + public String getBearerToken() { return bearerToken; } + public AuthenticateResponse setBearerToken(String value) { this.bearerToken = value; return this; } + public String getRefreshToken() { return refreshToken; } + public AuthenticateResponse setRefreshToken(String value) { this.refreshToken = value; return this; } + public Date getRefreshTokenExpiry() { return refreshTokenExpiry; } + public AuthenticateResponse setRefreshTokenExpiry(Date value) { this.refreshTokenExpiry = value; return this; } + public String getProfileUrl() { return profileUrl; } + public AuthenticateResponse setProfileUrl(String value) { this.profileUrl = value; return this; } + public ArrayList getRoles() { return roles; } + public AuthenticateResponse setRoles(ArrayList value) { this.roles = value; return this; } + public ArrayList getPermissions() { return permissions; } + public AuthenticateResponse setPermissions(ArrayList value) { this.permissions = value; return this; } + public String getAuthProvider() { return authProvider; } + public AuthenticateResponse setAuthProvider(String value) { this.authProvider = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public AuthenticateResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + public HashMap getMeta() { return meta; } + public AuthenticateResponse setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class AssignRolesResponse + { + @DataMember(Order=1) + public ArrayList allRoles = null; + + @DataMember(Order=2) + public ArrayList allPermissions = null; + + @DataMember(Order=3) + public HashMap meta = null; + + @DataMember(Order=4) + public ResponseStatus responseStatus = null; + + public ArrayList getAllRoles() { return allRoles; } + public AssignRolesResponse setAllRoles(ArrayList value) { this.allRoles = value; return this; } + public ArrayList getAllPermissions() { return allPermissions; } + public AssignRolesResponse setAllPermissions(ArrayList value) { this.allPermissions = value; return this; } + public HashMap getMeta() { return meta; } + public AssignRolesResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public AssignRolesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class UnAssignRolesResponse + { + @DataMember(Order=1) + public ArrayList allRoles = null; + + @DataMember(Order=2) + public ArrayList allPermissions = null; + + @DataMember(Order=3) + public HashMap meta = null; + + @DataMember(Order=4) + public ResponseStatus responseStatus = null; + + public ArrayList getAllRoles() { return allRoles; } + public UnAssignRolesResponse setAllRoles(ArrayList value) { this.allRoles = value; return this; } + public ArrayList getAllPermissions() { return allPermissions; } + public UnAssignRolesResponse setAllPermissions(ArrayList value) { this.allPermissions = value; return this; } + public HashMap getMeta() { return meta; } + public UnAssignRolesResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public UnAssignRolesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class RockstarWithIdResponse + { + public Integer id = null; + public ResponseStatus responseStatus = null; + + public Integer getId() { return id; } + public RockstarWithIdResponse setId(Integer value) { this.id = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RockstarWithIdResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class RockstarWithIdAndResultResponse + { + public Integer id = null; + public RockstarAuto result = null; + public ResponseStatus responseStatus = null; + + public Integer getId() { return id; } + public RockstarWithIdAndResultResponse setId(Integer value) { this.id = value; return this; } + public RockstarAuto getResult() { return result; } + public RockstarWithIdAndResultResponse setResult(RockstarAuto value) { this.result = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RockstarWithIdAndResultResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class RockstarWithIdAndCountResponse + { + public Integer id = null; + public Integer count = null; + public ResponseStatus responseStatus = null; + + public Integer getId() { return id; } + public RockstarWithIdAndCountResponse setId(Integer value) { this.id = value; return this; } + public Integer getCount() { return count; } + public RockstarWithIdAndCountResponse setCount(Integer value) { this.count = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RockstarWithIdAndCountResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class RockstarWithIdAndRowVersionResponse + { + public Integer id = null; + public Long rowVersion = null; + public ResponseStatus responseStatus = null; + + public Integer getId() { return id; } + public RockstarWithIdAndRowVersionResponse setId(Integer value) { this.id = value; return this; } + public Long getRowVersion() { return rowVersion; } + public RockstarWithIdAndRowVersionResponse setRowVersion(Long value) { this.rowVersion = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RockstarWithIdAndRowVersionResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class GetAccessTokenResponse + { + @DataMember(Order=1) + public String accessToken = null; + + @DataMember(Order=2) + public HashMap meta = null; + + @DataMember(Order=3) + public ResponseStatus responseStatus = null; + + public String getAccessToken() { return accessToken; } + public GetAccessTokenResponse setAccessToken(String value) { this.accessToken = value; return this; } + public HashMap getMeta() { return meta; } + public GetAccessTokenResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetAccessTokenResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class QueryDb_2 extends QueryBase + { + + } + + public static class Item + { + public String name = null; + public String description = null; + + public String getName() { return name; } + public Item setName(String value) { this.name = value; return this; } + public String getDescription() { return description; } + public Item setDescription(String value) { this.description = value; return this; } + } + + public static class Poco + { + public String name = null; + + public String getName() { return name; } + public Poco setName(String value) { this.name = value; return this; } + } + + public static class CustomType + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public CustomType setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public CustomType setName(String value) { this.name = value; return this; } + } + + public static class SetterType + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public SetterType setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public SetterType setName(String value) { this.name = value; return this; } + } + + public static class DeclarativeChildValidation + { + public String name = null; + @Validate(Validator="MaximumLength(20)") + public String value = null; + + public String getName() { return name; } + public DeclarativeChildValidation setName(String value) { this.name = value; return this; } + public String getValue() { return value; } + public DeclarativeChildValidation setValue(String value) { this.value = value; return this; } + } + + public static class FluentChildValidation + { + public String name = null; + public String value = null; + + public String getName() { return name; } + public FluentChildValidation setName(String value) { this.name = value; return this; } + public String getValue() { return value; } + public FluentChildValidation setValue(String value) { this.value = value; return this; } + } + + public static class DeclarativeSingleValidation + { + public String name = null; + @Validate(Validator="MaximumLength(20)") + public String value = null; + + public String getName() { return name; } + public DeclarativeSingleValidation setName(String value) { this.name = value; return this; } + public String getValue() { return value; } + public DeclarativeSingleValidation setValue(String value) { this.value = value; return this; } + } + + public static class FluentSingleValidation + { + public String name = null; + public String value = null; + + public String getName() { return name; } + public FluentSingleValidation setName(String value) { this.name = value; return this; } + public String getValue() { return value; } + public FluentSingleValidation setValue(String value) { this.value = value; return this; } + } + + @DataContract + public static class CancelRequest implements IPost + { + @DataMember(Order=1) + public String tag = null; + + @DataMember(Order=2) + public HashMap meta = null; + + public String getTag() { return tag; } + public CancelRequest setTag(String value) { this.tag = value; return this; } + public HashMap getMeta() { return meta; } + public CancelRequest setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class CancelRequestResponse + { + @DataMember(Order=1) + public String tag = null; + + @DataMember(Order=2) + public TimeSpan elapsed = null; + + @DataMember(Order=3) + public HashMap meta = null; + + @DataMember(Order=4) + public ResponseStatus responseStatus = null; + + public String getTag() { return tag; } + public CancelRequestResponse setTag(String value) { this.tag = value; return this; } + public TimeSpan getElapsed() { return elapsed; } + public CancelRequestResponse setElapsed(TimeSpan value) { this.elapsed = value; return this; } + public HashMap getMeta() { return meta; } + public CancelRequestResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public CancelRequestResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class UpdateEventSubscriber implements IPost + { + @DataMember(Order=1) + public String id = null; + + @DataMember(Order=2) + public ArrayList subscribeChannels = null; + + @DataMember(Order=3) + public ArrayList unsubscribeChannels = null; + + public String getId() { return id; } + public UpdateEventSubscriber setId(String value) { this.id = value; return this; } + public ArrayList getSubscribeChannels() { return subscribeChannels; } + public UpdateEventSubscriber setSubscribeChannels(ArrayList value) { this.subscribeChannels = value; return this; } + public ArrayList getUnsubscribeChannels() { return unsubscribeChannels; } + public UpdateEventSubscriber setUnsubscribeChannels(ArrayList value) { this.unsubscribeChannels = value; return this; } + } + + @DataContract + public static class UpdateEventSubscriberResponse + { + @DataMember(Order=1) + public ResponseStatus responseStatus = null; + + public ResponseStatus getResponseStatus() { return responseStatus; } + public UpdateEventSubscriberResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class GetApiKeys implements IGet + { + @DataMember(Order=1) + public String environment = null; + + @DataMember(Order=2) + public HashMap meta = null; + + public String getEnvironment() { return environment; } + public GetApiKeys setEnvironment(String value) { this.environment = value; return this; } + public HashMap getMeta() { return meta; } + public GetApiKeys setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class GetApiKeysResponse + { + @DataMember(Order=1) + public ArrayList results = null; + + @DataMember(Order=2) + public HashMap meta = null; + + @DataMember(Order=3) + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public GetApiKeysResponse setResults(ArrayList value) { this.results = value; return this; } + public HashMap getMeta() { return meta; } + public GetApiKeysResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetApiKeysResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class RegenerateApiKeys implements IPost + { + @DataMember(Order=1) + public String environment = null; + + @DataMember(Order=2) + public HashMap meta = null; + + public String getEnvironment() { return environment; } + public RegenerateApiKeys setEnvironment(String value) { this.environment = value; return this; } + public HashMap getMeta() { return meta; } + public RegenerateApiKeys setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class RegenerateApiKeysResponse + { + @DataMember(Order=1) + public ArrayList results = null; + + @DataMember(Order=2) + public HashMap meta = null; + + @DataMember(Order=3) + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public RegenerateApiKeysResponse setResults(ArrayList value) { this.results = value; return this; } + public HashMap getMeta() { return meta; } + public RegenerateApiKeysResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public RegenerateApiKeysResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class UserApiKey + { + @DataMember(Order=1) + public String key = null; + + @DataMember(Order=2) + public String keyType = null; + + @DataMember(Order=3) + public Date expiryDate = null; + + @DataMember(Order=4) + public HashMap meta = null; + + public String getKey() { return key; } + public UserApiKey setKey(String value) { this.key = value; return this; } + public String getKeyType() { return keyType; } + public UserApiKey setKeyType(String value) { this.keyType = value; return this; } + public Date getExpiryDate() { return expiryDate; } + public UserApiKey setExpiryDate(Date value) { this.expiryDate = value; return this; } + public HashMap getMeta() { return meta; } + public UserApiKey setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class ConvertSessionToToken implements IPost + { + @DataMember(Order=1) + public Boolean preserveSession = null; + + @DataMember(Order=2) + public HashMap meta = null; + + public Boolean isPreserveSession() { return preserveSession; } + public ConvertSessionToToken setPreserveSession(Boolean value) { this.preserveSession = value; return this; } + public HashMap getMeta() { return meta; } + public ConvertSessionToToken setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class ConvertSessionToTokenResponse + { + @DataMember(Order=1) + public HashMap meta = null; + + @DataMember(Order=2) + public String accessToken = null; + + @DataMember(Order=3) + public String refreshToken = null; + + @DataMember(Order=4) + public ResponseStatus responseStatus = null; + + public HashMap getMeta() { return meta; } + public ConvertSessionToTokenResponse setMeta(HashMap value) { this.meta = value; return this; } + public String getAccessToken() { return accessToken; } + public ConvertSessionToTokenResponse setAccessToken(String value) { this.accessToken = value; return this; } + public String getRefreshToken() { return refreshToken; } + public ConvertSessionToTokenResponse setRefreshToken(String value) { this.refreshToken = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public ConvertSessionToTokenResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class NavItem + { + public String label = null; + public String href = null; + public Boolean exact = null; + public String id = null; + public String className = null; + public String iconClass = null; + public String iconSrc = null; + public String show = null; + public String hide = null; + public ArrayList children = null; + public HashMap meta = null; + + public String getLabel() { return label; } + public NavItem setLabel(String value) { this.label = value; return this; } + public String getHref() { return href; } + public NavItem setHref(String value) { this.href = value; return this; } + public Boolean isExact() { return exact; } + public NavItem setExact(Boolean value) { this.exact = value; return this; } + public String getId() { return id; } + public NavItem setId(String value) { this.id = value; return this; } + public String getClassName() { return className; } + public NavItem setClassName(String value) { this.className = value; return this; } + public String getIconClass() { return iconClass; } + public NavItem setIconClass(String value) { this.iconClass = value; return this; } + public String getIconSrc() { return iconSrc; } + public NavItem setIconSrc(String value) { this.iconSrc = value; return this; } + public String getShow() { return show; } + public NavItem setShow(String value) { this.show = value; return this; } + public String getHide() { return hide; } + public NavItem setHide(String value) { this.hide = value; return this; } + public ArrayList getChildren() { return children; } + public NavItem setChildren(ArrayList value) { this.children = value; return this; } + public HashMap getMeta() { return meta; } + public NavItem setMeta(HashMap value) { this.meta = value; return this; } + } + + @DataContract + public static class GetNavItems + { + @DataMember(Order=1) + public String name = null; + + public String getName() { return name; } + public GetNavItems setName(String value) { this.name = value; return this; } + } + + @DataContract + public static class GetNavItemsResponse + { + @DataMember(Order=1) + public String baseUrl = null; + + @DataMember(Order=2) + public ArrayList results = null; + + @DataMember(Order=3) + public HashMap> navItemsMap = null; + + @DataMember(Order=4) + public HashMap meta = null; + + @DataMember(Order=5) + public ResponseStatus responseStatus = null; + + public String getBaseUrl() { return baseUrl; } + public GetNavItemsResponse setBaseUrl(String value) { this.baseUrl = value; return this; } + public ArrayList getResults() { return results; } + public GetNavItemsResponse setResults(ArrayList value) { this.results = value; return this; } + public HashMap> getNavItemsMap() { return navItemsMap; } + public GetNavItemsResponse setNavItemsMap(HashMap> value) { this.navItemsMap = value; return this; } + public HashMap getMeta() { return meta; } + public GetNavItemsResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetNavItemsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class IdResponse + { + @DataMember(Order=1) + public String id = null; + + @DataMember(Order=2) + public ResponseStatus responseStatus = null; + + public String getId() { return id; } + public IdResponse setId(String value) { this.id = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public IdResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class StringResponse + { + @DataMember(Order=1) + public String result = null; + + @DataMember(Order=2) + public HashMap meta = null; + + @DataMember(Order=3) + public ResponseStatus responseStatus = null; + + public String getResult() { return result; } + public StringResponse setResult(String value) { this.result = value; return this; } + public HashMap getMeta() { return meta; } + public StringResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public StringResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class StringsResponse + { + @DataMember(Order=1) + public ArrayList results = null; + + @DataMember(Order=2) + public HashMap meta = null; + + @DataMember(Order=3) + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public StringsResponse setResults(ArrayList value) { this.results = value; return this; } + public HashMap getMeta() { return meta; } + public StringsResponse setMeta(HashMap value) { this.meta = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public StringsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + @DataContract + public static class AuditBase + { + @DataMember(Order=1) + public Date createdDate = null; + + @DataMember(Order=2) + @Required() + public String createdBy = null; + + @DataMember(Order=3) + public Date modifiedDate = null; + + @DataMember(Order=4) + @Required() + public String modifiedBy = null; + + @DataMember(Order=5) + public Date deletedDate = null; + + @DataMember(Order=6) + public String deletedBy = null; + + public Date getCreatedDate() { return createdDate; } + public AuditBase setCreatedDate(Date value) { this.createdDate = value; return this; } + public String getCreatedBy() { return createdBy; } + public AuditBase setCreatedBy(String value) { this.createdBy = value; return this; } + public Date getModifiedDate() { return modifiedDate; } + public AuditBase setModifiedDate(Date value) { this.modifiedDate = value; return this; } + public String getModifiedBy() { return modifiedBy; } + public AuditBase setModifiedBy(String value) { this.modifiedBy = value; return this; } + public Date getDeletedDate() { return deletedDate; } + public AuditBase setDeletedDate(Date value) { this.deletedDate = value; return this; } + public String getDeletedBy() { return deletedBy; } + public AuditBase setDeletedBy(String value) { this.deletedBy = value; return this; } + } + + public static interface IGeneration + { + public String refId = null; + public String tag = null; + } + + public static interface IAuthTokens + { + public String provider = null; + public String userId = null; + public String accessToken = null; + public String accessTokenSecret = null; + public String refreshToken = null; + public Date refreshTokenExpiry = null; + public String requestToken = null; + public String requestTokenSecret = null; + public HashMap items = null; + } + + @DataContract + public static class AuthUserSession + { + @DataMember(Order=1) + public String referrerUrl = null; + + @DataMember(Order=2) + public String id = null; + + @DataMember(Order=3) + public String userAuthId = null; + + @DataMember(Order=4) + public String userAuthName = null; + + @DataMember(Order=5) + public String userName = null; + + @DataMember(Order=6) + public String twitterUserId = null; + + @DataMember(Order=7) + public String twitterScreenName = null; + + @DataMember(Order=8) + public String facebookUserId = null; + + @DataMember(Order=9) + public String facebookUserName = null; + + @DataMember(Order=10) + public String firstName = null; + + @DataMember(Order=11) + public String lastName = null; + + @DataMember(Order=12) + public String displayName = null; + + @DataMember(Order=13) + public String company = null; + + @DataMember(Order=14) + public String email = null; + + @DataMember(Order=15) + public String primaryEmail = null; + + @DataMember(Order=16) + public String phoneNumber = null; + + @DataMember(Order=17) + public Date birthDate = null; + + @DataMember(Order=18) + public String birthDateRaw = null; + + @DataMember(Order=19) + public String address = null; + + @DataMember(Order=20) + public String address2 = null; + + @DataMember(Order=21) + public String city = null; + + @DataMember(Order=22) + public String state = null; + + @DataMember(Order=23) + public String country = null; + + @DataMember(Order=24) + public String culture = null; + + @DataMember(Order=25) + public String fullName = null; + + @DataMember(Order=26) + public String gender = null; + + @DataMember(Order=27) + public String language = null; + + @DataMember(Order=28) + public String mailAddress = null; + + @DataMember(Order=29) + public String nickname = null; + + @DataMember(Order=30) + public String postalCode = null; + + @DataMember(Order=31) + public String timeZone = null; + + @DataMember(Order=32) + public String requestTokenSecret = null; + + @DataMember(Order=33) + public Date createdAt = null; + + @DataMember(Order=34) + public Date lastModified = null; + + @DataMember(Order=35) + public ArrayList roles = null; + + @DataMember(Order=36) + public ArrayList permissions = null; + + @DataMember(Order=37) + public Boolean isAuthenticated = null; + + @DataMember(Order=38) + public Boolean fromToken = null; + + @DataMember(Order=39) + public String profileUrl = null; + + @DataMember(Order=40) + public String sequence = null; + + @DataMember(Order=41) + public Long tag = null; + + @DataMember(Order=42) + public String authProvider = null; + + @DataMember(Order=43) + public ArrayList providerOAuthAccess = null; + + @DataMember(Order=44) + public HashMap meta = null; + + @DataMember(Order=45) + public ArrayList audiences = null; + + @DataMember(Order=46) + public ArrayList scopes = null; + + @DataMember(Order=47) + public String dns = null; + + @DataMember(Order=48) + public String rsa = null; + + @DataMember(Order=49) + public String sid = null; + + @DataMember(Order=50) + public String hash = null; + + @DataMember(Order=51) + public String homePhone = null; + + @DataMember(Order=52) + public String mobilePhone = null; + + @DataMember(Order=53) + public String webpage = null; + + @DataMember(Order=54) + public Boolean emailConfirmed = null; + + @DataMember(Order=55) + public Boolean phoneNumberConfirmed = null; + + @DataMember(Order=56) + public Boolean twoFactorEnabled = null; + + @DataMember(Order=57) + public String securityStamp = null; + + @DataMember(Order=58) + public String type = null; + + @DataMember(Order=59) + public String recoveryToken = null; + + @DataMember(Order=60) + public Integer refId = null; + + @DataMember(Order=61) + public String refIdStr = null; + + public String getReferrerUrl() { return referrerUrl; } + public AuthUserSession setReferrerUrl(String value) { this.referrerUrl = value; return this; } + public String getId() { return id; } + public AuthUserSession setId(String value) { this.id = value; return this; } + public String getUserAuthId() { return userAuthId; } + public AuthUserSession setUserAuthId(String value) { this.userAuthId = value; return this; } + public String getUserAuthName() { return userAuthName; } + public AuthUserSession setUserAuthName(String value) { this.userAuthName = value; return this; } + public String getUserName() { return userName; } + public AuthUserSession setUserName(String value) { this.userName = value; return this; } + public String getTwitterUserId() { return twitterUserId; } + public AuthUserSession setTwitterUserId(String value) { this.twitterUserId = value; return this; } + public String getTwitterScreenName() { return twitterScreenName; } + public AuthUserSession setTwitterScreenName(String value) { this.twitterScreenName = value; return this; } + public String getFacebookUserId() { return facebookUserId; } + public AuthUserSession setFacebookUserId(String value) { this.facebookUserId = value; return this; } + public String getFacebookUserName() { return facebookUserName; } + public AuthUserSession setFacebookUserName(String value) { this.facebookUserName = value; return this; } + public String getFirstName() { return firstName; } + public AuthUserSession setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public AuthUserSession setLastName(String value) { this.lastName = value; return this; } + public String getDisplayName() { return displayName; } + public AuthUserSession setDisplayName(String value) { this.displayName = value; return this; } + public String getCompany() { return company; } + public AuthUserSession setCompany(String value) { this.company = value; return this; } + public String getEmail() { return email; } + public AuthUserSession setEmail(String value) { this.email = value; return this; } + public String getPrimaryEmail() { return primaryEmail; } + public AuthUserSession setPrimaryEmail(String value) { this.primaryEmail = value; return this; } + public String getPhoneNumber() { return phoneNumber; } + public AuthUserSession setPhoneNumber(String value) { this.phoneNumber = value; return this; } + public Date getBirthDate() { return birthDate; } + public AuthUserSession setBirthDate(Date value) { this.birthDate = value; return this; } + public String getBirthDateRaw() { return birthDateRaw; } + public AuthUserSession setBirthDateRaw(String value) { this.birthDateRaw = value; return this; } + public String getAddress() { return address; } + public AuthUserSession setAddress(String value) { this.address = value; return this; } + public String getAddress2() { return address2; } + public AuthUserSession setAddress2(String value) { this.address2 = value; return this; } + public String getCity() { return city; } + public AuthUserSession setCity(String value) { this.city = value; return this; } + public String getState() { return state; } + public AuthUserSession setState(String value) { this.state = value; return this; } + public String getCountry() { return country; } + public AuthUserSession setCountry(String value) { this.country = value; return this; } + public String getCulture() { return culture; } + public AuthUserSession setCulture(String value) { this.culture = value; return this; } + public String getFullName() { return fullName; } + public AuthUserSession setFullName(String value) { this.fullName = value; return this; } + public String getGender() { return gender; } + public AuthUserSession setGender(String value) { this.gender = value; return this; } + public String getLanguage() { return language; } + public AuthUserSession setLanguage(String value) { this.language = value; return this; } + public String getMailAddress() { return mailAddress; } + public AuthUserSession setMailAddress(String value) { this.mailAddress = value; return this; } + public String getNickname() { return nickname; } + public AuthUserSession setNickname(String value) { this.nickname = value; return this; } + public String getPostalCode() { return postalCode; } + public AuthUserSession setPostalCode(String value) { this.postalCode = value; return this; } + public String getTimeZone() { return timeZone; } + public AuthUserSession setTimeZone(String value) { this.timeZone = value; return this; } + public String getRequestTokenSecret() { return requestTokenSecret; } + public AuthUserSession setRequestTokenSecret(String value) { this.requestTokenSecret = value; return this; } + public Date getCreatedAt() { return createdAt; } + public AuthUserSession setCreatedAt(Date value) { this.createdAt = value; return this; } + public Date getLastModified() { return lastModified; } + public AuthUserSession setLastModified(Date value) { this.lastModified = value; return this; } + public ArrayList getRoles() { return roles; } + public AuthUserSession setRoles(ArrayList value) { this.roles = value; return this; } + public ArrayList getPermissions() { return permissions; } + public AuthUserSession setPermissions(ArrayList value) { this.permissions = value; return this; } + public Boolean getIsAuthenticated() { return isAuthenticated; } + public AuthUserSession setIsAuthenticated(Boolean value) { this.isAuthenticated = value; return this; } + public Boolean isFromToken() { return fromToken; } + public AuthUserSession setFromToken(Boolean value) { this.fromToken = value; return this; } + public String getProfileUrl() { return profileUrl; } + public AuthUserSession setProfileUrl(String value) { this.profileUrl = value; return this; } + public String getSequence() { return sequence; } + public AuthUserSession setSequence(String value) { this.sequence = value; return this; } + public Long getTag() { return tag; } + public AuthUserSession setTag(Long value) { this.tag = value; return this; } + public String getAuthProvider() { return authProvider; } + public AuthUserSession setAuthProvider(String value) { this.authProvider = value; return this; } + public ArrayList getProviderOAuthAccess() { return providerOAuthAccess; } + public AuthUserSession setProviderOAuthAccess(ArrayList value) { this.providerOAuthAccess = value; return this; } + public HashMap getMeta() { return meta; } + public AuthUserSession setMeta(HashMap value) { this.meta = value; return this; } + public ArrayList getAudiences() { return audiences; } + public AuthUserSession setAudiences(ArrayList value) { this.audiences = value; return this; } + public ArrayList getScopes() { return scopes; } + public AuthUserSession setScopes(ArrayList value) { this.scopes = value; return this; } + public String getDns() { return dns; } + public AuthUserSession setDns(String value) { this.dns = value; return this; } + public String getRsa() { return rsa; } + public AuthUserSession setRsa(String value) { this.rsa = value; return this; } + public String getSid() { return sid; } + public AuthUserSession setSid(String value) { this.sid = value; return this; } + public String getHash() { return hash; } + public AuthUserSession setHash(String value) { this.hash = value; return this; } + public String getHomePhone() { return homePhone; } + public AuthUserSession setHomePhone(String value) { this.homePhone = value; return this; } + public String getMobilePhone() { return mobilePhone; } + public AuthUserSession setMobilePhone(String value) { this.mobilePhone = value; return this; } + public String getWebpage() { return webpage; } + public AuthUserSession setWebpage(String value) { this.webpage = value; return this; } + public Boolean isEmailConfirmed() { return emailConfirmed; } + public AuthUserSession setEmailConfirmed(Boolean value) { this.emailConfirmed = value; return this; } + public Boolean isPhoneNumberConfirmed() { return phoneNumberConfirmed; } + public AuthUserSession setPhoneNumberConfirmed(Boolean value) { this.phoneNumberConfirmed = value; return this; } + public Boolean isTwoFactorEnabled() { return twoFactorEnabled; } + public AuthUserSession setTwoFactorEnabled(Boolean value) { this.twoFactorEnabled = value; return this; } + public String getSecurityStamp() { return securityStamp; } + public AuthUserSession setSecurityStamp(String value) { this.securityStamp = value; return this; } + public String getType() { return type; } + public AuthUserSession setType(String value) { this.type = value; return this; } + public String getRecoveryToken() { return recoveryToken; } + public AuthUserSession setRecoveryToken(String value) { this.recoveryToken = value; return this; } + public Integer getRefId() { return refId; } + public AuthUserSession setRefId(Integer value) { this.refId = value; return this; } + public String getRefIdStr() { return refIdStr; } + public AuthUserSession setRefIdStr(String value) { this.refIdStr = value; return this; } + } + + public static class NestedClass + { + public String value = null; + + public String getValue() { return value; } + public NestedClass setValue(String value) { this.value = value; return this; } + } + + public static enum EnumType + { + Value1, + Value2, + Value3; + } + + @Flags() + public static enum EnumTypeFlags + { + @SerializedName("0") Value1(0), + @SerializedName("1") Value2(1), + @SerializedName("2") Value3(2); + + private final int value; + EnumTypeFlags(final int intValue) { value = intValue; } + public int getValue() { return value; } + } + + public static enum EnumWithValues + { + None, + Value1, + Value2; + } + + @Flags() + public static enum EnumFlags + { + @SerializedName("0") Value0(0), + @SerializedName("1") Value1(1), + @SerializedName("2") Value2(2), + @SerializedName("4") Value3(4), + @SerializedName("7") Value123(7); + + private final int value; + EnumFlags(final int intValue) { value = intValue; } + public int getValue() { return value; } + } + + public static enum EnumAsInt + { + Value1(1000), + Value2(2000), + Value3(3000); + + private final int value; + EnumAsInt(final int intValue) { value = intValue; } + public int getValue() { return value; } + } + + public static enum EnumStyle + { + Lower, + Upper, + PascalCase, + CamelCase, + CamelUPPER, + PascalUPPER; + } + + public static enum EnumStyleMembers + { + Lower, + Upper, + PascalCase, + CamelCase, + CamelUpper, + PascalUpper; + } + + public static class KeyValuePair + { + public TKey key = null; + public TValue value = null; + + public TKey getKey() { return key; } + public KeyValuePair setKey(TKey value) { this.key = value; return this; } + public TValue getValue() { return value; } + public KeyValuePair setValue(TValue value) { this.value = value; return this; } + } + + public static class SubType + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public SubType setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public SubType setName(String value) { this.name = value; return this; } + } + + public static class AllTypesBase + { + public Integer id = null; + public Integer nullableId = null; + @SerializedName("byte") public Short Byte = null; + @SerializedName("short") public Short Short = null; + @SerializedName("int") public Integer Int = null; + @SerializedName("long") public Long Long = null; + public Integer uShort = null; + public Long uInt = null; + public BigInteger uLong = null; + @SerializedName("float") public Float Float = null; + @SerializedName("double") public Double Double = null; + public BigDecimal decimal = null; + public String string = null; + public Date dateTime = null; + public TimeSpan timeSpan = null; + public Date dateTimeOffset = null; + public UUID guid = null; + @SerializedName("char") public String Char = null; + public KeyValuePair keyValuePair = null; + public Date nullableDateTime = null; + public TimeSpan nullableTimeSpan = null; + public ArrayList stringList = null; + public ArrayList stringArray = null; + public HashMap stringMap = null; + public HashMap intStringMap = null; + public SubType subType = null; + + public Integer getId() { return id; } + public AllTypesBase setId(Integer value) { this.id = value; return this; } + public Integer getNullableId() { return nullableId; } + public AllTypesBase setNullableId(Integer value) { this.nullableId = value; return this; } + public Short getByte() { return Byte; } + public AllTypesBase setByte(Short value) { this.Byte = value; return this; } + public Short getShort() { return Short; } + public AllTypesBase setShort(Short value) { this.Short = value; return this; } + public Integer getInt() { return Int; } + public AllTypesBase setInt(Integer value) { this.Int = value; return this; } + public Long getLong() { return Long; } + public AllTypesBase setLong(Long value) { this.Long = value; return this; } + public Integer getUShort() { return uShort; } + public AllTypesBase setUShort(Integer value) { this.uShort = value; return this; } + public Long getUInt() { return uInt; } + public AllTypesBase setUInt(Long value) { this.uInt = value; return this; } + public BigInteger getULong() { return uLong; } + public AllTypesBase setULong(BigInteger value) { this.uLong = value; return this; } + public Float getFloat() { return Float; } + public AllTypesBase setFloat(Float value) { this.Float = value; return this; } + public Double getDouble() { return Double; } + public AllTypesBase setDouble(Double value) { this.Double = value; return this; } + public BigDecimal getDecimal() { return decimal; } + public AllTypesBase setDecimal(BigDecimal value) { this.decimal = value; return this; } + public String getString() { return string; } + public AllTypesBase setString(String value) { this.string = value; return this; } + public Date getDateTime() { return dateTime; } + public AllTypesBase setDateTime(Date value) { this.dateTime = value; return this; } + public TimeSpan getTimeSpan() { return timeSpan; } + public AllTypesBase setTimeSpan(TimeSpan value) { this.timeSpan = value; return this; } + public Date getDateTimeOffset() { return dateTimeOffset; } + public AllTypesBase setDateTimeOffset(Date value) { this.dateTimeOffset = value; return this; } + public UUID getGuid() { return guid; } + public AllTypesBase setGuid(UUID value) { this.guid = value; return this; } + public String getChar() { return Char; } + public AllTypesBase setChar(String value) { this.Char = value; return this; } + public KeyValuePair getKeyValuePair() { return keyValuePair; } + public AllTypesBase setKeyValuePair(KeyValuePair value) { this.keyValuePair = value; return this; } + public Date getNullableDateTime() { return nullableDateTime; } + public AllTypesBase setNullableDateTime(Date value) { this.nullableDateTime = value; return this; } + public TimeSpan getNullableTimeSpan() { return nullableTimeSpan; } + public AllTypesBase setNullableTimeSpan(TimeSpan value) { this.nullableTimeSpan = value; return this; } + public ArrayList getStringList() { return stringList; } + public AllTypesBase setStringList(ArrayList value) { this.stringList = value; return this; } + public ArrayList getStringArray() { return stringArray; } + public AllTypesBase setStringArray(ArrayList value) { this.stringArray = value; return this; } + public HashMap getStringMap() { return stringMap; } + public AllTypesBase setStringMap(HashMap value) { this.stringMap = value; return this; } + public HashMap getIntStringMap() { return intStringMap; } + public AllTypesBase setIntStringMap(HashMap value) { this.intStringMap = value; return this; } + public SubType getSubType() { return subType; } + public AllTypesBase setSubType(SubType value) { this.subType = value; return this; } + } + + public static class HelloBase + { + public Integer id = null; + + public Integer getId() { return id; } + public HelloBase setId(Integer value) { this.id = value; return this; } + } + + public static class HelloBase_1 + { + public ArrayList items = null; + public ArrayList counts = null; + + public ArrayList getItems() { return items; } + public HelloBase_1 setItems(ArrayList value) { this.items = value; return this; } + public ArrayList getCounts() { return counts; } + public HelloBase_1 setCounts(ArrayList value) { this.counts = value; return this; } + } + + public static interface IPoco + { + public String name = null; + } + + public static interface IEmptyInterface + { + } + + public static class EmptyClass + { + + } + + public static enum DayOfWeek + { + Sunday, + Monday, + Tuesday, + Wednesday, + Thursday, + Friday, + Saturday; + } + + @DataContract + public static enum ScopeType + { + Global(1), + Sale(2); + + private final int value; + ScopeType(final int intValue) { value = intValue; } + public int getValue() { return value; } + } + + public static class Logger + { + public Long id = null; + public ArrayList devices = null; + + public Long getId() { return id; } + public Logger setId(Long value) { this.id = value; return this; } + public ArrayList getDevices() { return devices; } + public Logger setDevices(ArrayList value) { this.devices = value; return this; } + } + + public static class Rockstar + { + public Integer id = null; + public String firstName = null; + public String lastName = null; + public Integer age = null; + + public Integer getId() { return id; } + public Rockstar setId(Integer value) { this.id = value; return this; } + public String getFirstName() { return firstName; } + public Rockstar setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public Rockstar setLastName(String value) { this.lastName = value; return this; } + public Integer getAge() { return age; } + public Rockstar setAge(Integer value) { this.age = value; return this; } + } + + public static class QueryDbTenant_2 extends QueryDb_2 + { + + } + + public static class RockstarAuditTenant extends AuditBase + { + public Integer tenantId = null; + public Integer id = null; + public String firstName = null; + public String lastName = null; + public Integer age = null; + public Date dateOfBirth = null; + public Date dateDied = null; + public LivingStatus livingStatus = null; + + public Integer getTenantId() { return tenantId; } + public RockstarAuditTenant setTenantId(Integer value) { this.tenantId = value; return this; } + public Integer getId() { return id; } + public RockstarAuditTenant setId(Integer value) { this.id = value; return this; } + public String getFirstName() { return firstName; } + public RockstarAuditTenant setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public RockstarAuditTenant setLastName(String value) { this.lastName = value; return this; } + public Integer getAge() { return age; } + public RockstarAuditTenant setAge(Integer value) { this.age = value; return this; } + public Date getDateOfBirth() { return dateOfBirth; } + public RockstarAuditTenant setDateOfBirth(Date value) { this.dateOfBirth = value; return this; } + public Date getDateDied() { return dateDied; } + public RockstarAuditTenant setDateDied(Date value) { this.dateDied = value; return this; } + public LivingStatus getLivingStatus() { return livingStatus; } + public RockstarAuditTenant setLivingStatus(LivingStatus value) { this.livingStatus = value; return this; } + } + + public static class RockstarAuto extends RockstarBase + { + public Integer id = null; + + public Integer getId() { return id; } + public RockstarAuto setId(Integer value) { this.id = value; return this; } + } + + public static class QueryDb_1 extends QueryBase + { + + } + + public static class OnlyDefinedInGenericType + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public OnlyDefinedInGenericType setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public OnlyDefinedInGenericType setName(String value) { this.name = value; return this; } + } + + public static class OnlyDefinedInGenericTypeFrom + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public OnlyDefinedInGenericTypeFrom setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public OnlyDefinedInGenericTypeFrom setName(String value) { this.name = value; return this; } + } + + public static class OnlyDefinedInGenericTypeInto + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public OnlyDefinedInGenericTypeInto setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public OnlyDefinedInGenericTypeInto setName(String value) { this.name = value; return this; } + } + + public static enum LivingStatus + { + Alive, + Dead; + } + + public static class RockstarBase + { + public String firstName = null; + public String lastName = null; + public Integer age = null; + public Date dateOfBirth = null; + public Date dateDied = null; + public LivingStatus livingStatus = null; + + public String getFirstName() { return firstName; } + public RockstarBase setFirstName(String value) { this.firstName = value; return this; } + public String getLastName() { return lastName; } + public RockstarBase setLastName(String value) { this.lastName = value; return this; } + public Integer getAge() { return age; } + public RockstarBase setAge(Integer value) { this.age = value; return this; } + public Date getDateOfBirth() { return dateOfBirth; } + public RockstarBase setDateOfBirth(Date value) { this.dateOfBirth = value; return this; } + public Date getDateDied() { return dateDied; } + public RockstarBase setDateDied(Date value) { this.dateDied = value; return this; } + public LivingStatus getLivingStatus() { return livingStatus; } + public RockstarBase setLivingStatus(LivingStatus value) { this.livingStatus = value; return this; } + } + + public static class RockstarAudit extends RockstarBase + { + public Integer id = null; + public Date createdDate = null; + public String createdBy = null; + public String createdInfo = null; + public Date modifiedDate = null; + public String modifiedBy = null; + public String modifiedInfo = null; + + public Integer getId() { return id; } + public RockstarAudit setId(Integer value) { this.id = value; return this; } + public Date getCreatedDate() { return createdDate; } + public RockstarAudit setCreatedDate(Date value) { this.createdDate = value; return this; } + public String getCreatedBy() { return createdBy; } + public RockstarAudit setCreatedBy(String value) { this.createdBy = value; return this; } + public String getCreatedInfo() { return createdInfo; } + public RockstarAudit setCreatedInfo(String value) { this.createdInfo = value; return this; } + public Date getModifiedDate() { return modifiedDate; } + public RockstarAudit setModifiedDate(Date value) { this.modifiedDate = value; return this; } + public String getModifiedBy() { return modifiedBy; } + public RockstarAudit setModifiedBy(String value) { this.modifiedBy = value; return this; } + public String getModifiedInfo() { return modifiedInfo; } + public RockstarAudit setModifiedInfo(String value) { this.modifiedInfo = value; return this; } + } + + public static class CreateAuditTenantBase extends CreateAuditBase + { + + } + + public static class UpdateAuditTenantBase extends UpdateAuditBase + { + + } + + public static class PatchAuditTenantBase extends PatchAuditBase + { + + } + + public static class SoftDeleteAuditTenantBase extends SoftDeleteAuditBase + { + + } + + public static class RockstarVersion extends RockstarBase + { + public Integer id = null; + public BigInteger rowVersion = null; + + public Integer getId() { return id; } + public RockstarVersion setId(Integer value) { this.id = value; return this; } + public BigInteger getRowVersion() { return rowVersion; } + public RockstarVersion setRowVersion(BigInteger value) { this.rowVersion = value; return this; } + } + + /** + * Output object for generated artifacts + */ + public static class ArtifactOutput + { + /** + * URL to access the generated image + */ + @ApiMember(Description="URL to access the generated image") + public String url = null; + + /** + * Filename of the generated image + */ + @ApiMember(Description="Filename of the generated image") + public String fileName = null; + + /** + * Provider used for image generation + */ + @ApiMember(Description="Provider used for image generation") + public String provider = null; + + public String getUrl() { return url; } + public ArtifactOutput setUrl(String value) { this.url = value; return this; } + public String getFileName() { return fileName; } + public ArtifactOutput setFileName(String value) { this.fileName = value; return this; } + public String getProvider() { return provider; } + public ArtifactOutput setProvider(String value) { this.provider = value; return this; } + } + + /** + * Output object for generated text + */ + public static class TextOutput + { + /** + * The generated text + */ + @ApiMember(Description="The generated text") + public String text = null; + + public String getText() { return text; } + public TextOutput setText(String value) { this.text = value; return this; } + } + + public static class UploadInfo + { + public String name = null; + public String fileName = null; + public Long contentLength = null; + public String contentType = null; + + public String getName() { return name; } + public UploadInfo setName(String value) { this.name = value; return this; } + public String getFileName() { return fileName; } + public UploadInfo setFileName(String value) { this.fileName = value; return this; } + public Long getContentLength() { return contentLength; } + public UploadInfo setContentLength(Long value) { this.contentLength = value; return this; } + public String getContentType() { return contentType; } + public UploadInfo setContentType(String value) { this.contentType = value; return this; } + } + + public static class MetadataTestChild + { + public String name = null; + public ArrayList results = null; + + public String getName() { return name; } + public MetadataTestChild setName(String value) { this.name = value; return this; } + public ArrayList getResults() { return results; } + public MetadataTestChild setResults(ArrayList value) { this.results = value; return this; } + } + + @DataContract + public static class MenuExample + { + @DataMember(Order=1) + @ApiMember() + public MenuItemExample menuItemExample1 = null; + + public MenuItemExample getMenuItemExample1() { return menuItemExample1; } + public MenuExample setMenuItemExample1(MenuItemExample value) { this.menuItemExample1 = value; return this; } + } + + public static class ListResult + { + public String result = null; + + public String getResult() { return result; } + public ListResult setResult(String value) { this.result = value; return this; } + } + + public static class ArrayResult + { + public String result = null; + + public String getResult() { return result; } + public ArrayResult setResult(String value) { this.result = value; return this; } + } + + public static class HelloResponseBase + { + public Integer refId = null; + + public Integer getRefId() { return refId; } + public HelloResponseBase setRefId(Integer value) { this.refId = value; return this; } + } + + public static class HelloWithReturnResponse + { + public String result = null; + + public String getResult() { return result; } + public HelloWithReturnResponse setResult(String value) { this.result = value; return this; } + } + + public static class HelloType + { + public String result = null; + + public String getResult() { return result; } + public HelloType setResult(String value) { this.result = value; return this; } + } + + public static class InnerType + { + public Long id = null; + public String name = null; + + public Long getId() { return id; } + public InnerType setId(Long value) { this.id = value; return this; } + public String getName() { return name; } + public InnerType setName(String value) { this.name = value; return this; } + } + + public static enum InnerEnum + { + Foo, + Bar, + Baz; + } + + public static class ReturnedDto + { + public Integer id = null; + + public Integer getId() { return id; } + public ReturnedDto setId(Integer value) { this.id = value; return this; } + } + + public static class CustomUserSession extends AuthUserSession + { + @DataMember + public String customName = null; + + @DataMember + public String customInfo = null; + + public String getCustomName() { return customName; } + public CustomUserSession setCustomName(String value) { this.customName = value; return this; } + public String getCustomInfo() { return customInfo; } + public CustomUserSession setCustomInfo(String value) { this.customInfo = value; return this; } + } + + public static class UnAuthInfo + { + public String customInfo = null; + + public String getCustomInfo() { return customInfo; } + public UnAuthInfo setCustomInfo(String value) { this.customInfo = value; return this; } + } + + @DataContract + public static class QueryBase + { + @DataMember(Order=1) + public Integer skip = null; + + @DataMember(Order=2) + public Integer take = null; + + @DataMember(Order=3) + public String orderBy = null; + + @DataMember(Order=4) + public String orderByDesc = null; + + @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 Device + { + public Long id = null; + public String type = null; + public Long timeStamp = null; + public ArrayList channels = null; + + public Long getId() { return id; } + public Device setId(Long value) { this.id = value; return this; } + public String getType() { return type; } + public Device setType(String value) { this.type = value; return this; } + public Long getTimeStamp() { return timeStamp; } + public Device setTimeStamp(Long value) { this.timeStamp = value; return this; } + public ArrayList getChannels() { return channels; } + public Device setChannels(ArrayList value) { this.channels = value; return this; } + } + + public static class CreateAuditBase implements ICreateDb + { + + } + + public static class UpdateAuditBase implements IUpdateDb
+ { + + } + + public static class PatchAuditBase implements IPatchDb
+ { + + } + + public static class SoftDeleteAuditBase implements IUpdateDb
+ { + + } + + public static class MetadataTestNestedChild + { + public String name = null; + + public String getName() { return name; } + public MetadataTestNestedChild setName(String value) { this.name = value; return this; } + } + + public static class MenuItemExample + { + @DataMember(Order=1) + @ApiMember() + public String name1 = null; + + public MenuItemExampleItem menuItemExampleItem = null; + + public String getName1() { return name1; } + public MenuItemExample setName1(String value) { this.name1 = value; return this; } + public MenuItemExampleItem getMenuItemExampleItem() { return menuItemExampleItem; } + public MenuItemExample setMenuItemExampleItem(MenuItemExampleItem value) { this.menuItemExampleItem = value; return this; } + } + + public static class TypesGroup + { + + } + + public static class Channel + { + public String name = null; + public String value = null; + + public String getName() { return name; } + public Channel setName(String value) { this.name = value; return this; } + public String getValue() { return value; } + public Channel setValue(String value) { this.value = value; return this; } + } + + public static class MenuItemExampleItem + { + @DataMember(Order=1) + @ApiMember() + public String name1 = null; + + public String getName1() { return name1; } + public MenuItemExampleItem setName1(String value) { this.name1 = value; return this; } + } + +}