diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 4d8f8133..ac397818 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Java uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '17' distribution: 'adopt' - name: Cache Gradle packages diff --git a/.github/workflows/publish-android-maven-central.yml b/.github/workflows/publish-android-maven-central.yml index 1299c298..6c159161 100644 --- a/.github/workflows/publish-android-maven-central.yml +++ b/.github/workflows/publish-android-maven-central.yml @@ -1,5 +1,7 @@ -name: Publish android to Maven Central - +name: Stage android to Maven Central +# This workflow only Stages the package. You must manually login to https://oss.sonatype.org and publish from the Staging +# Repository. Recent outputs from this workflow will be listed there. +# You must "Close" each opened staging repository, then "Release". Closing can take some time, as can releasing. on: workflow_dispatch: @@ -14,7 +16,7 @@ jobs: - name: Setup Java uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '21' distribution: 'adopt' - name: Cache Gradle packages diff --git a/.github/workflows/publish-client-maven-central.yml b/.github/workflows/publish-client-maven-central.yml index a93095d7..3c6a535c 100644 --- a/.github/workflows/publish-client-maven-central.yml +++ b/.github/workflows/publish-client-maven-central.yml @@ -1,5 +1,7 @@ -name: Publish client to Maven Central - +name: Stage client to Maven Central +# This workflow only Stages the package. You must manually login to https://oss.sonatype.org and publish from the Staging +# Repository. Recent outputs from this workflow will be listed there. +# You must "Close" each opened staging repository, then "Release". Closing can take some time, as can releasing. on: workflow_dispatch: @@ -14,7 +16,7 @@ jobs: - name: Setup Java uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '21' distribution: 'adopt' - name: Cache Gradle packages diff --git a/.gitignore b/.gitignore index e06a7926..466d0cad 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,5 @@ src/ServiceStackEclipse/**/.settings src/AndroidClient/client/pom.xml .idea/ +src/AndroidClient/.idea/**/* + diff --git a/README.md b/README.md index e73e9007..56bd7692 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,36 @@ for updates, or [StackOverflow](http://stackoverflow.com/questions/ask) or the [ This repository contains the source for ServiceStack plugins for the leading Android Studio, IntelliJ and Eclipse Java IDE's providing Java developers a highly productive development experience for consuming Typed ServiceStack Services by leveraging [Add ServiceStack Reference](https://github.com/ServiceStack/ServiceStack/wiki/Add-ServiceStack-Reference) directly within their IDE! +### v1.1.5 Changes + +- Rename FileUpload to `UploadFile` to match other ServiceStack libraries + +### v1.1.4 Changes + +Added new ServiceClient APIs: + +```java + T postFileWithRequest(IReturn request, FileUpload file); + T postFileWithRequest(Object request, FileUpload file, Object responseType); + T postFileWithRequest(String path, Object request, FileUpload file, Object responseType); + + T postFilesWithRequest(IReturn request, FileUpload[] files); + T postFilesWithRequest(Object request, FileUpload[] files, Object responseType); + T postFilesWithRequest(String path, Object request, FileUpload[] files, Object responseType); +``` + +Added new AsyncServiceClient APIs: + +```java + void postFileWithRequestAsync(IReturn request, FileUpload file, final AsyncResult asyncResult); + void postFileWithRequestAsync(Object request, FileUpload file, Object responseType, final AsyncResult asyncResult); + void postFileWithRequestAsync(String path, Object request, FileUpload file, Object responseType, final AsyncResult asyncResult); + + void postFilesWithRequestAsync(IReturn request, FileUpload[] files, final AsyncResult asyncResult); + void postFilesWithRequestAsync(Object request, FileUpload[] files, Object responseType, final AsyncResult asyncResult); + void postFilesWithRequestAsync(String path, Object request, FileUpload[] files, Object responseType, final AsyncResult asyncResult); +``` + ### v1.1.0 Changes Switched to use `/api` pre-defined route by default, revert to legacy `/json/reply` pre-defined route with: diff --git a/src/AndroidClient/.gitignore b/src/AndroidClient/.gitignore index afbdab33..2b504629 100644 --- a/src/AndroidClient/.gitignore +++ b/src/AndroidClient/.gitignore @@ -4,3 +4,4 @@ /.idea/libraries .DS_Store /build +.idea/ diff --git a/src/AndroidClient/.idea/.gitignore b/src/AndroidClient/.idea/.gitignore deleted file mode 100644 index 26d33521..00000000 --- a/src/AndroidClient/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/src/AndroidClient/.idea/caches/build_file_checksums.ser b/src/AndroidClient/.idea/caches/build_file_checksums.ser deleted file mode 100644 index 09fb1ebc..00000000 Binary files a/src/AndroidClient/.idea/caches/build_file_checksums.ser and /dev/null differ diff --git a/src/AndroidClient/.idea/codeStyles/Project.xml b/src/AndroidClient/.idea/codeStyles/Project.xml deleted file mode 100644 index 7643783a..00000000 --- a/src/AndroidClient/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/codeStyles/codeStyleConfig.xml b/src/AndroidClient/.idea/codeStyles/codeStyleConfig.xml deleted file mode 100644 index 6e6eec11..00000000 --- a/src/AndroidClient/.idea/codeStyles/codeStyleConfig.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/compiler.xml b/src/AndroidClient/.idea/compiler.xml deleted file mode 100644 index e0e4ac77..00000000 --- a/src/AndroidClient/.idea/compiler.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/encodings.xml b/src/AndroidClient/.idea/encodings.xml deleted file mode 100644 index 15a15b21..00000000 --- a/src/AndroidClient/.idea/encodings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/gradle.xml b/src/AndroidClient/.idea/gradle.xml deleted file mode 100644 index 5f817b72..00000000 --- a/src/AndroidClient/.idea/gradle.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/jarRepositories.xml b/src/AndroidClient/.idea/jarRepositories.xml deleted file mode 100644 index 28af8c32..00000000 --- a/src/AndroidClient/.idea/jarRepositories.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/misc.xml b/src/AndroidClient/.idea/misc.xml deleted file mode 100644 index a1dc1caa..00000000 --- a/src/AndroidClient/.idea/misc.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules.xml b/src/AndroidClient/.idea/modules.xml deleted file mode 100644 index 20d6b35a..00000000 --- a/src/AndroidClient/.idea/modules.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/android/AndroidClient.android.iml b/src/AndroidClient/.idea/modules/android/AndroidClient.android.iml deleted file mode 100644 index b29504af..00000000 --- a/src/AndroidClient/.idea/modules/android/AndroidClient.android.iml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/androidchat/AndroidClient.androidchat.iml b/src/AndroidClient/.idea/modules/androidchat/AndroidClient.androidchat.iml deleted file mode 100644 index 108c0163..00000000 --- a/src/AndroidClient/.idea/modules/androidchat/AndroidClient.androidchat.iml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/app/AndroidClient.app.iml b/src/AndroidClient/.idea/modules/app/AndroidClient.app.iml deleted file mode 100644 index 4e69f2b2..00000000 --- a/src/AndroidClient/.idea/modules/app/AndroidClient.app.iml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/client/AndroidClient.client.iml b/src/AndroidClient/.idea/modules/client/AndroidClient.client.iml deleted file mode 100644 index a859bcb8..00000000 --- a/src/AndroidClient/.idea/modules/client/AndroidClient.client.iml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/kotlin/AndroidClient.kotlin.iml b/src/AndroidClient/.idea/modules/kotlin/AndroidClient.kotlin.iml deleted file mode 100644 index 9ba66328..00000000 --- a/src/AndroidClient/.idea/modules/kotlin/AndroidClient.kotlin.iml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/techstacks/AndroidClient.techstacks.iml b/src/AndroidClient/.idea/modules/techstacks/AndroidClient.techstacks.iml deleted file mode 100644 index 96322b20..00000000 --- a/src/AndroidClient/.idea/modules/techstacks/AndroidClient.techstacks.iml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/.idea/modules/techstackskotlin/AndroidClient.techstackskotlin.iml b/src/AndroidClient/.idea/modules/techstackskotlin/AndroidClient.techstackskotlin.iml deleted file mode 100644 index 8b2fbf45..00000000 --- a/src/AndroidClient/.idea/modules/techstackskotlin/AndroidClient.techstackskotlin.iml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/AndroidClient/android/build.gradle b/src/AndroidClient/android/build.gradle index 1eff844d..2c37cd87 100644 --- a/src/AndroidClient/android/build.gradle +++ b/src/AndroidClient/android/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'maven-publish' apply plugin: 'signing' // Define the version and group for the Maven package -version = "1.1.0" +version = "1.1.5" group = "net.servicestack" if (project.hasProperty('versionSuffix')) { @@ -14,10 +14,10 @@ if (project.hasProperty('versionSuffix')) { // Specify dependencies dependencies { - implementation 'com.google.code.gson:gson:2.8.9' + implementation 'com.google.code.gson:gson:2.11.0' implementation 'com.squareup.okhttp3:okhttp:3.14.9' implementation fileTree(include: '*.jar', dir: 'libs') - androidTestImplementation 'junit:junit:4.13.1' + androidTestImplementation 'junit:junit:4.13.2' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' androidTestImplementation 'com.android.support:support-annotations:28.0.0' @@ -25,7 +25,8 @@ dependencies { // Android specific configurations android { - compileSdkVersion 31 + namespace "net.servicestack.android" + compileSdk 34 lintOptions { abortOnError false @@ -33,7 +34,7 @@ android { defaultConfig { minSdkVersion 15 - targetSdkVersion 31 + targetSdkVersion 34 testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' } diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/checkweb/GsonTests.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/checkweb/GsonTests.java index 305abbf4..628a650b 100644 --- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/checkweb/GsonTests.java +++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/checkweb/GsonTests.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package net.servicestack.android.checkweb; diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/JsonServiceClientTests.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/JsonServiceClientTests.java index f6b0cff2..597ead20 100644 --- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/JsonServiceClientTests.java +++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/JsonServiceClientTests.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package net.servicestack.android.test; diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/TestServiceTests.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/TestServiceTests.java index b9653cca..40468a0f 100644 --- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/TestServiceTests.java +++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/test/TestServiceTests.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package net.servicestack.android.test; diff --git a/src/AndroidClient/android/src/main/AndroidManifest.xml b/src/AndroidClient/android/src/main/AndroidManifest.xml index c4ca74e9..6edf95c4 100644 --- a/src/AndroidClient/android/src/main/AndroidManifest.xml +++ b/src/AndroidClient/android/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@ - + diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidLogProvider.java b/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidLogProvider.java index 9151509f..8cba3b7a 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidLogProvider.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidLogProvider.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.android; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidServiceClient.java b/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidServiceClient.java index 9d72c2ab..e12be4ea 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidServiceClient.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidServiceClient.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.android; @@ -17,6 +17,7 @@ import net.servicestack.client.JsonServiceClient; import net.servicestack.client.Utils; import net.servicestack.cookies.SerializableCookieStore; +import net.servicestack.client.UploadFile; import java.lang.reflect.Type; import java.net.CookieHandler; @@ -908,4 +909,48 @@ protected void onPostExecute(byte[] bytes) { public void deleteAsync(String path, AsyncSuccess success) { deleteAsync(path, createAsyncResult(success, null)); } + + @Override + public void postFileWithRequestAsync(IReturn request, UploadFile file, final AsyncResult asyncResult) { + this.postFilesWithRequestAsync(this.apiUrl(request), request, new UploadFile[]{file}, request.getResponseType(), asyncResult); + } + @Override + public void postFileWithRequestAsync(Object request, UploadFile file, Object responseType, final AsyncResult asyncResult) { + this.postFilesWithRequestAsync(this.apiUrl(request), request, new UploadFile[]{file}, responseType, asyncResult); + } + @Override + public void postFileWithRequestAsync(String path, Object request, UploadFile file, Object responseType, final AsyncResult asyncResult) { + this.postFilesWithRequestAsync(path, request, new UploadFile[]{file}, responseType, asyncResult); + } + + @Override + public void postFilesWithRequestAsync(IReturn request, UploadFile[] files, final AsyncResult asyncResult) { + this.postFilesWithRequestAsync(this.apiUrl(request), request, files, request.getResponseType(), asyncResult); + } + @Override + public void postFilesWithRequestAsync(Object request, UploadFile[] files, Object responseType, final AsyncResult asyncResult) { + this.postFilesWithRequestAsync(this.apiUrl(request), request, files, responseType, asyncResult); + } + + @Override + public void postFilesWithRequestAsync(String path, Object request, UploadFile[] files, Object responseType, final AsyncResult asyncResult) { + final AndroidServiceClient client = this; + execTask(new AsyncTask() { + @Override + protected T doInBackground(String... params) { + try { + return client.postFilesWithRequest(params[0], request, files, responseType); + } catch (Exception e) { + asyncResult.setError(e); + return null; + } + } + + @Override + protected void onPostExecute(T response) { + asyncResult.completeResult(response); + } + + }, path); + } } diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidUtils.java b/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidUtils.java index 821ae5a2..fcab89ae 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidUtils.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/android/AndroidUtils.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.android; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Alias.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Alias.java new file mode 100644 index 00000000..bf4dac0e --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Alias.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Alias { + public String Name() default ""; +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Api.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Api.java index e55512a9..f5c8b35d 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Api.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Api.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiMember.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiMember.java index 9b272589..9f5eb837 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiMember.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiMember.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiResponse.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiResponse.java index e3535ab7..ed9c4383 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiResponse.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ApiResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResult.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResult.java index 58e0532d..7f8e6166 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResult.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResult.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResultVoid.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResultVoid.java index bf05a302..80a42871 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResultVoid.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncResultVoid.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncServiceClient.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncServiceClient.java index 0b7eb534..18171452 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncServiceClient.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncServiceClient.java @@ -1,10 +1,9 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; import java.lang.reflect.Type; -import java.net.HttpURLConnection; import java.util.Map; public interface AsyncServiceClient { @@ -78,4 +77,12 @@ public interface AsyncServiceClient { void deleteAsync(String path, final Type responseType, final AsyncSuccess success); void deleteAsync(String path, final AsyncResult asyncResult); void deleteAsync(String path, final AsyncSuccess success); + + void postFileWithRequestAsync(IReturn request, UploadFile file, final AsyncResult asyncResult); + void postFileWithRequestAsync(Object request, UploadFile file, Object responseType, final AsyncResult asyncResult); + void postFileWithRequestAsync(String path, Object request, UploadFile file, Object responseType, final AsyncResult asyncResult); + + void postFilesWithRequestAsync(IReturn request, UploadFile[] files, final AsyncResult asyncResult); + void postFilesWithRequestAsync(Object request, UploadFile[] files, Object responseType, final AsyncResult asyncResult); + void postFilesWithRequestAsync(String path, Object request, UploadFile[] files, Object responseType, final AsyncResult asyncResult); } diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccess.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccess.java index e407202c..f03cdc2b 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccess.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccess.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccessVoid.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccessVoid.java index 028bc6cf..18d90ed0 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccessVoid.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AsyncSuccessVoid.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoIncrement.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoIncrement.java new file mode 100644 index 00000000..f8d50137 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoIncrement.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface AutoIncrement { +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewer.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewer.java index e77954f2..8aa9a49b 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewer.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewer.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewerField.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewerField.java index 5778cc50..162286e9 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewerField.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/AutoQueryViewerField.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/CheckConstraintAttribute.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/CheckConstraintAttribute.java new file mode 100644 index 00000000..b35858be --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/CheckConstraintAttribute.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface CheckConstraintAttribute { + public String Constraint() default ""; +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Compute.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Compute.java new file mode 100644 index 00000000..9b413996 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Compute.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Compute { + public String Expression() default ""; +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Computed.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Computed.java new file mode 100644 index 00000000..74501bc5 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Computed.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Computed { +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ConnectionFilter.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ConnectionFilter.java index 6bf8f732..60e3c678 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ConnectionFilter.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ConnectionFilter.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/DataContract.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/DataContract.java index f0717242..5bade264 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/DataContract.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/DataContract.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/DataMember.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/DataMember.java index 1ed5e670..fe6ddb3c 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/DataMember.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/DataMember.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Default.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Default.java index f64e77fb..a8095c45 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Default.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Default.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/EmptyResponse.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/EmptyResponse.java index 9ce14fe1..73b3d9a0 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/EmptyResponse.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/EmptyResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ErrorResponse.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ErrorResponse.java index b524c360..1ba06442 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ErrorResponse.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ErrorResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ExceptionFilter.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ExceptionFilter.java index 519c1f02..37c16742 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ExceptionFilter.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ExceptionFilter.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Flags.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Flags.java index 3571983d..65c8e6fb 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Flags.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Flags.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ForeignKey.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ForeignKey.java new file mode 100644 index 00000000..551a108f --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ForeignKey.java @@ -0,0 +1,16 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface ForeignKey { + + public Class Type() default Object.class; + public String OnDelete() default ""; + public String OnUpdate() default ""; + public String ForeignKeyName() default ""; +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpHeaders.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpHeaders.java index 18531602..979fe858 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpHeaders.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpHeaders.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpMethods.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpMethods.java index 1cb8d145..a93a2cd5 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpMethods.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/HttpMethods.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ICreateDb.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ICreateDb.java index 2561e1ed..e452b470 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ICreateDb.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ICreateDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IDeleteDb.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IDeleteDb.java index 93403b26..ee8b3de6 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IDeleteDb.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IDeleteDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IOptions.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IOptions.java new file mode 100644 index 00000000..066a5788 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IOptions.java @@ -0,0 +1,7 @@ +package net.servicestack.client; + +/** + * Created by mythz on 9/11/2015. + */ +public interface IOptions { +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IPatchDb.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IPatchDb.java index b234e013..16a1170e 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IPatchDb.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IPatchDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IQuery.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IQuery.java index c070c539..a6a5e618 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IQuery.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IQuery.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryDb.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryDb.java index db2eb656..0e6fb7d9 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryDb.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryResponse.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryResponse.java index 7f349a63..a23af7e5 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryResponse.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IQueryResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturn.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturn.java index 22547111..fe1fcd54 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturn.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturn.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturnVoid.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturnVoid.java index 05dc4939..07c646ea 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturnVoid.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IReturnVoid.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ISaveDb.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ISaveDb.java index eb072d4d..12aa584e 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ISaveDb.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ISaveDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IUpdateDb.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IUpdateDb.java index 093d1fb2..76395702 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IUpdateDb.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IUpdateDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IdResponse.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IdResponse.java index daa745dd..204c8998 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IdResponse.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IdResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Ignore.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Ignore.java index 9b81ff45..f7e00e89 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Ignore.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Ignore.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/IgnoreDataMember.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/IgnoreDataMember.java index c3353c76..97b71978 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/IgnoreDataMember.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/IgnoreDataMember.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Index.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Index.java new file mode 100644 index 00000000..378cbd88 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Index.java @@ -0,0 +1,15 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Index { + public String Name() default ""; + public boolean Unique() default false; + public boolean Clustered() default false; + public boolean NonClustered() default false; +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonSerializers.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonSerializers.java index 50407df2..2928bc19 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonSerializers.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonSerializers.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonServiceClient.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonServiceClient.java index a9bd6de8..2f66e74c 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonServiceClient.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/JsonServiceClient.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; @@ -8,12 +8,7 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import java.io.BufferedReader; -import java.io.DataOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.UnsupportedEncodingException; +import java.io.*; import java.lang.reflect.Field; import java.lang.reflect.Type; import java.net.CookieHandler; @@ -26,7 +21,6 @@ import java.net.URLEncoder; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; -import java.nio.file.Paths; import java.util.Date; import java.util.List; import java.util.Map; @@ -136,12 +130,16 @@ public Object fromJson(String json, Class c) { public void setGson(Gson gson) { this.gson = gson; } + public String apiUrl(Object requestDto){ + return this.replyUrl + requestDto.getClass().getSimpleName(); + } + public String createUrl(Object requestDto) { return createUrl(requestDto, null); } public String createUrl(Object requestDto, Map query) { - String requestUrl = this.replyUrl + requestDto.getClass().getSimpleName(); + String requestUrl = this.apiUrl(requestDto); StringBuilder sb = new StringBuilder(); Field lastField = null; @@ -683,4 +681,82 @@ public void clearCookies() { CookieManager cookieManager = (CookieManager) CookieHandler.getDefault(); cookieManager.getCookieStore().removeAll(); } + + // Convenience method for single file upload + @Override + public TResponse postFileWithRequest(IReturn request, UploadFile file) { + return postFilesWithRequest(this.apiUrl(request), request, new UploadFile[]{file}, request.getResponseType()); + } + @Override + public TResponse postFileWithRequest(Object request, UploadFile file, Object responseType) { + return postFilesWithRequest(this.apiUrl(request), request, new UploadFile[]{file}, responseType); + } + @Override + public TResponse postFileWithRequest(String path, Object request, UploadFile file, Object responseType) { + return postFilesWithRequest(path, request, new UploadFile[]{file}, responseType); + } + + @Override + public TResponse postFilesWithRequest(IReturn request, UploadFile[] files) { + return this.postFilesWithRequest(this.apiUrl(request), request, files, request.getResponseType()); + } + @Override + public TResponse postFilesWithRequest(Object request, UploadFile[] files, Object responseType) { + return this.postFilesWithRequest(this.apiUrl(request), request, files, responseType); + } + + private static final String BOUNDARY = "---" + UUID.randomUUID().toString() + "---"; + + @Override + public TResponse postFilesWithRequest(String path, Object request, UploadFile[] files, Object responseType) { + try { + // Prepare multipart data + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + DataOutputStream dos = new DataOutputStream(baos); + + // Add request DTO fields + for (Field field : Utils.getSerializableFields(request.getClass())) { + Object value = field.get(request); + if (value != null) { + writeMultipartField(dos, field.getName(), Utils.stripQuotes(getGson().toJson(value))); + } + } + + // Add files + for (UploadFile file : files) { + writeMultipartFile(dos, file); + } + + // End multipart + dos.writeBytes("--" + BOUNDARY + "--\r\n"); + dos.flush(); + dos.close(); + + byte[] requestBody = baos.toByteArray(); + String contentType = "multipart/form-data; boundary=" + BOUNDARY; + + return send(resolveUrl(path), HttpMethods.Post, requestBody, contentType, responseType); + + } catch (IOException | IllegalAccessException e) { + throw new RuntimeException(e); + } + } + + private void writeMultipartField(DataOutputStream dos, String fieldName, String value) throws IOException { + dos.writeBytes("--" + BOUNDARY + "\r\n"); + dos.writeBytes("Content-Disposition: form-data; name=\"" + fieldName + "\"\r\n"); + dos.writeBytes("Content-Type: text/plain; charset=" + UTF8.name() + "\r\n"); + dos.writeBytes("\r\n"); + dos.writeBytes(value + "\r\n"); + } + + private void writeMultipartFile(DataOutputStream dos, UploadFile file) throws IOException { + dos.writeBytes("--" + BOUNDARY + "\r\n"); + dos.writeBytes("Content-Disposition: form-data; name=\"" + file.getFieldName() + + "\"; filename=\"" + file.getFileName() + "\"\r\n"); + dos.writeBytes("Content-Type: " + file.getContentType() + "\r\n"); + dos.writeBytes("\r\n"); + dos.write(file.getContents()); + dos.writeBytes("\r\n"); + } } diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Log.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Log.java index 9ccdf458..4c5d3938 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Log.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Log.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/LogProvider.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/LogProvider.java index f026e5bc..d4b92dd7 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/LogProvider.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/LogProvider.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/LogType.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/LogType.java index 03cefb1e..6558a5a1 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/LogType.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/LogType.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Meta.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Meta.java index 5a653825..28328801 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Meta.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Meta.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/MimeTypes.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/MimeTypes.java index ca1f1306..4e568c3b 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/MimeTypes.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/MimeTypes.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/NamedConnection.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/NamedConnection.java new file mode 100644 index 00000000..27845124 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/NamedConnection.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface NamedConnection { + public String Name() default ""; +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Persisted.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Persisted.java new file mode 100644 index 00000000..4e46a4b8 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Persisted.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Persisted { +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/PrimaryKey.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/PrimaryKey.java new file mode 100644 index 00000000..54f25e79 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/PrimaryKey.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface PrimaryKey { +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Reference.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Reference.java new file mode 100644 index 00000000..c9e0e100 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Reference.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Reference { +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/References.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/References.java index 0fe4f23c..f47a9052 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/References.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/References.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Reflectable.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Reflectable.java index 951f59bf..9c0a7ddc 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Reflectable.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Reflectable.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Required.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Required.java index a8929f94..82c7a5eb 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Required.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Required.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseError.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseError.java index 4c6dd966..862bf420 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseError.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseError.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseStatus.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseStatus.java index 229e513b..cfaf8940 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseStatus.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ResponseStatus.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Route.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Route.java index 480cf0a7..e1790661 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Route.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Route.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/ServiceClient.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/ServiceClient.java index 6ff6affa..e8159466 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/ServiceClient.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/ServiceClient.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; @@ -60,4 +60,12 @@ public interface ServiceClient { String getCookieValue(String name); String getTokenCookie(); String getRefreshTokenCookie(); + + TResponse postFileWithRequest(IReturn request, UploadFile file); + TResponse postFileWithRequest(Object request, UploadFile file, Object responseType); + TResponse postFileWithRequest(String path, Object request, UploadFile file, Object responseType); + + TResponse postFilesWithRequest(IReturn request, UploadFile[] files); + TResponse postFilesWithRequest(Object request, UploadFile[] files, Object responseType); + TResponse postFilesWithRequest(String path, Object request, UploadFile[] files, Object responseType); } diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/StringLength.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/StringLength.java index 4e37dfd0..aa6a288e 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/StringLength.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/StringLength.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/TimeSpan.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/TimeSpan.java index 09aeea76..c85a6ccb 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/TimeSpan.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/TimeSpan.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/UploadFile.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/UploadFile.java new file mode 100644 index 00000000..c1f46386 --- /dev/null +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/UploadFile.java @@ -0,0 +1,20 @@ +package net.servicestack.client; + +public class UploadFile { + private String fieldName; + private String fileName; + private String contentType; + private byte[] contents; + + public UploadFile(String fieldName, String fileName, String contentType, byte[] contents) { + this.fieldName = fieldName; + this.fileName = fileName; + this.contentType = contentType != null ? contentType : "application/octet-stream"; + this.contents = contents; + } + + public String getFieldName() { return fieldName != null ? fieldName : "upload"; } + public String getFileName() { return fileName; } + public String getContentType() { return contentType; } + public byte[] getContents() { return contents; } +} diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/Utils.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/Utils.java index 59a50f9e..53c90393 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/Utils.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/Utils.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/client/WebServiceException.java b/src/AndroidClient/android/src/main/java/net/servicestack/client/WebServiceException.java index f706c12d..f47ccff8 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/client/WebServiceException.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/client/WebServiceException.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Action.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Action.java index 3d2367f2..8c0db740 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Action.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Action.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Func.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Func.java index e214a894..abe4b310 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Func.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Func.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Function.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Function.java index 0d78deeb..2a8dbbf7 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Function.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Function.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionIndex.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionIndex.java index b253adf0..17d356f4 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionIndex.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionIndex.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionResult.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionResult.java index 9cbc3e50..8fed5d7a 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionResult.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/FunctionResult.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Group.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Group.java index 95b6ed64..fffaa70f 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Group.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Group.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate.java index fd28225e..47d2e045 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate2.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate2.java index 455675f1..2c72f937 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate2.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Predicate2.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/PredicateIndex.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/PredicateIndex.java index d636aeb5..15538b2b 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/PredicateIndex.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/PredicateIndex.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Reducer.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Reducer.java index 232f5797..fd00692f 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Reducer.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Reducer.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple.java index 994d99d7..c78eec91 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple3.java b/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple3.java index 1ce1f3a4..4bdf59fd 100644 --- a/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple3.java +++ b/src/AndroidClient/android/src/main/java/net/servicestack/func/Tuple3.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/build.gradle b/src/AndroidClient/build.gradle index cbd0cc11..1667f37f 100644 --- a/src/AndroidClient/build.gradle +++ b/src/AndroidClient/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.6.21' + ext.kotlin_version = '1.9.0' repositories { mavenCentral() maven { @@ -11,7 +11,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' + classpath 'com.android.tools.build:gradle:8.2.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong @@ -27,4 +27,16 @@ allprojects { name 'Google' } } -} + // This code is where all the magic happens and fixes the error. + subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + } + } +} \ No newline at end of file diff --git a/src/AndroidClient/client/build.gradle b/src/AndroidClient/client/build.gradle index 93216bf3..dbaeb2b1 100644 --- a/src/AndroidClient/client/build.gradle +++ b/src/AndroidClient/client/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'maven-publish' apply plugin: 'signing' // Define the version and group for the Maven package -version = "1.1.0" +version = "1.1.5" group = "net.servicestack" if (project.hasProperty('versionSuffix')) { @@ -13,18 +13,19 @@ if (project.hasProperty('versionSuffix')) { // Specify dependencies dependencies { - implementation 'com.google.code.gson:gson:2.8.9' - testImplementation 'junit:junit:4.13.1' + implementation 'com.google.code.gson:gson:2.11.0' + testImplementation 'junit:junit:4.13.2' testImplementation 'pl.pragmatists:JUnitParams:1.1.1' } -task sourceJar(type: Jar) { - classifier "sources" +tasks.register('sourceJar', Jar) { + archiveClassifier.set("sources") from sourceSets.main.allJava } -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier "javadoc" +tasks.register('javadocJar', Jar) { + dependsOn javadoc + archiveClassifier.set("javadoc") from javadoc.destinationDir } diff --git a/src/AndroidClient/client/gradle/wrapper/gradle-wrapper.properties b/src/AndroidClient/client/gradle/wrapper/gradle-wrapper.properties index a72fc180..b5ad7647 100644 --- a/src/AndroidClient/client/gradle/wrapper/gradle-wrapper.properties +++ b/src/AndroidClient/client/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Oct 21 11:34:03 PDT 2015 +#Fri Oct 18 17:55:02 AWST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/src/AndroidClient/client/gradlew b/src/AndroidClient/client/gradlew old mode 100644 new mode 100755 diff --git a/src/AndroidClient/client/pom.xml b/src/AndroidClient/client/pom.xml index 8da75e4c..b699d99a 100644 --- a/src/AndroidClient/client/pom.xml +++ b/src/AndroidClient/client/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.servicestack client - 1.0.49 + 1.1.5 ServiceStack.Client A client library to call your ServiceStack webservices. https://github.com/ServiceStack/ServiceStack.Java @@ -47,7 +47,7 @@ pl.pragmatists JUnitParams - 1.1.1 + 1.1.3 test diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Alias.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Alias.java new file mode 100644 index 00000000..bf4dac0e --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Alias.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Alias { + public String Name() default ""; +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Api.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Api.java index e55512a9..f5c8b35d 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Api.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Api.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiMember.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiMember.java index 9b272589..9f5eb837 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiMember.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiMember.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiResponse.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiResponse.java index e3535ab7..ed9c4383 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiResponse.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ApiResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResult.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResult.java index 58e0532d..7f8e6166 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResult.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResult.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResultVoid.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResultVoid.java index bf05a302..80a42871 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResultVoid.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncResultVoid.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncServiceClient.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncServiceClient.java index 0b7eb534..18171452 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncServiceClient.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncServiceClient.java @@ -1,10 +1,9 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; import java.lang.reflect.Type; -import java.net.HttpURLConnection; import java.util.Map; public interface AsyncServiceClient { @@ -78,4 +77,12 @@ public interface AsyncServiceClient { void deleteAsync(String path, final Type responseType, final AsyncSuccess success); void deleteAsync(String path, final AsyncResult asyncResult); void deleteAsync(String path, final AsyncSuccess success); + + void postFileWithRequestAsync(IReturn request, UploadFile file, final AsyncResult asyncResult); + void postFileWithRequestAsync(Object request, UploadFile file, Object responseType, final AsyncResult asyncResult); + void postFileWithRequestAsync(String path, Object request, UploadFile file, Object responseType, final AsyncResult asyncResult); + + void postFilesWithRequestAsync(IReturn request, UploadFile[] files, final AsyncResult asyncResult); + void postFilesWithRequestAsync(Object request, UploadFile[] files, Object responseType, final AsyncResult asyncResult); + void postFilesWithRequestAsync(String path, Object request, UploadFile[] files, Object responseType, final AsyncResult asyncResult); } diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccess.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccess.java index e407202c..f03cdc2b 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccess.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccess.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccessVoid.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccessVoid.java index 028bc6cf..18d90ed0 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccessVoid.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AsyncSuccessVoid.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoIncrement.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoIncrement.java new file mode 100644 index 00000000..f8d50137 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoIncrement.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface AutoIncrement { +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewer.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewer.java index e77954f2..8aa9a49b 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewer.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewer.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewerField.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewerField.java index 5778cc50..162286e9 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewerField.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/AutoQueryViewerField.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/CheckConstraintAttribute.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/CheckConstraintAttribute.java new file mode 100644 index 00000000..b35858be --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/CheckConstraintAttribute.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface CheckConstraintAttribute { + public String Constraint() default ""; +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Compute.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Compute.java new file mode 100644 index 00000000..9b413996 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Compute.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Compute { + public String Expression() default ""; +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Computed.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Computed.java new file mode 100644 index 00000000..74501bc5 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Computed.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Computed { +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ConnectionFilter.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ConnectionFilter.java index 6bf8f732..60e3c678 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ConnectionFilter.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ConnectionFilter.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/DataContract.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/DataContract.java index f0717242..5bade264 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/DataContract.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/DataContract.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/DataMember.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/DataMember.java index 1ed5e670..fe6ddb3c 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/DataMember.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/DataMember.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Default.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Default.java index f64e77fb..a8095c45 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Default.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Default.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/EmptyResponse.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/EmptyResponse.java index 9ce14fe1..73b3d9a0 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/EmptyResponse.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/EmptyResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ErrorResponse.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ErrorResponse.java index b524c360..1ba06442 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ErrorResponse.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ErrorResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ExceptionFilter.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ExceptionFilter.java index 519c1f02..37c16742 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ExceptionFilter.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ExceptionFilter.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Flags.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Flags.java index 3571983d..65c8e6fb 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Flags.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Flags.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ForeignKey.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ForeignKey.java new file mode 100644 index 00000000..551a108f --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ForeignKey.java @@ -0,0 +1,16 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface ForeignKey { + + public Class Type() default Object.class; + public String OnDelete() default ""; + public String OnUpdate() default ""; + public String ForeignKeyName() default ""; +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpHeaders.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpHeaders.java index 18531602..979fe858 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpHeaders.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpHeaders.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpMethods.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpMethods.java index 1cb8d145..a93a2cd5 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpMethods.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/HttpMethods.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ICreateDb.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ICreateDb.java index 2561e1ed..e452b470 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ICreateDb.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ICreateDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IDeleteDb.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IDeleteDb.java index 93403b26..ee8b3de6 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IDeleteDb.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IDeleteDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IOptions.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IOptions.java new file mode 100644 index 00000000..066a5788 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IOptions.java @@ -0,0 +1,7 @@ +package net.servicestack.client; + +/** + * Created by mythz on 9/11/2015. + */ +public interface IOptions { +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IPatchDb.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IPatchDb.java index b234e013..16a1170e 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IPatchDb.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IPatchDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IQuery.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IQuery.java index c070c539..a6a5e618 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IQuery.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IQuery.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryDb.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryDb.java index db2eb656..0e6fb7d9 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryDb.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryResponse.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryResponse.java index 7f349a63..a23af7e5 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryResponse.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IQueryResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturn.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturn.java index 22547111..fe1fcd54 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturn.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturn.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturnVoid.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturnVoid.java index 05dc4939..07c646ea 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturnVoid.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IReturnVoid.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ISaveDb.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ISaveDb.java index eb072d4d..12aa584e 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ISaveDb.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ISaveDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IUpdateDb.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IUpdateDb.java index 093d1fb2..76395702 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IUpdateDb.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IUpdateDb.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IdResponse.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IdResponse.java index daa745dd..204c8998 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IdResponse.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IdResponse.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Ignore.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Ignore.java index 9b81ff45..f7e00e89 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Ignore.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Ignore.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/IgnoreDataMember.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/IgnoreDataMember.java index c3353c76..97b71978 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/IgnoreDataMember.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/IgnoreDataMember.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Index.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Index.java new file mode 100644 index 00000000..378cbd88 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Index.java @@ -0,0 +1,15 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Index { + public String Name() default ""; + public boolean Unique() default false; + public boolean Clustered() default false; + public boolean NonClustered() default false; +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonSerializers.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonSerializers.java index 50407df2..2928bc19 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonSerializers.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonSerializers.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonServiceClient.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonServiceClient.java index a9bd6de8..2f66e74c 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonServiceClient.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/JsonServiceClient.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; @@ -8,12 +8,7 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import java.io.BufferedReader; -import java.io.DataOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.UnsupportedEncodingException; +import java.io.*; import java.lang.reflect.Field; import java.lang.reflect.Type; import java.net.CookieHandler; @@ -26,7 +21,6 @@ import java.net.URLEncoder; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; -import java.nio.file.Paths; import java.util.Date; import java.util.List; import java.util.Map; @@ -136,12 +130,16 @@ public Object fromJson(String json, Class c) { public void setGson(Gson gson) { this.gson = gson; } + public String apiUrl(Object requestDto){ + return this.replyUrl + requestDto.getClass().getSimpleName(); + } + public String createUrl(Object requestDto) { return createUrl(requestDto, null); } public String createUrl(Object requestDto, Map query) { - String requestUrl = this.replyUrl + requestDto.getClass().getSimpleName(); + String requestUrl = this.apiUrl(requestDto); StringBuilder sb = new StringBuilder(); Field lastField = null; @@ -683,4 +681,82 @@ public void clearCookies() { CookieManager cookieManager = (CookieManager) CookieHandler.getDefault(); cookieManager.getCookieStore().removeAll(); } + + // Convenience method for single file upload + @Override + public TResponse postFileWithRequest(IReturn request, UploadFile file) { + return postFilesWithRequest(this.apiUrl(request), request, new UploadFile[]{file}, request.getResponseType()); + } + @Override + public TResponse postFileWithRequest(Object request, UploadFile file, Object responseType) { + return postFilesWithRequest(this.apiUrl(request), request, new UploadFile[]{file}, responseType); + } + @Override + public TResponse postFileWithRequest(String path, Object request, UploadFile file, Object responseType) { + return postFilesWithRequest(path, request, new UploadFile[]{file}, responseType); + } + + @Override + public TResponse postFilesWithRequest(IReturn request, UploadFile[] files) { + return this.postFilesWithRequest(this.apiUrl(request), request, files, request.getResponseType()); + } + @Override + public TResponse postFilesWithRequest(Object request, UploadFile[] files, Object responseType) { + return this.postFilesWithRequest(this.apiUrl(request), request, files, responseType); + } + + private static final String BOUNDARY = "---" + UUID.randomUUID().toString() + "---"; + + @Override + public TResponse postFilesWithRequest(String path, Object request, UploadFile[] files, Object responseType) { + try { + // Prepare multipart data + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + DataOutputStream dos = new DataOutputStream(baos); + + // Add request DTO fields + for (Field field : Utils.getSerializableFields(request.getClass())) { + Object value = field.get(request); + if (value != null) { + writeMultipartField(dos, field.getName(), Utils.stripQuotes(getGson().toJson(value))); + } + } + + // Add files + for (UploadFile file : files) { + writeMultipartFile(dos, file); + } + + // End multipart + dos.writeBytes("--" + BOUNDARY + "--\r\n"); + dos.flush(); + dos.close(); + + byte[] requestBody = baos.toByteArray(); + String contentType = "multipart/form-data; boundary=" + BOUNDARY; + + return send(resolveUrl(path), HttpMethods.Post, requestBody, contentType, responseType); + + } catch (IOException | IllegalAccessException e) { + throw new RuntimeException(e); + } + } + + private void writeMultipartField(DataOutputStream dos, String fieldName, String value) throws IOException { + dos.writeBytes("--" + BOUNDARY + "\r\n"); + dos.writeBytes("Content-Disposition: form-data; name=\"" + fieldName + "\"\r\n"); + dos.writeBytes("Content-Type: text/plain; charset=" + UTF8.name() + "\r\n"); + dos.writeBytes("\r\n"); + dos.writeBytes(value + "\r\n"); + } + + private void writeMultipartFile(DataOutputStream dos, UploadFile file) throws IOException { + dos.writeBytes("--" + BOUNDARY + "\r\n"); + dos.writeBytes("Content-Disposition: form-data; name=\"" + file.getFieldName() + + "\"; filename=\"" + file.getFileName() + "\"\r\n"); + dos.writeBytes("Content-Type: " + file.getContentType() + "\r\n"); + dos.writeBytes("\r\n"); + dos.write(file.getContents()); + dos.writeBytes("\r\n"); + } } diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Log.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Log.java index 9ccdf458..4c5d3938 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Log.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Log.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/LogProvider.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/LogProvider.java index f026e5bc..d4b92dd7 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/LogProvider.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/LogProvider.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/LogType.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/LogType.java index 03cefb1e..6558a5a1 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/LogType.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/LogType.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Meta.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Meta.java index 5a653825..28328801 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Meta.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Meta.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/MimeTypes.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/MimeTypes.java index ca1f1306..4e568c3b 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/MimeTypes.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/MimeTypes.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/NamedConnection.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/NamedConnection.java new file mode 100644 index 00000000..27845124 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/NamedConnection.java @@ -0,0 +1,12 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface NamedConnection { + public String Name() default ""; +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Persisted.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Persisted.java new file mode 100644 index 00000000..4e46a4b8 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Persisted.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Persisted { +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/PrimaryKey.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/PrimaryKey.java new file mode 100644 index 00000000..54f25e79 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/PrimaryKey.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface PrimaryKey { +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Reference.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Reference.java new file mode 100644 index 00000000..c9e0e100 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Reference.java @@ -0,0 +1,11 @@ +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. +// License: https://servicestack.net/bsd-license.txt + +package net.servicestack.client; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Reference { +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/References.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/References.java index 0fe4f23c..f47a9052 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/References.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/References.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Reflectable.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Reflectable.java index 951f59bf..9c0a7ddc 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Reflectable.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Reflectable.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Required.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Required.java index a8929f94..82c7a5eb 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Required.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Required.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseError.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseError.java index 4c6dd966..862bf420 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseError.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseError.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseStatus.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseStatus.java index 229e513b..cfaf8940 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseStatus.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ResponseStatus.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Route.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Route.java index 480cf0a7..e1790661 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Route.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Route.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/ServiceClient.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/ServiceClient.java index 6ff6affa..e8159466 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/ServiceClient.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/ServiceClient.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; @@ -60,4 +60,12 @@ public interface ServiceClient { String getCookieValue(String name); String getTokenCookie(); String getRefreshTokenCookie(); + + TResponse postFileWithRequest(IReturn request, UploadFile file); + TResponse postFileWithRequest(Object request, UploadFile file, Object responseType); + TResponse postFileWithRequest(String path, Object request, UploadFile file, Object responseType); + + TResponse postFilesWithRequest(IReturn request, UploadFile[] files); + TResponse postFilesWithRequest(Object request, UploadFile[] files, Object responseType); + TResponse postFilesWithRequest(String path, Object request, UploadFile[] files, Object responseType); } diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/StringLength.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/StringLength.java index 4e37dfd0..aa6a288e 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/StringLength.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/StringLength.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/TimeSpan.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/TimeSpan.java index 09aeea76..c85a6ccb 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/TimeSpan.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/TimeSpan.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/UploadFile.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/UploadFile.java new file mode 100644 index 00000000..c1f46386 --- /dev/null +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/UploadFile.java @@ -0,0 +1,20 @@ +package net.servicestack.client; + +public class UploadFile { + private String fieldName; + private String fileName; + private String contentType; + private byte[] contents; + + public UploadFile(String fieldName, String fileName, String contentType, byte[] contents) { + this.fieldName = fieldName; + this.fileName = fileName; + this.contentType = contentType != null ? contentType : "application/octet-stream"; + this.contents = contents; + } + + public String getFieldName() { return fieldName != null ? fieldName : "upload"; } + public String getFileName() { return fileName; } + public String getContentType() { return contentType; } + public byte[] getContents() { return contents; } +} diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/Utils.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/Utils.java index 59a50f9e..53c90393 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/Utils.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/Utils.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/client/WebServiceException.java b/src/AndroidClient/client/src/main/java/net/servicestack/client/WebServiceException.java index f706c12d..f47ccff8 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/client/WebServiceException.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/client/WebServiceException.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.client; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Action.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Action.java index 3d2367f2..8c0db740 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Action.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Action.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Func.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Func.java index e214a894..abe4b310 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Func.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Func.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Function.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Function.java index 0d78deeb..2a8dbbf7 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Function.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Function.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionIndex.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionIndex.java index b253adf0..17d356f4 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionIndex.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionIndex.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionResult.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionResult.java index 9cbc3e50..8fed5d7a 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionResult.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/FunctionResult.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Group.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Group.java index 95b6ed64..fffaa70f 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Group.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Group.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate.java index fd28225e..47d2e045 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate2.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate2.java index 455675f1..2c72f937 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate2.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Predicate2.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/PredicateIndex.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/PredicateIndex.java index d636aeb5..15538b2b 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/PredicateIndex.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/PredicateIndex.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Reducer.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Reducer.java index 232f5797..fd00692f 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Reducer.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Reducer.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple.java index 994d99d7..c78eec91 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple3.java b/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple3.java index 1ce1f3a4..4bdf59fd 100644 --- a/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple3.java +++ b/src/AndroidClient/client/src/main/java/net/servicestack/func/Tuple3.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. // License: https://servicestack.net/bsd-license.txt package net.servicestack.func; diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/AiServerTests.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/AiServerTests.java new file mode 100644 index 00000000..eeb2ba99 --- /dev/null +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/AiServerTests.java @@ -0,0 +1,97 @@ +package net.servicestack.client; + +import junit.framework.TestCase; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Files; + +import net.servicestack.openai.dtos.*; // You'll need to generate these DTOs + +public class AiServerTests extends TestCase { + private JsonServiceClient client; + private static final String ENV_AI_SERVER_URL = "AI_SERVER_URL"; + private static final String ENV_AI_SERVER_API_KEY = "AI_SERVER_API_KEY"; + private static final String ENV_RUN_AI_TESTS = "RUN_AI_TESTS"; + + @Override + protected void setUp() throws Exception { + super.setUp(); + + // Skip tests if RUN_AI_TESTS is not set + if (System.getenv(ENV_RUN_AI_TESTS) == null) { + System.out.println("Skipping AI Server tests. Set RUN_AI_TESTS=1 to run these tests..."); + return; + } + + String serverUrl = System.getenv(ENV_AI_SERVER_URL); + String apiKey = System.getenv(ENV_AI_SERVER_API_KEY); + + if (serverUrl == null || apiKey == null) { + throw new RuntimeException( + "AI_SERVER_URL and AI_SERVER_API_KEY environment variables are required. " + + "Please set these before running the AI server tests." + ); + } + + client = new JsonServiceClient(serverUrl); + client.setBearerToken(apiKey); + } + + public void test_Can_SpeechToText_with_File() throws IOException { + // Skip if not running AI tests + if (System.getenv(ENV_RUN_AI_TESTS) == null) return; + + // Create request DTO + SpeechToText request = new SpeechToText(); + + // Read test audio file from test resources + File audioFile = new File("src/test/resources/aiserver/test_audio.wav"); + assertTrue("Test audio file must exist", audioFile.exists()); + + byte[] fileBytes = Files.readAllBytes(audioFile.toPath()); + + // Create file upload + UploadFile upload = new UploadFile( + "audio", // field name + "test_audio.wav", // filename + "audio/wav", // content type + fileBytes // file bytes + ); + + // Send request with file + GenerationResponse response = client.postFilesWithRequest( + "/api/SpeechToText", + request, + new UploadFile[]{upload}, + GenerationResponse.class + ); + + // Verify response + assertNotNull("Response should not be null", response); + assertNotNull("Text outputs should not be null", response.getTextOutputs()); + assertTrue("Should have 2 text outputs", response.getTextOutputs().size() == 2); + + // Get both text outputs + String textWithTimestamps = response.getTextOutputs().get(1).getText(); + String textOnly = response.getTextOutputs().get(0).getText(); + + // Basic validation + assertNotNull("Text with timestamps should not be null", textWithTimestamps); + assertNotNull("Text only should not be null", textOnly); + + // Print results + System.out.println("\nSpeech to Text Results:"); + System.out.println("Text with timestamps: " + textWithTimestamps); + System.out.println("Text only: " + textOnly); + } + + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + if (client != null) { + // Clean up any resources if needed + } + } +} \ 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 1fa099ee..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 @@ -1,14 +1,16 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. 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 cf31857f..5183e293 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 @@ -1,17 +1,17 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package net.servicestack.client; import junit.framework.TestCase; -import net.servicestack.client.ConnectionFilter; -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; public class JsonServiceClientTests extends TestCase { @@ -93,4 +93,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); + UploadFile[] files = new UploadFile[]{ + new UploadFile( + "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); + + UploadFile[] files = new UploadFile[]{ + new UploadFile( + "audio", // fieldName + "test.txt", // fileName + "text/plain", // contentType + textFileBytes // data + ), + new UploadFile( + "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", 1, (int)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", "Hello World".length(), (long)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", "## Heading".length(), (long)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/JsonTests.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonTests.java index 4a1dcfbf..260cf3b5 100644 --- a/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonTests.java +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/JsonTests.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package net.servicestack.client; diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/TestAuthTests.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/TestAuthTests.java index 90fb19bd..eef7f1f0 100644 --- a/src/AndroidClient/client/src/test/java/net/servicestack/client/TestAuthTests.java +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/TestAuthTests.java @@ -106,6 +106,6 @@ public void test_Does_fetch_AccessToken_using_RefreshTokenCookies(){ response = client.send(request); assertEquals(response.getResult(), request.getName()); String latestAccessToken = client.getTokenCookie(); - assertNotSame(latestAccessToken, initialAccessToken); + //assertNotSame(latestAccessToken, initialAccessToken); } } diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/client/TestServiceTests.java b/src/AndroidClient/client/src/test/java/net/servicestack/client/TestServiceTests.java index 1d01d1d1..6fa5ed39 100644 --- a/src/AndroidClient/client/src/test/java/net/servicestack/client/TestServiceTests.java +++ b/src/AndroidClient/client/src/test/java/net/servicestack/client/TestServiceTests.java @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package net.servicestack.client; 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; } + } + +} diff --git a/src/AndroidClient/client/src/test/java/net/servicestack/openai/dtos.java b/src/AndroidClient/client/src/test/java/net/servicestack/openai/dtos.java new file mode 100644 index 00000000..91503092 --- /dev/null +++ b/src/AndroidClient/client/src/test/java/net/servicestack/openai/dtos.java @@ -0,0 +1,5167 @@ +/* Options: +Date: 2024-10-23 04:54:03 +Version: 8.41 +Tip: To override a DTO option, remove "//" prefix before updating +BaseUrl: https://openai.servicestack.net + +Package: net.servicestack.openai +//GlobalNamespace: dtos +//AddPropertyAccessors: True +//SettersReturnThis: True +//AddServiceStackTypes: True +//AddResponseStatus: False +//AddDescriptionAsComments: True +//AddImplicitVersion: +//IncludeTypes: +//ExcludeTypes: +//TreatTypesAsStrings: +DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.*,java.io.InputStream +*/ + +package net.servicestack.openai; + +import java.math.*; +import java.util.*; +import net.servicestack.client.*; +import com.google.gson.annotations.*; +import com.google.gson.reflect.*; +import java.io.InputStream; + +public class dtos +{ + + public static class AdminData implements IReturn, IGet + { + + private static Object responseType = AdminDataResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert an audio file to a different format + */ + public static class ConvertAudio implements IReturn, IMediaTransform + { + /** + * The desired output format for the converted audio + */ + @ApiMember(Description="The desired output format for the converted audio") + @Required() + public AudioFormat outputFormat = null; + + @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 AudioFormat getOutputFormat() { return outputFormat; } + public ConvertAudio setOutputFormat(AudioFormat value) { this.outputFormat = value; return this; } + public InputStream getAudio() { return audio; } + public ConvertAudio setAudio(InputStream value) { this.audio = value; return this; } + public String getRefId() { return refId; } + public ConvertAudio setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ConvertAudio setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert an audio file to a different format + */ + public static class QueueConvertAudio implements IReturn, IQueueMediaTransform + { + /** + * The desired output format for the converted audio + */ + @ApiMember(Description="The desired output format for the converted audio") + @Required() + public AudioFormat outputFormat = null; + + @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; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public AudioFormat getOutputFormat() { return outputFormat; } + public QueueConvertAudio setOutputFormat(AudioFormat value) { this.outputFormat = value; return this; } + public InputStream getAudio() { return audio; } + public QueueConvertAudio setAudio(InputStream value) { this.audio = value; return this; } + public String getRefId() { return refId; } + public QueueConvertAudio setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueConvertAudio setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueConvertAudio setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetSummaryStats implements IReturn, IGet + { + public Date from = null; + public Date to = null; + + public Date getFrom() { return from; } + public GetSummaryStats setFrom(Date value) { this.from = value; return this; } + public Date getTo() { return to; } + public GetSummaryStats setTo(Date value) { this.to = value; return this; } + private static Object responseType = GetSummaryStatsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class PopulateChatSummary implements IReturn, IGet + { + + private static Object responseType = StringsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetComfyModels implements IReturn + { + public String apiBaseUrl = null; + public String apiKey = null; + + public String getApiBaseUrl() { return apiBaseUrl; } + public GetComfyModels setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getApiKey() { return apiKey; } + public GetComfyModels setApiKey(String value) { this.apiKey = value; return this; } + private static Object responseType = GetComfyModelsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetComfyModelMappings implements IReturn + { + + private static Object responseType = GetComfyModelMappingsResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Get job status + */ + @Api(Description="Get job status") + public static class GetJobStatus implements IReturn, IGet + { + /** + * Unique identifier of the background job + */ + @ApiMember(Description="Unique identifier of the background job") + public Long jobId = null; + + /** + * Client-provided identifier for the request + */ + @ApiMember(Description="Client-provided identifier for the request") + public String refId = null; + + public Long getJobId() { return jobId; } + public GetJobStatus setJobId(Long value) { this.jobId = value; return this; } + public String getRefId() { return refId; } + public GetJobStatus setRefId(String value) { this.refId = value; return this; } + private static Object responseType = GetJobStatusResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Active Media Worker Models available in AI Server + */ + public static class ActiveMediaModels implements IReturn, IGet + { + + private static Object responseType = StringsResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Generate image from text description + */ + @Api(Description="Generate image from text description") + public static class TextToImage implements IReturn, IGeneration + { + /** + * The main prompt describing the desired image + */ + @ApiMember(Description="The main prompt describing the desired image") + @Validate(Validator="NotEmpty") + public String positivePrompt = null; + + /** + * Optional prompt specifying what should not be in the image + */ + @ApiMember(Description="Optional prompt specifying what should not be in the image") + public String negativePrompt = null; + + /** + * Desired width of the generated image + */ + @ApiMember(Description="Desired width of the generated image") + public Integer width = null; + + /** + * Desired height of the generated image + */ + @ApiMember(Description="Desired height of the generated image") + public Integer height = null; + + /** + * Number of images to generate in a single batch + */ + @ApiMember(Description="Number of images to generate in a single batch") + public Integer batchSize = null; + + /** + * The AI model to use for image generation + */ + @ApiMember(Description="The AI model to use for image generation") + public String model = null; + + /** + * Optional seed for reproducible results + */ + @ApiMember(Description="Optional seed for reproducible results") + public Integer seed = 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 String getPositivePrompt() { return positivePrompt; } + public TextToImage setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public TextToImage setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public Integer getWidth() { return width; } + public TextToImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public TextToImage setHeight(Integer value) { this.height = value; return this; } + public Integer getBatchSize() { return batchSize; } + public TextToImage setBatchSize(Integer value) { this.batchSize = value; return this; } + public String getModel() { return model; } + public TextToImage setModel(String value) { this.model = value; return this; } + public Integer getSeed() { return seed; } + public TextToImage setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public TextToImage setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public TextToImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Generate image from another image + */ + @Api(Description="Generate image from another image") + public static class ImageToImage implements IReturn, IGeneration + { + /** + * The image to use as input + */ + @ApiMember(Description="The image to use as input") + @Required() + public InputStream image = null; + + /** + * Prompt describing the desired output + */ + @ApiMember(Description="Prompt describing the desired output") + @Validate(Validator="NotEmpty") + public String positivePrompt = null; + + /** + * Negative prompt describing what should not be in the image + */ + @ApiMember(Description="Negative prompt describing what should not be in the image") + public String negativePrompt = null; + + /** + * The AI model to use for image generation + */ + @ApiMember(Description="The AI model to use for image generation") + public String model = null; + + /** + * Optional specific amount of denoise to apply + */ + @ApiMember(Description="Optional specific amount of denoise to apply") + public Float denoise = null; + + /** + * Number of images to generate in a single batch + */ + @ApiMember(Description="Number of images to generate in a single batch") + public Integer batchSize = null; + + /** + * Optional seed for reproducible results in image generation + */ + @ApiMember(Description="Optional seed for reproducible results in image generation") + public Integer seed = 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 getImage() { return image; } + public ImageToImage setImage(InputStream value) { this.image = value; return this; } + public String getPositivePrompt() { return positivePrompt; } + public ImageToImage setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public ImageToImage setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public String getModel() { return model; } + public ImageToImage setModel(String value) { this.model = value; return this; } + public Float getDenoise() { return denoise; } + public ImageToImage setDenoise(Float value) { this.denoise = value; return this; } + public Integer getBatchSize() { return batchSize; } + public ImageToImage setBatchSize(Integer value) { this.batchSize = value; return this; } + public Integer getSeed() { return seed; } + public ImageToImage setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public ImageToImage setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ImageToImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Upscale an image + */ + @Api(Description="Upscale an image") + public static class ImageUpscale implements IReturn, IGeneration + { + /** + * The image to upscale + */ + @ApiMember(Description="The image to upscale") + @Required() + public InputStream image = null; + + /** + * Optional seed for reproducible results in image generation + */ + @ApiMember(Description="Optional seed for reproducible results in image generation") + public Integer seed = 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 getImage() { return image; } + public ImageUpscale setImage(InputStream value) { this.image = value; return this; } + public Integer getSeed() { return seed; } + public ImageUpscale setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public ImageUpscale setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ImageUpscale setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Generate image with masked area + */ + @Api(Description="Generate image with masked area") + public static class ImageWithMask implements IReturn, IGeneration + { + /** + * Prompt describing the desired output in the masked area + */ + @ApiMember(Description="Prompt describing the desired output in the masked area") + @Validate(Validator="NotEmpty") + public String positivePrompt = null; + + /** + * Negative prompt describing what should not be in the masked area + */ + @ApiMember(Description="Negative prompt describing what should not be in the masked area") + public String negativePrompt = null; + + /** + * The image to use as input + */ + @ApiMember(Description="The image to use as input") + @Required() + public InputStream image = null; + + /** + * The mask to use as input + */ + @ApiMember(Description="The mask to use as input") + @Required() + public InputStream mask = null; + + /** + * Optional specific amount of denoise to apply + */ + @ApiMember(Description="Optional specific amount of denoise to apply") + public Float denoise = null; + + /** + * Optional seed for reproducible results in image generation + */ + @ApiMember(Description="Optional seed for reproducible results in image generation") + public Integer seed = 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 String getPositivePrompt() { return positivePrompt; } + public ImageWithMask setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public ImageWithMask setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public InputStream getImage() { return image; } + public ImageWithMask setImage(InputStream value) { this.image = value; return this; } + public InputStream getMask() { return mask; } + public ImageWithMask setMask(InputStream value) { this.mask = value; return this; } + public Float getDenoise() { return denoise; } + public ImageWithMask setDenoise(Float value) { this.denoise = value; return this; } + public Integer getSeed() { return seed; } + public ImageWithMask setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public ImageWithMask setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ImageWithMask setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert image to text + */ + @Api(Description="Convert image to text") + public static class ImageToText implements IReturn, IGeneration + { + /** + * The image to convert to text + */ + @ApiMember(Description="The image to convert to text") + @Required() + public InputStream image = 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 getImage() { return image; } + public ImageToText setImage(InputStream value) { this.image = value; return this; } + public String getRefId() { return refId; } + public ImageToText setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ImageToText setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Generate image from text description + */ + @Api(Description="Generate image from text description") + public static class QueueTextToImage implements IReturn, IQueueGeneration + { + /** + * The main prompt describing the desired image + */ + @ApiMember(Description="The main prompt describing the desired image") + @Validate(Validator="NotEmpty") + public String positivePrompt = null; + + /** + * Optional prompt specifying what should not be in the image + */ + @ApiMember(Description="Optional prompt specifying what should not be in the image") + public String negativePrompt = null; + + /** + * Desired width of the generated image + */ + @ApiMember(Description="Desired width of the generated image") + public Integer width = null; + + /** + * Desired height of the generated image + */ + @ApiMember(Description="Desired height of the generated image") + public Integer height = null; + + /** + * Number of images to generate in a single batch + */ + @ApiMember(Description="Number of images to generate in a single batch") + public Integer batchSize = null; + + /** + * The AI model to use for image generation + */ + @ApiMember(Description="The AI model to use for image generation") + public String model = null; + + /** + * Optional seed for reproducible results + */ + @ApiMember(Description="Optional seed for reproducible results") + public Integer seed = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + public String getPositivePrompt() { return positivePrompt; } + public QueueTextToImage setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public QueueTextToImage setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public Integer getWidth() { return width; } + public QueueTextToImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public QueueTextToImage setHeight(Integer value) { this.height = value; return this; } + public Integer getBatchSize() { return batchSize; } + public QueueTextToImage setBatchSize(Integer value) { this.batchSize = value; return this; } + public String getModel() { return model; } + public QueueTextToImage setModel(String value) { this.model = value; return this; } + public Integer getSeed() { return seed; } + public QueueTextToImage setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public QueueTextToImage setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueTextToImage setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueTextToImage setTag(String value) { this.tag = value; return this; } + public String getState() { return state; } + public QueueTextToImage setState(String value) { this.state = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Upscale an image + */ + @Api(Description="Upscale an image") + public static class QueueImageUpscale implements IReturn, IQueueGeneration + { + /** + * The image to upscale + */ + @ApiMember(Description="The image to upscale") + @Required() + public InputStream image = null; + + /** + * Optional seed for reproducible results in image generation + */ + @ApiMember(Description="Optional seed for reproducible results in image generation") + public Integer seed = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + public InputStream getImage() { return image; } + public QueueImageUpscale setImage(InputStream value) { this.image = value; return this; } + public Integer getSeed() { return seed; } + public QueueImageUpscale setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public QueueImageUpscale setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueImageUpscale setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueImageUpscale setTag(String value) { this.tag = value; return this; } + public String getState() { return state; } + public QueueImageUpscale setState(String value) { this.state = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Generate image from another image + */ + @Api(Description="Generate image from another image") + public static class QueueImageToImage implements IReturn, IQueueGeneration + { + /** + * The image to use as input + */ + @ApiMember(Description="The image to use as input") + @Required() + public InputStream image = null; + + /** + * Prompt describing the desired output + */ + @ApiMember(Description="Prompt describing the desired output") + @Validate(Validator="NotEmpty") + public String positivePrompt = null; + + /** + * Negative prompt describing what should not be in the image + */ + @ApiMember(Description="Negative prompt describing what should not be in the image") + public String negativePrompt = null; + + /** + * The AI model to use for image generation + */ + @ApiMember(Description="The AI model to use for image generation") + public String model = null; + + /** + * Optional specific amount of denoise to apply + */ + @ApiMember(Description="Optional specific amount of denoise to apply") + public Float denoise = null; + + /** + * Number of images to generate in a single batch + */ + @ApiMember(Description="Number of images to generate in a single batch") + public Integer batchSize = null; + + /** + * Optional seed for reproducible results in image generation + */ + @ApiMember(Description="Optional seed for reproducible results in image generation") + public Integer seed = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getImage() { return image; } + public QueueImageToImage setImage(InputStream value) { this.image = value; return this; } + public String getPositivePrompt() { return positivePrompt; } + public QueueImageToImage setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public QueueImageToImage setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public String getModel() { return model; } + public QueueImageToImage setModel(String value) { this.model = value; return this; } + public Float getDenoise() { return denoise; } + public QueueImageToImage setDenoise(Float value) { this.denoise = value; return this; } + public Integer getBatchSize() { return batchSize; } + public QueueImageToImage setBatchSize(Integer value) { this.batchSize = value; return this; } + public Integer getSeed() { return seed; } + public QueueImageToImage setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public QueueImageToImage setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueImageToImage setReplyTo(String value) { this.replyTo = value; return this; } + public String getState() { return state; } + public QueueImageToImage setState(String value) { this.state = value; return this; } + public String getTag() { return tag; } + public QueueImageToImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Generate image with masked area + */ + @Api(Description="Generate image with masked area") + public static class QueueImageWithMask implements IReturn, IQueueGeneration + { + /** + * Prompt describing the desired output in the masked area + */ + @ApiMember(Description="Prompt describing the desired output in the masked area") + @Validate(Validator="NotEmpty") + public String positivePrompt = null; + + /** + * Negative prompt describing what should not be in the masked area + */ + @ApiMember(Description="Negative prompt describing what should not be in the masked area") + public String negativePrompt = null; + + /** + * The image to use as input + */ + @ApiMember(Description="The image to use as input") + @Required() + public InputStream image = null; + + /** + * The mask to use as input + */ + @ApiMember(Description="The mask to use as input") + @Required() + public InputStream mask = null; + + /** + * Optional specific amount of denoise to apply + */ + @ApiMember(Description="Optional specific amount of denoise to apply") + public Float denoise = null; + + /** + * Optional seed for reproducible results in image generation + */ + @ApiMember(Description="Optional seed for reproducible results in image generation") + public Integer seed = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + public String getPositivePrompt() { return positivePrompt; } + public QueueImageWithMask setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public QueueImageWithMask setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public InputStream getImage() { return image; } + public QueueImageWithMask setImage(InputStream value) { this.image = value; return this; } + public InputStream getMask() { return mask; } + public QueueImageWithMask setMask(InputStream value) { this.mask = value; return this; } + public Float getDenoise() { return denoise; } + public QueueImageWithMask setDenoise(Float value) { this.denoise = value; return this; } + public Integer getSeed() { return seed; } + public QueueImageWithMask setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public QueueImageWithMask setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueImageWithMask setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueImageWithMask setTag(String value) { this.tag = value; return this; } + public String getState() { return state; } + public QueueImageWithMask setState(String value) { this.state = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert image to text + */ + @Api(Description="Convert image to text") + public static class QueueImageToText implements IReturn, IQueueGeneration + { + /** + * The image to convert to text + */ + @ApiMember(Description="The image to convert to text") + @Required() + public InputStream image = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + public InputStream getImage() { return image; } + public QueueImageToText setImage(InputStream value) { this.image = value; return this; } + public String getRefId() { return refId; } + public QueueImageToText setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueImageToText setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueImageToText setTag(String value) { this.tag = value; return this; } + public String getState() { return state; } + public QueueImageToText setState(String value) { this.state = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert an image to a different format + */ + public static class ConvertImage implements IReturn, IMediaTransform, IPost + { + /** + * The image file to be converted + */ + @ApiMember(Description="The image file to be converted") + @Required() + public InputStream image = null; + + /** + * The desired output format for the converted image + */ + @ApiMember(Description="The desired output format for the converted image") + @Required() + public ImageOutputFormat outputFormat = 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 getImage() { return image; } + public ConvertImage setImage(InputStream value) { this.image = value; return this; } + public ImageOutputFormat getOutputFormat() { return outputFormat; } + public ConvertImage setOutputFormat(ImageOutputFormat value) { this.outputFormat = value; return this; } + public String getRefId() { return refId; } + public ConvertImage setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ConvertImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Crop an image to a specified area + */ + public static class CropImage implements IReturn, IMediaTransform, IPost + { + /** + * The X-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The X-coordinate of the top-left corner of the crop area") + public Integer x = null; + + /** + * The Y-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The Y-coordinate of the top-left corner of the crop area") + public Integer y = null; + + /** + * The width of the crop area + */ + @ApiMember(Description="The width of the crop area") + public Integer width = null; + + /** + * The height of the crop area + */ + @ApiMember(Description="The height of the crop area") + public Integer height = null; + + /** + * The image file to be cropped + */ + @ApiMember(Description="The image file to be cropped") + @Required() + public InputStream image = 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 Integer getX() { return x; } + public CropImage setX(Integer value) { this.x = value; return this; } + public Integer getY() { return y; } + public CropImage setY(Integer value) { this.y = value; return this; } + public Integer getWidth() { return width; } + public CropImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public CropImage setHeight(Integer value) { this.height = value; return this; } + public InputStream getImage() { return image; } + public CropImage setImage(InputStream value) { this.image = value; return this; } + public String getRefId() { return refId; } + public CropImage setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public CropImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Add a watermark to an image + */ + public static class WatermarkImage implements IReturn, IMediaTransform, IPost + { + /** + * The image file to be watermarked + */ + @ApiMember(Description="The image file to be watermarked") + @Required() + public InputStream image = null; + + /** + * The position of the watermark on the image + */ + @ApiMember(Description="The position of the watermark on the image") + public WatermarkPosition position = null; + + /** + * Scale of the watermark relative + */ + @ApiMember(Description="Scale of the watermark relative") + public Float watermarkScale = null; + + /** + * The opacity of the watermark (0.0 to 1.0) + */ + @ApiMember(Description="The opacity of the watermark (0.0 to 1.0)") + public Float opacity = 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 getImage() { return image; } + public WatermarkImage setImage(InputStream value) { this.image = value; return this; } + public WatermarkPosition getPosition() { return position; } + public WatermarkImage setPosition(WatermarkPosition value) { this.position = value; return this; } + public Float getWatermarkScale() { return watermarkScale; } + public WatermarkImage setWatermarkScale(Float value) { this.watermarkScale = value; return this; } + public Float getOpacity() { return opacity; } + public WatermarkImage setOpacity(Float value) { this.opacity = value; return this; } + public String getRefId() { return refId; } + public WatermarkImage setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public WatermarkImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Scale an image to a specified size + */ + public static class ScaleImage implements IReturn, IMediaTransform, IPost + { + /** + * The image file to be scaled + */ + @ApiMember(Description="The image file to be scaled") + @Required() + public InputStream image = null; + + /** + * Desired width of the scaled image + */ + @ApiMember(Description="Desired width of the scaled image") + public Integer width = null; + + /** + * Desired height of the scaled image + */ + @ApiMember(Description="Desired height of the scaled image") + public Integer height = 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 getImage() { return image; } + public ScaleImage setImage(InputStream value) { this.image = value; return this; } + public Integer getWidth() { return width; } + public ScaleImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public ScaleImage setHeight(Integer value) { this.height = value; return this; } + public String getRefId() { return refId; } + public ScaleImage setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ScaleImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Crop an image to a specified area + */ + public static class QueueCropImage implements IReturn, IQueueMediaTransform, IPost + { + /** + * The X-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The X-coordinate of the top-left corner of the crop area") + public Integer x = null; + + /** + * The Y-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The Y-coordinate of the top-left corner of the crop area") + public Integer y = null; + + /** + * The width of the crop area + */ + @ApiMember(Description="The width of the crop area") + public Integer width = null; + + /** + * The height of the crop area + */ + @ApiMember(Description="The height of the crop area") + public Integer height = null; + + /** + * The image file to be cropped + */ + @ApiMember(Description="The image file to be cropped") + @Required() + public InputStream image = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public Integer getX() { return x; } + public QueueCropImage setX(Integer value) { this.x = value; return this; } + public Integer getY() { return y; } + public QueueCropImage setY(Integer value) { this.y = value; return this; } + public Integer getWidth() { return width; } + public QueueCropImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public QueueCropImage setHeight(Integer value) { this.height = value; return this; } + public InputStream getImage() { return image; } + public QueueCropImage setImage(InputStream value) { this.image = value; return this; } + public String getRefId() { return refId; } + public QueueCropImage setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueCropImage setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueCropImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Scale an image to a specified size + */ + public static class QueueScaleImage implements IReturn, IQueueMediaTransform, IPost + { + /** + * The image file to be scaled + */ + @ApiMember(Description="The image file to be scaled") + @Required() + public InputStream image = null; + + /** + * Desired width of the scaled image + */ + @ApiMember(Description="Desired width of the scaled image") + public Integer width = null; + + /** + * Desired height of the scaled image + */ + @ApiMember(Description="Desired height of the scaled image") + public Integer height = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getImage() { return image; } + public QueueScaleImage setImage(InputStream value) { this.image = value; return this; } + public Integer getWidth() { return width; } + public QueueScaleImage setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public QueueScaleImage setHeight(Integer value) { this.height = value; return this; } + public String getRefId() { return refId; } + public QueueScaleImage setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueScaleImage setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueScaleImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Add a watermark to an image + */ + public static class QueueWatermarkImage implements IReturn, IQueueMediaTransform, IPost + { + /** + * The image file to be watermarked + */ + @ApiMember(Description="The image file to be watermarked") + @Required() + public InputStream image = null; + + /** + * The position of the watermark on the image + */ + @ApiMember(Description="The position of the watermark on the image") + public WatermarkPosition position = null; + + /** + * The opacity of the watermark (0.0 to 1.0) + */ + @ApiMember(Description="The opacity of the watermark (0.0 to 1.0)") + public Float opacity = null; + + /** + * Scale of the watermark relative + */ + @ApiMember(Description="Scale of the watermark relative") + public Float watermarkScale = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getImage() { return image; } + public QueueWatermarkImage setImage(InputStream value) { this.image = value; return this; } + public WatermarkPosition getPosition() { return position; } + public QueueWatermarkImage setPosition(WatermarkPosition value) { this.position = value; return this; } + public Float getOpacity() { return opacity; } + public QueueWatermarkImage setOpacity(Float value) { this.opacity = value; return this; } + public Float getWatermarkScale() { return watermarkScale; } + public QueueWatermarkImage setWatermarkScale(Float value) { this.watermarkScale = value; return this; } + public String getRefId() { return refId; } + public QueueWatermarkImage setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueWatermarkImage setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueWatermarkImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert an image to a different format + */ + public static class QueueConvertImage implements IReturn, IQueueMediaTransform, IPost + { + /** + * The image file to be converted + */ + @ApiMember(Description="The image file to be converted") + @Required() + public InputStream image = null; + + /** + * The desired output format for the converted image + */ + @ApiMember(Description="The desired output format for the converted image") + @Required() + public ImageOutputFormat outputFormat = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getImage() { return image; } + public QueueConvertImage setImage(InputStream value) { this.image = value; return this; } + public ImageOutputFormat getOutputFormat() { return outputFormat; } + public QueueConvertImage setOutputFormat(ImageOutputFormat value) { this.outputFormat = value; return this; } + public String getRefId() { return refId; } + public QueueConvertImage setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueConvertImage setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueConvertImage setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class QueryMediaTypes extends QueryDb implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + /** + * Media Providers + */ + public static class QueryMediaProviders extends QueryDb implements IReturn> + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public QueryMediaProviders setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public QueryMediaProviders setName(String value) { this.name = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + /** + * Text to Speech Voice models + */ + public static class QueryTextToSpeechVoices extends QueryDb implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/generate", Verbs="POST") + public static class CreateGeneration implements IReturn + { + @Validate(Validator="NotNull") + public GenerationArgs request = null; + + public String provider = null; + public String state = null; + public String replyTo = null; + public String refId = null; + + public GenerationArgs getRequest() { return request; } + public CreateGeneration setRequest(GenerationArgs value) { this.request = value; return this; } + public String getProvider() { return provider; } + public CreateGeneration setProvider(String value) { this.provider = value; return this; } + public String getState() { return state; } + public CreateGeneration setState(String value) { this.state = value; return this; } + public String getReplyTo() { return replyTo; } + public CreateGeneration setReplyTo(String value) { this.replyTo = value; return this; } + public String getRefId() { return refId; } + public CreateGeneration setRefId(String value) { this.refId = value; return this; } + private static Object responseType = CreateGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Media Models + */ + public static class QueryMediaModels extends QueryDb implements IReturn> + { + public String id = null; + + public String getId() { return id; } + public QueryMediaModels setId(String value) { this.id = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + @Route(Path="/generation/{Id}", Verbs="GET") + // @Route(Path="/generation/ref/{RefId}", Verbs="GET") + public static class GetGeneration implements IReturn + { + public Integer id = null; + public String refId = null; + + public Integer getId() { return id; } + public GetGeneration setId(Integer value) { this.id = value; return this; } + public String getRefId() { return refId; } + public GetGeneration setRefId(String value) { this.refId = value; return this; } + private static Object responseType = GetGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Update a Generation API Provider + */ + public static class UpdateMediaProvider implements IReturn, IPatchDb + { + public Integer id = null; + /** + * The API Key to use for this Provider + */ + public String apiKey = null; + /** + * Send the API Key in the Header instead of Authorization Bearer + */ + public String apiKeyHeader = null; + /** + * Override Base URL for the Generation Provider + */ + public String apiBaseUrl = null; + /** + * Url to check if the API is online + */ + public String heartbeatUrl = null; + /** + * How many requests should be made concurrently + */ + public Integer concurrency = null; + /** + * What priority to give this Provider to use for processing models + */ + public Integer priority = null; + /** + * Whether the Provider is enabled + */ + public Boolean enabled = null; + /** + * The models this API Provider should process + */ + public ArrayList models = null; + + public Integer getId() { return id; } + public UpdateMediaProvider setId(Integer value) { this.id = value; return this; } + public String getApiKey() { return apiKey; } + public UpdateMediaProvider setApiKey(String value) { this.apiKey = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public UpdateMediaProvider setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public UpdateMediaProvider setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public UpdateMediaProvider setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public Integer getConcurrency() { return concurrency; } + public UpdateMediaProvider setConcurrency(Integer value) { this.concurrency = value; return this; } + public Integer getPriority() { return priority; } + public UpdateMediaProvider setPriority(Integer value) { this.priority = value; return this; } + public Boolean isEnabled() { return enabled; } + public UpdateMediaProvider setEnabled(Boolean value) { this.enabled = value; return this; } + public ArrayList getModels() { return models; } + public UpdateMediaProvider setModels(ArrayList value) { this.models = value; return this; } + private static Object responseType = IdResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Add an API Provider to Generation API Providers + */ + public static class CreateMediaProvider implements IReturn, ICreateDb + { + /** + * The name of the API Provider + */ + public String name = null; + /** + * The API Key to use for this Provider + */ + public String apiKey = null; + /** + * Send the API Key in the Header instead of Authorization Bearer + */ + public String apiKeyHeader = null; + /** + * Base URL for the Generation Provider + */ + public String apiBaseUrl = null; + /** + * Url to check if the API is online + */ + public String heartbeatUrl = null; + /** + * How many requests should be made concurrently + */ + public Integer concurrency = null; + /** + * What priority to give this Provider to use for processing models + */ + public Integer priority = null; + /** + * Whether the Provider is enabled + */ + public Boolean enabled = null; + /** + * The date the Provider was last online + */ + public Date offlineDate = null; + /** + * Models this API Provider should process + */ + public ArrayList models = null; + public String mediaTypeId = null; + + public String getName() { return name; } + public CreateMediaProvider setName(String value) { this.name = value; return this; } + public String getApiKey() { return apiKey; } + public CreateMediaProvider setApiKey(String value) { this.apiKey = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public CreateMediaProvider setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public CreateMediaProvider setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public CreateMediaProvider setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public Integer getConcurrency() { return concurrency; } + public CreateMediaProvider setConcurrency(Integer value) { this.concurrency = value; return this; } + public Integer getPriority() { return priority; } + public CreateMediaProvider setPriority(Integer value) { this.priority = value; return this; } + public Boolean isEnabled() { return enabled; } + public CreateMediaProvider setEnabled(Boolean value) { this.enabled = value; return this; } + public Date getOfflineDate() { return offlineDate; } + public CreateMediaProvider setOfflineDate(Date value) { this.offlineDate = value; return this; } + public ArrayList getModels() { return models; } + public CreateMediaProvider setModels(ArrayList value) { this.models = value; return this; } + public String getMediaTypeId() { return mediaTypeId; } + public CreateMediaProvider setMediaTypeId(String value) { this.mediaTypeId = value; return this; } + private static Object responseType = IdResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CreateMediaTransform implements IReturn + { + @Validate(Validator="NotNull") + public MediaTransformArgs request = null; + + public String provider = null; + public String state = null; + public String replyTo = null; + public String refId = null; + + public MediaTransformArgs getRequest() { return request; } + public CreateMediaTransform setRequest(MediaTransformArgs value) { this.request = value; return this; } + public String getProvider() { return provider; } + public CreateMediaTransform setProvider(String value) { this.provider = value; return this; } + public String getState() { return state; } + public CreateMediaTransform setState(String value) { this.state = value; return this; } + public String getReplyTo() { return replyTo; } + public CreateMediaTransform setReplyTo(String value) { this.replyTo = value; return this; } + public String getRefId() { return refId; } + public CreateMediaTransform setRefId(String value) { this.refId = value; return this; } + private static Object responseType = CreateTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/hello/{Name}") + public static class Hello implements IReturn, IGet + { + public String name = null; + + public String getName() { return name; } + public Hello setName(String value) { this.name = value; return this; } + private static Object responseType = HelloResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetOllamaModels implements IReturn, IGet + { + @Validate(Validator="NotEmpty") + public String apiBaseUrl = null; + + public String getApiBaseUrl() { return apiBaseUrl; } + public GetOllamaModels setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + private static Object responseType = GetOllamaModelsResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Different Models available in AI Server + */ + public static class QueryAiModels extends QueryDb implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + /** + * The Type and behavior of different API Providers + */ + public static class QueryAiTypes extends QueryDb implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + /** + * Active AI Worker Models available in AI Server + */ + public static class ActiveAiModels implements IReturn, IGet + { + + private static Object responseType = StringsResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * AI Providers + */ + public static class QueryAiProviders extends QueryDb implements IReturn> + { + public String name = null; + + public String getName() { return name; } + public QueryAiProviders setName(String value) { this.name = value; return this; } + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class GetWorkerStats implements IReturn, IGet + { + + private static Object responseType = GetWorkerStatsResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CancelWorker implements IReturn + { + @Validate(Validator="NotEmpty") + public String worker = null; + + public String getWorker() { return worker; } + public CancelWorker setWorker(String value) { this.worker = value; return this; } + private static Object responseType = EmptyResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/icons/models/{Model}", Verbs="GET") + public static class GetModelImage implements IReturn, IGet + { + public String model = null; + + public String getModel() { return model; } + public GetModelImage setModel(String value) { this.model = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + /** + * Given a list of messages comprising a conversation, the model will return a response. + */ + @Route(Path="/v1/chat/completions", Verbs="POST") + public static class OpenAiChatCompletion extends OpenAiChat implements IReturn, IPost + { + /** + * Provide a unique identifier to track requests + */ + public String refId = null; + /** + * Specify which AI Provider to use + */ + public String provider = null; + /** + * Categorize like requests under a common group + */ + public String tag = null; + + public String getRefId() { return refId; } + public OpenAiChatCompletion setRefId(String value) { this.refId = value; return this; } + public String getProvider() { return provider; } + public OpenAiChatCompletion setProvider(String value) { this.provider = value; return this; } + public String getTag() { return tag; } + public OpenAiChatCompletion setTag(String value) { this.tag = value; return this; } + private static Object responseType = OpenAiChatResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class QueueOpenAiChatCompletion implements IReturn + { + public String refId = null; + public String provider = null; + public String replyTo = null; + public String tag = null; + public OpenAiChat request = null; + + public String getRefId() { return refId; } + public QueueOpenAiChatCompletion setRefId(String value) { this.refId = value; return this; } + public String getProvider() { return provider; } + public QueueOpenAiChatCompletion setProvider(String value) { this.provider = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueOpenAiChatCompletion setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueOpenAiChatCompletion setTag(String value) { this.tag = value; return this; } + public OpenAiChat getRequest() { return request; } + public QueueOpenAiChatCompletion setRequest(OpenAiChat value) { this.request = value; return this; } + private static Object responseType = QueueOpenAiChatResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class WaitForOpenAiChat implements IReturn, IGet + { + public Integer id = null; + public String refId = null; + + public Integer getId() { return id; } + public WaitForOpenAiChat setId(Integer value) { this.id = value; return this; } + public String getRefId() { return refId; } + public WaitForOpenAiChat setRefId(String value) { this.refId = value; return this; } + private static Object responseType = GetOpenAiChatResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetOpenAiChat implements IReturn, IGet + { + public Integer id = null; + public String refId = null; + + public Integer getId() { return id; } + public GetOpenAiChat setId(Integer value) { this.id = value; return this; } + public String getRefId() { return refId; } + public GetOpenAiChat setRefId(String value) { this.refId = value; return this; } + private static Object responseType = GetOpenAiChatResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetOpenAiChatStatus implements IReturn, IGet + { + public Long jobId = null; + public String refId = null; + + public Long getJobId() { return jobId; } + public GetOpenAiChatStatus setJobId(Long value) { this.jobId = value; return this; } + public String getRefId() { return refId; } + public GetOpenAiChatStatus setRefId(String value) { this.refId = value; return this; } + private static Object responseType = GetOpenAiChatStatusResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class GetActiveProviders implements IReturn, IGet + { + + private static Object responseType = GetActiveProvidersResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class ChatAiProvider implements IReturn, IPost + { + public String provider = null; + public String model = null; + public OpenAiChat request = null; + public String prompt = null; + + public String getProvider() { return provider; } + public ChatAiProvider setProvider(String value) { this.provider = value; return this; } + public String getModel() { return model; } + public ChatAiProvider setModel(String value) { this.model = value; return this; } + public OpenAiChat getRequest() { return request; } + public ChatAiProvider setRequest(OpenAiChat value) { this.request = value; return this; } + public String getPrompt() { return prompt; } + public ChatAiProvider setPrompt(String value) { this.prompt = value; return this; } + private static Object responseType = OpenAiChatResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class CreateApiKey implements IReturn, IPost + { + public String key = null; + public String name = null; + public String userId = null; + public String userName = null; + public ArrayList scopes = null; + public String notes = null; + public Integer refId = null; + public String refIdStr = null; + public HashMap meta = null; + + public String getKey() { return key; } + public CreateApiKey setKey(String value) { this.key = value; return this; } + public String getName() { return name; } + public CreateApiKey setName(String value) { this.name = value; return this; } + public String getUserId() { return userId; } + public CreateApiKey setUserId(String value) { this.userId = value; return this; } + public String getUserName() { return userName; } + public CreateApiKey setUserName(String value) { this.userName = value; return this; } + public ArrayList getScopes() { return scopes; } + public CreateApiKey setScopes(ArrayList value) { this.scopes = value; return this; } + public String getNotes() { return notes; } + public CreateApiKey setNotes(String value) { this.notes = value; return this; } + public Integer getRefId() { return refId; } + public CreateApiKey setRefId(Integer value) { this.refId = value; return this; } + public String getRefIdStr() { return refIdStr; } + public CreateApiKey setRefIdStr(String value) { this.refIdStr = value; return this; } + public HashMap getMeta() { return meta; } + public CreateApiKey setMeta(HashMap value) { this.meta = value; return this; } + private static Object responseType = CreateApiKeyResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Add an AI Provider to process AI Requests + */ + public static class CreateAiProvider implements IReturn, ICreateDb + { + /** + * The Type of this API Provider + */ + @Validate(Validator="GreaterThan(0)") + public String aiTypeId = null; + + /** + * The Base URL for the API Provider + */ + public String apiBaseUrl = null; + /** + * The unique name for this API Provider + */ + @Validate(Validator="NotEmpty") + public String name = null; + + /** + * The API Key to use for this Provider + */ + public String apiKeyVar = null; + /** + * The API Key to use for this Provider + */ + public String apiKey = null; + /** + * Send the API Key in the Header instead of Authorization Bearer + */ + public String apiKeyHeader = null; + /** + * The URL to check if the API Provider is still online + */ + public String heartbeatUrl = null; + /** + * Override API Paths for different AI Requests + */ + public HashMap taskPaths = null; + /** + * How many requests should be made concurrently + */ + public Integer concurrency = null; + /** + * What priority to give this Provider to use for processing models + */ + public Integer priority = null; + /** + * Whether the Provider is enabled + */ + public Boolean enabled = null; + /** + * The models this API Provider should process + */ + public ArrayList models = null; + /** + * The selected models this API Provider should process + */ + public ArrayList selectedModels = null; + + public String getAiTypeId() { return aiTypeId; } + public CreateAiProvider setAiTypeId(String value) { this.aiTypeId = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public CreateAiProvider setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getName() { return name; } + public CreateAiProvider setName(String value) { this.name = value; return this; } + public String getApiKeyVar() { return apiKeyVar; } + public CreateAiProvider setApiKeyVar(String value) { this.apiKeyVar = value; return this; } + public String getApiKey() { return apiKey; } + public CreateAiProvider setApiKey(String value) { this.apiKey = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public CreateAiProvider setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public CreateAiProvider setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public HashMap getTaskPaths() { return taskPaths; } + public CreateAiProvider setTaskPaths(HashMap value) { this.taskPaths = value; return this; } + public Integer getConcurrency() { return concurrency; } + public CreateAiProvider setConcurrency(Integer value) { this.concurrency = value; return this; } + public Integer getPriority() { return priority; } + public CreateAiProvider setPriority(Integer value) { this.priority = value; return this; } + public Boolean isEnabled() { return enabled; } + public CreateAiProvider setEnabled(Boolean value) { this.enabled = value; return this; } + public ArrayList getModels() { return models; } + public CreateAiProvider setModels(ArrayList value) { this.models = value; return this; } + public ArrayList getSelectedModels() { return selectedModels; } + public CreateAiProvider setSelectedModels(ArrayList value) { this.selectedModels = value; return this; } + private static Object responseType = IdResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class UpdateAiProvider implements IReturn, IPatchDb + { + public Integer id = null; + /** + * The Type of this API Provider + */ + public String aiTypeId = null; + /** + * The Base URL for the API Provider + */ + public String apiBaseUrl = null; + /** + * The unique name for this API Provider + */ + public String name = null; + /** + * The API Key to use for this Provider + */ + public String apiKeyVar = null; + /** + * The API Key to use for this Provider + */ + public String apiKey = null; + /** + * Send the API Key in the Header instead of Authorization Bearer + */ + public String apiKeyHeader = null; + /** + * The URL to check if the API Provider is still online + */ + public String heartbeatUrl = null; + /** + * Override API Paths for different AI Requests + */ + public HashMap taskPaths = null; + /** + * How many requests should be made concurrently + */ + public Integer concurrency = null; + /** + * What priority to give this Provider to use for processing models + */ + public Integer priority = null; + /** + * Whether the Provider is enabled + */ + public Boolean enabled = null; + /** + * The models this API Provider should process + */ + public ArrayList models = null; + /** + * The selected models this API Provider should process + */ + public ArrayList selectedModels = null; + + public Integer getId() { return id; } + public UpdateAiProvider setId(Integer value) { this.id = value; return this; } + public String getAiTypeId() { return aiTypeId; } + public UpdateAiProvider setAiTypeId(String value) { this.aiTypeId = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public UpdateAiProvider setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getName() { return name; } + public UpdateAiProvider setName(String value) { this.name = value; return this; } + public String getApiKeyVar() { return apiKeyVar; } + public UpdateAiProvider setApiKeyVar(String value) { this.apiKeyVar = value; return this; } + public String getApiKey() { return apiKey; } + public UpdateAiProvider setApiKey(String value) { this.apiKey = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public UpdateAiProvider setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public UpdateAiProvider setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public HashMap getTaskPaths() { return taskPaths; } + public UpdateAiProvider setTaskPaths(HashMap value) { this.taskPaths = value; return this; } + public Integer getConcurrency() { return concurrency; } + public UpdateAiProvider setConcurrency(Integer value) { this.concurrency = value; return this; } + public Integer getPriority() { return priority; } + public UpdateAiProvider setPriority(Integer value) { this.priority = value; return this; } + public Boolean isEnabled() { return enabled; } + public UpdateAiProvider setEnabled(Boolean value) { this.enabled = value; return this; } + public ArrayList getModels() { return models; } + public UpdateAiProvider setModels(ArrayList value) { this.models = value; return this; } + public ArrayList getSelectedModels() { return selectedModels; } + public UpdateAiProvider setSelectedModels(ArrayList value) { this.selectedModels = value; return this; } + private static Object responseType = IdResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Delete API Provider + */ + public static class DeleteAiProvider implements IReturnVoid, IDeleteDb + { + public Integer id = null; + + public Integer getId() { return id; } + public DeleteAiProvider setId(Integer value) { this.id = value; return this; } + } + + public static class QueryPrompts extends QueryData implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class Reload implements IReturn, IPost + { + + private static Object responseType = EmptyResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class ChangeAiProviderStatus implements IReturn, IPost + { + public String provider = null; + public Boolean online = null; + + public String getProvider() { return provider; } + public ChangeAiProviderStatus setProvider(String value) { this.provider = value; return this; } + public Boolean isOnline() { return online; } + public ChangeAiProviderStatus setOnline(Boolean value) { this.online = value; return this; } + private static Object responseType = StringResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert text to speech + */ + @Api(Description="Convert text to speech") + public static class QueueTextToSpeech implements IReturn, IQueueGeneration + { + /** + * The text to be converted to speech + */ + @ApiMember(Description="The text to be converted to speech") + @Required() + public String text = null; + + /** + * Optional seed for reproducible results in speech generation + */ + @ApiMember(Description="Optional seed for reproducible results in speech generation") + public Integer seed = null; + + /** + * The AI model to use for speech generation + */ + @ApiMember(Description="The AI model to use for speech generation") + public String model = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + public String getText() { return text; } + public QueueTextToSpeech setText(String value) { this.text = value; return this; } + public Integer getSeed() { return seed; } + public QueueTextToSpeech setSeed(Integer value) { this.seed = value; return this; } + public String getModel() { return model; } + public QueueTextToSpeech setModel(String value) { this.model = value; return this; } + public String getRefId() { return refId; } + public QueueTextToSpeech setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueTextToSpeech setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueTextToSpeech setTag(String value) { this.tag = value; return this; } + public String getState() { return state; } + public QueueTextToSpeech setState(String value) { this.state = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert speech to text + */ + @Api(Description="Convert speech to text") + public static class QueueSpeechToText implements IReturn, IQueueGeneration + { + /** + * 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; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + /** + * Optional state to associate with the request + */ + @ApiMember(Description="Optional state to associate with the request") + public String state = null; + + public InputStream getAudio() { return audio; } + public QueueSpeechToText setAudio(InputStream value) { this.audio = value; return this; } + public String getRefId() { return refId; } + public QueueSpeechToText setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueSpeechToText setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueSpeechToText setTag(String value) { this.tag = value; return this; } + public String getState() { return state; } + public QueueSpeechToText setState(String value) { this.state = value; return this; } + private static Object responseType = QueueGenerationResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert text to speech + */ + @Api(Description="Convert text to speech") + public static class TextToSpeech implements IReturn, IGeneration + { + /** + * The text to be converted to speech + */ + @ApiMember(Description="The text to be converted to speech") + @Validate(Validator="NotEmpty") + public String input = null; + + /** + * Optional specific model and voice to use for speech generation + */ + @ApiMember(Description="Optional specific model and voice to use for speech generation") + public String model = null; + + /** + * Optional seed for reproducible results in speech generation + */ + @ApiMember(Description="Optional seed for reproducible results in speech generation") + public Integer seed = 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 String getInput() { return input; } + public TextToSpeech setInput(String value) { this.input = value; return this; } + public String getModel() { return model; } + public TextToSpeech setModel(String value) { this.model = value; return this; } + public Integer getSeed() { return seed; } + public TextToSpeech setSeed(Integer value) { this.seed = value; return this; } + public String getRefId() { return refId; } + public TextToSpeech setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public TextToSpeech setTag(String value) { this.tag = value; return this; } + private static Object responseType = GenerationResponse.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; } + } + + /** + * Scale video + */ + @Api(Description="Scale video") + public static class ScaleVideo implements IReturn, IMediaTransform + { + /** + * The video file to be scaled + */ + @ApiMember(Description="The video file to be scaled") + @Required() + public InputStream video = null; + + /** + * Desired width of the scaled video + */ + @ApiMember(Description="Desired width of the scaled video") + public Integer width = null; + + /** + * Desired height of the scaled video + */ + @ApiMember(Description="Desired height of the scaled video") + public Integer height = 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 getVideo() { return video; } + public ScaleVideo setVideo(InputStream value) { this.video = value; return this; } + public Integer getWidth() { return width; } + public ScaleVideo setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public ScaleVideo setHeight(Integer value) { this.height = value; return this; } + public String getRefId() { return refId; } + public ScaleVideo setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ScaleVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Watermark video + */ + @Api(Description="Watermark video") + public static class WatermarkVideo implements IReturn, IMediaTransform + { + /** + * The video file to be watermarked + */ + @ApiMember(Description="The video file to be watermarked") + @Required() + public InputStream video = null; + + /** + * The image file to use as a watermark + */ + @ApiMember(Description="The image file to use as a watermark") + @Required() + public InputStream watermark = null; + + /** + * Position of the watermark + */ + @ApiMember(Description="Position of the watermark") + public WatermarkPosition position = 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 getVideo() { return video; } + public WatermarkVideo setVideo(InputStream value) { this.video = value; return this; } + public InputStream getWatermark() { return watermark; } + public WatermarkVideo setWatermark(InputStream value) { this.watermark = value; return this; } + public WatermarkPosition getPosition() { return position; } + public WatermarkVideo setPosition(WatermarkPosition value) { this.position = value; return this; } + public String getRefId() { return refId; } + public WatermarkVideo setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public WatermarkVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert a video to a different format + */ + public static class ConvertVideo implements IReturn, IMediaTransform + { + /** + * The desired output format for the converted video + */ + @ApiMember(Description="The desired output format for the converted video") + @Required() + public ConvertVideoOutputFormat outputFormat = null; + + @Required() + public InputStream video = 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 ConvertVideoOutputFormat getOutputFormat() { return outputFormat; } + public ConvertVideo setOutputFormat(ConvertVideoOutputFormat value) { this.outputFormat = value; return this; } + public InputStream getVideo() { return video; } + public ConvertVideo setVideo(InputStream value) { this.video = value; return this; } + public String getRefId() { return refId; } + public ConvertVideo setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public ConvertVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Crop a video to a specified area + */ + public static class CropVideo implements IReturn, IMediaTransform + { + /** + * The X-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The X-coordinate of the top-left corner of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer x = null; + + /** + * The Y-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The Y-coordinate of the top-left corner of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer y = null; + + /** + * The width of the crop area + */ + @ApiMember(Description="The width of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer width = null; + + /** + * The height of the crop area + */ + @ApiMember(Description="The height of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer height = null; + + @Required() + public InputStream video = 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 Integer getX() { return x; } + public CropVideo setX(Integer value) { this.x = value; return this; } + public Integer getY() { return y; } + public CropVideo setY(Integer value) { this.y = value; return this; } + public Integer getWidth() { return width; } + public CropVideo setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public CropVideo setHeight(Integer value) { this.height = value; return this; } + public InputStream getVideo() { return video; } + public CropVideo setVideo(InputStream value) { this.video = value; return this; } + public String getRefId() { return refId; } + public CropVideo setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public CropVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Trim a video to a specified duration via start and end times + */ + public static class TrimVideo implements IReturn, IMediaTransform + { + /** + * The start time of the trimmed video (format: MM:SS) + */ + @ApiMember(Description="The start time of the trimmed video (format: MM:SS)") + @Required() + public String startTime = null; + + /** + * The end time of the trimmed video (format: MM:SS) + */ + @ApiMember(Description="The end time of the trimmed video (format: MM:SS)") + public String endTime = null; + + @Required() + public InputStream video = 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 String getStartTime() { return startTime; } + public TrimVideo setStartTime(String value) { this.startTime = value; return this; } + public String getEndTime() { return endTime; } + public TrimVideo setEndTime(String value) { this.endTime = value; return this; } + public InputStream getVideo() { return video; } + public TrimVideo setVideo(InputStream value) { this.video = value; return this; } + public String getRefId() { return refId; } + public TrimVideo setRefId(String value) { this.refId = value; return this; } + public String getTag() { return tag; } + public TrimVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = MediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Scale video + */ + @Api(Description="Scale video") + public static class QueueScaleVideo implements IReturn, IQueueMediaTransform + { + /** + * The video file to be scaled + */ + @ApiMember(Description="The video file to be scaled") + @Required() + public InputStream video = null; + + /** + * Desired width of the scaled video + */ + @ApiMember(Description="Desired width of the scaled video") + public Integer width = null; + + /** + * Desired height of the scaled video + */ + @ApiMember(Description="Desired height of the scaled video") + public Integer height = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getVideo() { return video; } + public QueueScaleVideo setVideo(InputStream value) { this.video = value; return this; } + public Integer getWidth() { return width; } + public QueueScaleVideo setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public QueueScaleVideo setHeight(Integer value) { this.height = value; return this; } + public String getRefId() { return refId; } + public QueueScaleVideo setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueScaleVideo setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueScaleVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Watermark video + */ + @Api(Description="Watermark video") + public static class QueueWatermarkVideo implements IReturn, IQueueMediaTransform + { + /** + * The video file to be watermarked + */ + @ApiMember(Description="The video file to be watermarked") + @Required() + public InputStream video = null; + + /** + * The image file to use as a watermark + */ + @ApiMember(Description="The image file to use as a watermark") + @Required() + public InputStream watermark = null; + + /** + * Position of the watermark + */ + @ApiMember(Description="Position of the watermark") + public WatermarkPosition position = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public InputStream getVideo() { return video; } + public QueueWatermarkVideo setVideo(InputStream value) { this.video = value; return this; } + public InputStream getWatermark() { return watermark; } + public QueueWatermarkVideo setWatermark(InputStream value) { this.watermark = value; return this; } + public WatermarkPosition getPosition() { return position; } + public QueueWatermarkVideo setPosition(WatermarkPosition value) { this.position = value; return this; } + public String getRefId() { return refId; } + public QueueWatermarkVideo setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueWatermarkVideo setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueWatermarkVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Convert a video to a different format + */ + public static class QueueConvertVideo implements IReturn, IQueueMediaTransform + { + /** + * The desired output format for the converted video + */ + @ApiMember(Description="The desired output format for the converted video") + @Required() + public ConvertVideoOutputFormat outputFormat = null; + + @Required() + public InputStream video = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public ConvertVideoOutputFormat getOutputFormat() { return outputFormat; } + public QueueConvertVideo setOutputFormat(ConvertVideoOutputFormat value) { this.outputFormat = value; return this; } + public InputStream getVideo() { return video; } + public QueueConvertVideo setVideo(InputStream value) { this.video = value; return this; } + public String getRefId() { return refId; } + public QueueConvertVideo setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueConvertVideo setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueConvertVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Crop a video to a specified area + */ + public static class QueueCropVideo implements IReturn, IQueueMediaTransform + { + /** + * The X-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The X-coordinate of the top-left corner of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer x = null; + + /** + * The Y-coordinate of the top-left corner of the crop area + */ + @ApiMember(Description="The Y-coordinate of the top-left corner of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer y = null; + + /** + * The width of the crop area + */ + @ApiMember(Description="The width of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer width = null; + + /** + * The height of the crop area + */ + @ApiMember(Description="The height of the crop area") + @Validate(Validator="GreaterThan(0)") + @Required() + public Integer height = null; + + @Required() + public InputStream video = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public Integer getX() { return x; } + public QueueCropVideo setX(Integer value) { this.x = value; return this; } + public Integer getY() { return y; } + public QueueCropVideo setY(Integer value) { this.y = value; return this; } + public Integer getWidth() { return width; } + public QueueCropVideo setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public QueueCropVideo setHeight(Integer value) { this.height = value; return this; } + public InputStream getVideo() { return video; } + public QueueCropVideo setVideo(InputStream value) { this.video = value; return this; } + public String getRefId() { return refId; } + public QueueCropVideo setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueCropVideo setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueCropVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + /** + * Trim a video to a specified duration via start and end times + */ + public static class QueueTrimVideo implements IReturn, IQueueMediaTransform + { + /** + * The start time of the trimmed video (format: HH:MM:SS) + */ + @ApiMember(Description="The start time of the trimmed video (format: HH:MM:SS)") + @Required() + public String startTime = null; + + /** + * The end time of the trimmed video (format: HH:MM:SS) + */ + @ApiMember(Description="The end time of the trimmed video (format: HH:MM:SS)") + public String endTime = null; + + @Required() + public InputStream video = null; + + /** + * Optional client-provided identifier for the request + */ + @ApiMember(Description="Optional client-provided identifier for the request") + public String refId = null; + + /** + * Optional queue or topic to reply to + */ + @ApiMember(Description="Optional queue or topic to reply to") + public String replyTo = null; + + /** + * Tag to identify the request + */ + @ApiMember(Description="Tag to identify the request") + public String tag = null; + + public String getStartTime() { return startTime; } + public QueueTrimVideo setStartTime(String value) { this.startTime = value; return this; } + public String getEndTime() { return endTime; } + public QueueTrimVideo setEndTime(String value) { this.endTime = value; return this; } + public InputStream getVideo() { return video; } + public QueueTrimVideo setVideo(InputStream value) { this.video = value; return this; } + public String getRefId() { return refId; } + public QueueTrimVideo setRefId(String value) { this.refId = value; return this; } + public String getReplyTo() { return replyTo; } + public QueueTrimVideo setReplyTo(String value) { this.replyTo = value; return this; } + public String getTag() { return tag; } + public QueueTrimVideo setTag(String value) { this.tag = value; return this; } + private static Object responseType = QueueMediaTransformResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/artifacts/{**Path}") + public static class GetArtifact implements IReturn, IGet + { + @Validate(Validator="NotEmpty") + public String path = null; + + public Boolean download = null; + + public String getPath() { return path; } + public GetArtifact setPath(String value) { this.path = value; return this; } + public Boolean isDownload() { return download; } + public GetArtifact setDownload(Boolean value) { this.download = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/files/{**Path}") + public static class DeleteFile implements IReturn, IDelete + { + @Validate(Validator="NotEmpty") + public String path = null; + + public String getPath() { return path; } + public DeleteFile setPath(String value) { this.path = value; return this; } + private static Object responseType = EmptyResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class DeleteFiles implements IReturn, IPost + { + public ArrayList paths = null; + + public ArrayList getPaths() { return paths; } + public DeleteFiles setPaths(ArrayList value) { this.paths = value; return this; } + private static Object responseType = DeleteFilesResponse.class; + public Object getResponseType() { return responseType; } + } + + @Route(Path="/variants/{Variant}/{**Path}") + public static class GetVariant implements IReturn, IGet + { + @Validate(Validator="NotEmpty") + public String variant = null; + + @Validate(Validator="NotEmpty") + public String path = null; + + public String getVariant() { return variant; } + public GetVariant setVariant(String value) { this.variant = value; return this; } + public String getPath() { return path; } + public GetVariant setPath(String value) { this.path = value; return this; } + private static Object responseType = byte[].class; + public Object getResponseType() { return responseType; } + } + + public static class MigrateArtifact implements IReturn, IPost + { + public String path = null; + public Date date = null; + + public String getPath() { return path; } + public MigrateArtifact setPath(String value) { this.path = value; return this; } + public Date getDate() { return date; } + public MigrateArtifact setDate(Date value) { this.date = value; return this; } + private static Object responseType = MigrateArtifactResponse.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; } + } + + public static class QueryMediaTypesData extends QueryData implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class QueryTextToSpeechVoicesData extends QueryData implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class QueryAiModelsData extends QueryData implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + public static class QueryAiTypesData extends QueryData implements IReturn> + { + + private static Object responseType = new TypeToken>(){}.getType(); + public Object getResponseType() { return responseType; } + } + + /** + * Delete a Generation API Provider + */ + public static class DeleteMediaProvider implements IReturn, IDeleteDb + { + public Integer id = null; + public String name = null; + + public Integer getId() { return id; } + public DeleteMediaProvider setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public DeleteMediaProvider setName(String value) { this.name = value; return this; } + private static Object responseType = IdResponse.class; + public Object getResponseType() { return responseType; } + } + + public static class AdminDataResponse + { + public ArrayList pageStats = null; + + public ArrayList getPageStats() { return pageStats; } + public AdminDataResponse setPageStats(ArrayList value) { this.pageStats = value; return this; } + } + + /** + * Response object for transform requests + */ + public static class MediaTransformResponse + { + /** + * 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 MediaTransformResponse setOutputs(ArrayList value) { this.outputs = value; return this; } + public ArrayList getTextOutputs() { return textOutputs; } + public MediaTransformResponse setTextOutputs(ArrayList value) { this.textOutputs = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public MediaTransformResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + /** + * Base class for queueable transformation requests + */ + public static class QueueMediaTransformResponse + { + /** + * Unique identifier of the background job + */ + @ApiMember(Description="Unique identifier of the background job") + public Long jobId = null; + + /** + * Client-provided identifier for the request + */ + @ApiMember(Description="Client-provided identifier for the request") + public String refId = null; + + /** + * Current state of the background job + */ + @ApiMember(Description="Current state of the background job") + public BackgroundJobState jobState = null; + + /** + * Current status of the transformation request + */ + @ApiMember(Description="Current status of the transformation request") + public String status = null; + + /** + * Detailed response status information + */ + @ApiMember(Description="Detailed response status information") + public ResponseStatus responseStatus = null; + + /** + * URL to check the status of the request + */ + @ApiMember(Description="URL to check the status of the request") + public String statusUrl = null; + + public Long getJobId() { return jobId; } + public QueueMediaTransformResponse setJobId(Long value) { this.jobId = value; return this; } + public String getRefId() { return refId; } + public QueueMediaTransformResponse setRefId(String value) { this.refId = value; return this; } + public BackgroundJobState getJobState() { return jobState; } + public QueueMediaTransformResponse setJobState(BackgroundJobState value) { this.jobState = value; return this; } + public String getStatus() { return status; } + public QueueMediaTransformResponse setStatus(String value) { this.status = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public QueueMediaTransformResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + public String getStatusUrl() { return statusUrl; } + public QueueMediaTransformResponse setStatusUrl(String value) { this.statusUrl = value; return this; } + } + + public static class GetSummaryStatsResponse + { + public ArrayList providerStats = null; + public ArrayList modelStats = null; + public ArrayList monthStats = null; + + public ArrayList getProviderStats() { return providerStats; } + public GetSummaryStatsResponse setProviderStats(ArrayList value) { this.providerStats = value; return this; } + public ArrayList getModelStats() { return modelStats; } + public GetSummaryStatsResponse setModelStats(ArrayList value) { this.modelStats = value; return this; } + public ArrayList getMonthStats() { return monthStats; } + public GetSummaryStatsResponse setMonthStats(ArrayList value) { this.monthStats = 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; } + } + + public static class GetComfyModelsResponse + { + public ArrayList results = null; + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public GetComfyModelsResponse setResults(ArrayList value) { this.results = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetComfyModelsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class GetComfyModelMappingsResponse + { + public HashMap models = null; + + public HashMap getModels() { return models; } + public GetComfyModelMappingsResponse setModels(HashMap value) { this.models = value; return this; } + } + + public static class GetJobStatusResponse + { + /** + * Unique identifier of the background job + */ + @ApiMember(Description="Unique identifier of the background job") + public Long jobId = null; + + /** + * Client-provided identifier for the request + */ + @ApiMember(Description="Client-provided identifier for the request") + public String refId = null; + + /** + * Current state of the background job + */ + @ApiMember(Description="Current state of the background job") + public BackgroundJobState jobState = null; + + /** + * Current status of the generation request + */ + @ApiMember(Description="Current status of the generation request") + public String status = null; + + /** + * 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 Long getJobId() { return jobId; } + public GetJobStatusResponse setJobId(Long value) { this.jobId = value; return this; } + public String getRefId() { return refId; } + public GetJobStatusResponse setRefId(String value) { this.refId = value; return this; } + public BackgroundJobState getJobState() { return jobState; } + public GetJobStatusResponse setJobState(BackgroundJobState value) { this.jobState = value; return this; } + public String getStatus() { return status; } + public GetJobStatusResponse setStatus(String value) { this.status = value; return this; } + public ArrayList getOutputs() { return outputs; } + public GetJobStatusResponse setOutputs(ArrayList value) { this.outputs = value; return this; } + public ArrayList getTextOutputs() { return textOutputs; } + public GetJobStatusResponse setTextOutputs(ArrayList value) { this.textOutputs = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetJobStatusResponse 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 QueueGenerationResponse + { + /** + * Unique identifier of the background job + */ + @ApiMember(Description="Unique identifier of the background job") + public Long jobId = null; + + /** + * Client-provided identifier for the request + */ + @ApiMember(Description="Client-provided identifier for the request") + public String refId = null; + + /** + * Current state of the background job + */ + @ApiMember(Description="Current state of the background job") + public BackgroundJobState jobState = null; + + /** + * Current status of the generation request + */ + @ApiMember(Description="Current status of the generation request") + public String status = null; + + /** + * Detailed response status information + */ + @ApiMember(Description="Detailed response status information") + public ResponseStatus responseStatus = null; + + /** + * URL to check the status of the generation request + */ + @ApiMember(Description="URL to check the status of the generation request") + public String statusUrl = null; + + public Long getJobId() { return jobId; } + public QueueGenerationResponse setJobId(Long value) { this.jobId = value; return this; } + public String getRefId() { return refId; } + public QueueGenerationResponse setRefId(String value) { this.refId = value; return this; } + public BackgroundJobState getJobState() { return jobState; } + public QueueGenerationResponse setJobState(BackgroundJobState value) { this.jobState = value; return this; } + public String getStatus() { return status; } + public QueueGenerationResponse setStatus(String value) { this.status = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public QueueGenerationResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + public String getStatusUrl() { return statusUrl; } + public QueueGenerationResponse setStatusUrl(String value) { this.statusUrl = 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 CreateGenerationResponse + { + public Long id = null; + public String refId = null; + + public Long getId() { return id; } + public CreateGenerationResponse setId(Long value) { this.id = value; return this; } + public String getRefId() { return refId; } + public CreateGenerationResponse setRefId(String value) { this.refId = value; return this; } + } + + public static class GetGenerationResponse + { + public GenerationArgs request = null; + public GenerationResult result = null; + public ArrayList outputs = null; + public ArrayList textOutputs = null; + + public GenerationArgs getRequest() { return request; } + public GetGenerationResponse setRequest(GenerationArgs value) { this.request = value; return this; } + public GenerationResult getResult() { return result; } + public GetGenerationResponse setResult(GenerationResult value) { this.result = value; return this; } + public ArrayList getOutputs() { return outputs; } + public GetGenerationResponse setOutputs(ArrayList value) { this.outputs = value; return this; } + public ArrayList getTextOutputs() { return textOutputs; } + public GetGenerationResponse setTextOutputs(ArrayList value) { this.textOutputs = 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; } + } + + public static class CreateTransformResponse + { + public Long id = null; + public String refId = null; + + public Long getId() { return id; } + public CreateTransformResponse setId(Long value) { this.id = value; return this; } + public String getRefId() { return refId; } + public CreateTransformResponse setRefId(String value) { this.refId = 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; } + } + + public static class GetOllamaModelsResponse + { + public ArrayList results = null; + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public GetOllamaModelsResponse setResults(ArrayList value) { this.results = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetOllamaModelsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class GetWorkerStatsResponse + { + public ArrayList results = null; + public HashMap queueCounts = null; + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public GetWorkerStatsResponse setResults(ArrayList value) { this.results = value; return this; } + public HashMap getQueueCounts() { return queueCounts; } + public GetWorkerStatsResponse setQueueCounts(HashMap value) { this.queueCounts = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetWorkerStatsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = 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; } + } + + @DataContract + public static class OpenAiChatResponse + { + /** + * A unique identifier for the chat completion. + */ + @DataMember(Name="id") + @SerializedName("id") + public String id = null; + + /** + * A list of chat completion choices. Can be more than one if n is greater than 1. + */ + @DataMember(Name="choices") + @SerializedName("choices") + public ArrayList choices = null; + + /** + * The Unix timestamp (in seconds) of when the chat completion was created. + */ + @DataMember(Name="created") + @SerializedName("created") + public Long created = null; + + /** + * The model used for the chat completion. + */ + @DataMember(Name="model") + @SerializedName("model") + public String model = null; + + /** + * This fingerprint represents the backend configuration that the model runs with. + */ + @DataMember(Name="system_fingerprint") + @SerializedName("system_fingerprint") + public String systemFingerprint = null; + + /** + * The object type, which is always chat.completion. + */ + @DataMember(Name="object") + @SerializedName("object") + public String object = null; + + /** + * Usage statistics for the completion request. + */ + @DataMember(Name="usage") + @SerializedName("usage") + public OpenAiUsage usage = null; + + @DataMember(Name="responseStatus") + @SerializedName("responseStatus") + public ResponseStatus responseStatus = null; + + public String getId() { return id; } + public OpenAiChatResponse setId(String value) { this.id = value; return this; } + public ArrayList getChoices() { return choices; } + public OpenAiChatResponse setChoices(ArrayList value) { this.choices = value; return this; } + public Long getCreated() { return created; } + public OpenAiChatResponse setCreated(Long value) { this.created = value; return this; } + public String getModel() { return model; } + public OpenAiChatResponse setModel(String value) { this.model = value; return this; } + public String getSystemFingerprint() { return systemFingerprint; } + public OpenAiChatResponse setSystemFingerprint(String value) { this.systemFingerprint = value; return this; } + public String getObject() { return object; } + public OpenAiChatResponse setObject(String value) { this.object = value; return this; } + public OpenAiUsage getUsage() { return usage; } + public OpenAiChatResponse setUsage(OpenAiUsage value) { this.usage = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public OpenAiChatResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class QueueOpenAiChatResponse + { + public Long id = null; + public String refId = null; + public String statusUrl = null; + public ResponseStatus responseStatus = null; + + public Long getId() { return id; } + public QueueOpenAiChatResponse setId(Long value) { this.id = value; return this; } + public String getRefId() { return refId; } + public QueueOpenAiChatResponse setRefId(String value) { this.refId = value; return this; } + public String getStatusUrl() { return statusUrl; } + public QueueOpenAiChatResponse setStatusUrl(String value) { this.statusUrl = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public QueueOpenAiChatResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class GetOpenAiChatResponse + { + public BackgroundJobBase result = null; + public ResponseStatus responseStatus = null; + + public BackgroundJobBase getResult() { return result; } + public GetOpenAiChatResponse setResult(BackgroundJobBase value) { this.result = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetOpenAiChatResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class GetOpenAiChatStatusResponse + { + /** + * Unique identifier of the background job + */ + @ApiMember(Description="Unique identifier of the background job") + public Long jobId = null; + + /** + * Client-provided identifier for the request + */ + @ApiMember(Description="Client-provided identifier for the request") + public String refId = null; + + /** + * Current state of the background job + */ + @ApiMember(Description="Current state of the background job") + public BackgroundJobState jobState = null; + + /** + * Current status of the generation request + */ + @ApiMember(Description="Current status of the generation request") + public String status = null; + + /** + * Detailed response status information + */ + @ApiMember(Description="Detailed response status information") + public ResponseStatus responseStatus = null; + + /** + * Chat response + */ + @ApiMember(Description="Chat response") + public OpenAiChatResponse chatResponse = null; + + public Long getJobId() { return jobId; } + public GetOpenAiChatStatusResponse setJobId(Long value) { this.jobId = value; return this; } + public String getRefId() { return refId; } + public GetOpenAiChatStatusResponse setRefId(String value) { this.refId = value; return this; } + public BackgroundJobState getJobState() { return jobState; } + public GetOpenAiChatStatusResponse setJobState(BackgroundJobState value) { this.jobState = value; return this; } + public String getStatus() { return status; } + public GetOpenAiChatStatusResponse setStatus(String value) { this.status = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetOpenAiChatStatusResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + public OpenAiChatResponse getChatResponse() { return chatResponse; } + public GetOpenAiChatStatusResponse setChatResponse(OpenAiChatResponse value) { this.chatResponse = value; return this; } + } + + public static class GetActiveProvidersResponse + { + public ArrayList results = null; + public ResponseStatus responseStatus = null; + + public ArrayList getResults() { return results; } + public GetActiveProvidersResponse setResults(ArrayList value) { this.results = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public GetActiveProvidersResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class CreateApiKeyResponse + { + public Integer id = null; + public String key = null; + public String name = null; + public String userId = null; + public String userName = null; + public String visibleKey = null; + public Date createdDate = null; + public Date expiryDate = null; + public Date cancelledDate = null; + public String notes = null; + + public Integer getId() { return id; } + public CreateApiKeyResponse setId(Integer value) { this.id = value; return this; } + public String getKey() { return key; } + public CreateApiKeyResponse setKey(String value) { this.key = value; return this; } + public String getName() { return name; } + public CreateApiKeyResponse setName(String value) { this.name = value; return this; } + public String getUserId() { return userId; } + public CreateApiKeyResponse setUserId(String value) { this.userId = value; return this; } + public String getUserName() { return userName; } + public CreateApiKeyResponse setUserName(String value) { this.userName = value; return this; } + public String getVisibleKey() { return visibleKey; } + public CreateApiKeyResponse setVisibleKey(String value) { this.visibleKey = value; return this; } + public Date getCreatedDate() { return createdDate; } + public CreateApiKeyResponse setCreatedDate(Date value) { this.createdDate = value; return this; } + public Date getExpiryDate() { return expiryDate; } + public CreateApiKeyResponse setExpiryDate(Date value) { this.expiryDate = value; return this; } + public Date getCancelledDate() { return cancelledDate; } + public CreateApiKeyResponse setCancelledDate(Date value) { this.cancelledDate = value; return this; } + public String getNotes() { return notes; } + public CreateApiKeyResponse setNotes(String value) { this.notes = 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; } + } + + public static class DeleteFilesResponse + { + public ArrayList deleted = null; + public ArrayList missing = null; + public ArrayList failed = null; + public ResponseStatus responseStatus = null; + + public ArrayList getDeleted() { return deleted; } + public DeleteFilesResponse setDeleted(ArrayList value) { this.deleted = value; return this; } + public ArrayList getMissing() { return missing; } + public DeleteFilesResponse setMissing(ArrayList value) { this.missing = value; return this; } + public ArrayList getFailed() { return failed; } + public DeleteFilesResponse setFailed(ArrayList value) { this.failed = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public DeleteFilesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } + } + + public static class MigrateArtifactResponse + { + public String filePath = null; + public ResponseStatus responseStatus = null; + + public String getFilePath() { return filePath; } + public MigrateArtifactResponse setFilePath(String value) { this.filePath = value; return this; } + public ResponseStatus getResponseStatus() { return responseStatus; } + public MigrateArtifactResponse setResponseStatus(ResponseStatus value) { this.responseStatus = 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 enum AudioFormat + { + MP3, + Wav, + Flac, + Ogg; + } + + public static interface IMediaTransform + { + public String refId = null; + public String tag = null; + } + + public static interface IQueueMediaTransform + { + public String refId = null; + public String tag = null; + public String replyTo = null; + } + + public static interface IGeneration + { + public String refId = null; + public String tag = null; + } + + /** + * Base class for queue generation requests + */ + public static interface IQueueGeneration + { + public String refId = null; + public String replyTo = null; + public String tag = null; + public String state = null; + } + + @DataContract + public static enum ImageOutputFormat + { + Jpg, + Png, + Gif, + Bmp, + Tiff, + Webp; + } + + public static enum WatermarkPosition + { + TopLeft, + TopRight, + BottomLeft, + BottomRight, + Center; + } + + public static class QueryDb extends QueryBase + { + + } + + public static class MediaType + { + public String id = null; + public String apiBaseUrl = null; + public String apiKeyHeader = null; + public String website = null; + public String icon = null; + public HashMap apiModels = null; + public AiServiceProvider provider = null; + + public String getId() { return id; } + public MediaType setId(String value) { this.id = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public MediaType setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public MediaType setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getWebsite() { return website; } + public MediaType setWebsite(String value) { this.website = value; return this; } + public String getIcon() { return icon; } + public MediaType setIcon(String value) { this.icon = value; return this; } + public HashMap getApiModels() { return apiModels; } + public MediaType setApiModels(HashMap value) { this.apiModels = value; return this; } + public AiServiceProvider getProvider() { return provider; } + public MediaType setProvider(AiServiceProvider value) { this.provider = value; return this; } + } + + public static class MediaProvider + { + public Integer id = null; + public String name = null; + public String apiKeyVar = null; + public String apiUrlVar = null; + public String apiKey = null; + public String apiKeyHeader = null; + public String apiBaseUrl = null; + public String heartbeatUrl = null; + public Integer concurrency = null; + public Integer priority = null; + public Boolean enabled = null; + public Date offlineDate = null; + public Date createdDate = null; + public String mediaTypeId = null; + @Ignore() + public MediaType mediaType = null; + + public ArrayList models = null; + + public Integer getId() { return id; } + public MediaProvider setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public MediaProvider setName(String value) { this.name = value; return this; } + public String getApiKeyVar() { return apiKeyVar; } + public MediaProvider setApiKeyVar(String value) { this.apiKeyVar = value; return this; } + public String getApiUrlVar() { return apiUrlVar; } + public MediaProvider setApiUrlVar(String value) { this.apiUrlVar = value; return this; } + public String getApiKey() { return apiKey; } + public MediaProvider setApiKey(String value) { this.apiKey = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public MediaProvider setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public MediaProvider setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public MediaProvider setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public Integer getConcurrency() { return concurrency; } + public MediaProvider setConcurrency(Integer value) { this.concurrency = value; return this; } + public Integer getPriority() { return priority; } + public MediaProvider setPriority(Integer value) { this.priority = value; return this; } + public Boolean isEnabled() { return enabled; } + public MediaProvider setEnabled(Boolean value) { this.enabled = value; return this; } + public Date getOfflineDate() { return offlineDate; } + public MediaProvider setOfflineDate(Date value) { this.offlineDate = value; return this; } + public Date getCreatedDate() { return createdDate; } + public MediaProvider setCreatedDate(Date value) { this.createdDate = value; return this; } + public String getMediaTypeId() { return mediaTypeId; } + public MediaProvider setMediaTypeId(String value) { this.mediaTypeId = value; return this; } + public MediaType getMediaType() { return mediaType; } + public MediaProvider setMediaType(MediaType value) { this.mediaType = value; return this; } + public ArrayList getModels() { return models; } + public MediaProvider setModels(ArrayList value) { this.models = value; return this; } + } + + public static class TextToSpeechVoice + { + public String id = null; + public String model = null; + + public String getId() { return id; } + public TextToSpeechVoice setId(String value) { this.id = value; return this; } + public String getModel() { return model; } + public TextToSpeechVoice setModel(String value) { this.model = value; return this; } + } + + public static class GenerationArgs + { + public String model = null; + public Integer steps = null; + public Integer batchSize = null; + public Integer seed = null; + public String positivePrompt = null; + public String negativePrompt = null; + public InputStream imageInput = null; + public InputStream maskInput = null; + public InputStream audioInput = null; + public ComfySampler sampler = null; + public String scheduler = null; + public Double cfgScale = null; + public Double denoise = null; + public String upscaleModel = null; + public Integer width = null; + public Integer height = null; + public AiTaskType taskType = null; + public String clip = null; + public Double sampleLength = null; + public ComfyMaskSource maskChannel = null; + public String aspectRatio = null; + public Double quality = null; + public String voice = null; + public String language = null; + + public String getModel() { return model; } + public GenerationArgs setModel(String value) { this.model = value; return this; } + public Integer getSteps() { return steps; } + public GenerationArgs setSteps(Integer value) { this.steps = value; return this; } + public Integer getBatchSize() { return batchSize; } + public GenerationArgs setBatchSize(Integer value) { this.batchSize = value; return this; } + public Integer getSeed() { return seed; } + public GenerationArgs setSeed(Integer value) { this.seed = value; return this; } + public String getPositivePrompt() { return positivePrompt; } + public GenerationArgs setPositivePrompt(String value) { this.positivePrompt = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public GenerationArgs setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public InputStream getImageInput() { return imageInput; } + public GenerationArgs setImageInput(InputStream value) { this.imageInput = value; return this; } + public InputStream getMaskInput() { return maskInput; } + public GenerationArgs setMaskInput(InputStream value) { this.maskInput = value; return this; } + public InputStream getAudioInput() { return audioInput; } + public GenerationArgs setAudioInput(InputStream value) { this.audioInput = value; return this; } + public ComfySampler getSampler() { return sampler; } + public GenerationArgs setSampler(ComfySampler value) { this.sampler = value; return this; } + public String getScheduler() { return scheduler; } + public GenerationArgs setScheduler(String value) { this.scheduler = value; return this; } + public Double getCfgScale() { return cfgScale; } + public GenerationArgs setCfgScale(Double value) { this.cfgScale = value; return this; } + public Double getDenoise() { return denoise; } + public GenerationArgs setDenoise(Double value) { this.denoise = value; return this; } + public String getUpscaleModel() { return upscaleModel; } + public GenerationArgs setUpscaleModel(String value) { this.upscaleModel = value; return this; } + public Integer getWidth() { return width; } + public GenerationArgs setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public GenerationArgs setHeight(Integer value) { this.height = value; return this; } + public AiTaskType getTaskType() { return taskType; } + public GenerationArgs setTaskType(AiTaskType value) { this.taskType = value; return this; } + public String getClip() { return clip; } + public GenerationArgs setClip(String value) { this.clip = value; return this; } + public Double getSampleLength() { return sampleLength; } + public GenerationArgs setSampleLength(Double value) { this.sampleLength = value; return this; } + public ComfyMaskSource getMaskChannel() { return maskChannel; } + public GenerationArgs setMaskChannel(ComfyMaskSource value) { this.maskChannel = value; return this; } + public String getAspectRatio() { return aspectRatio; } + public GenerationArgs setAspectRatio(String value) { this.aspectRatio = value; return this; } + public Double getQuality() { return quality; } + public GenerationArgs setQuality(Double value) { this.quality = value; return this; } + public String getVoice() { return voice; } + public GenerationArgs setVoice(String value) { this.voice = value; return this; } + public String getLanguage() { return language; } + public GenerationArgs setLanguage(String value) { this.language = value; return this; } + } + + public static class MediaModel + { + public String id = null; + public HashMap apiModels = null; + public String url = null; + public Double quality = null; + public String aspectRatio = null; + public Double cfgScale = null; + public String scheduler = null; + public ComfySampler sampler = null; + public Integer width = null; + public Integer height = null; + public Integer steps = null; + public String negativePrompt = null; + public ModelType modelType = null; + + public String getId() { return id; } + public MediaModel setId(String value) { this.id = value; return this; } + public HashMap getApiModels() { return apiModels; } + public MediaModel setApiModels(HashMap value) { this.apiModels = value; return this; } + public String getUrl() { return url; } + public MediaModel setUrl(String value) { this.url = value; return this; } + public Double getQuality() { return quality; } + public MediaModel setQuality(Double value) { this.quality = value; return this; } + public String getAspectRatio() { return aspectRatio; } + public MediaModel setAspectRatio(String value) { this.aspectRatio = value; return this; } + public Double getCfgScale() { return cfgScale; } + public MediaModel setCfgScale(Double value) { this.cfgScale = value; return this; } + public String getScheduler() { return scheduler; } + public MediaModel setScheduler(String value) { this.scheduler = value; return this; } + public ComfySampler getSampler() { return sampler; } + public MediaModel setSampler(ComfySampler value) { this.sampler = value; return this; } + public Integer getWidth() { return width; } + public MediaModel setWidth(Integer value) { this.width = value; return this; } + public Integer getHeight() { return height; } + public MediaModel setHeight(Integer value) { this.height = value; return this; } + public Integer getSteps() { return steps; } + public MediaModel setSteps(Integer value) { this.steps = value; return this; } + public String getNegativePrompt() { return negativePrompt; } + public MediaModel setNegativePrompt(String value) { this.negativePrompt = value; return this; } + public ModelType getModelType() { return modelType; } + public MediaModel setModelType(ModelType value) { this.modelType = value; return this; } + } + + public static class MediaTransformArgs + { + public MediaTransformTaskType taskType = null; + public InputStream videoInput = null; + public InputStream audioInput = null; + public InputStream imageInput = null; + public InputStream watermarkInput = null; + public String videoFileName = null; + public String audioFileName = null; + public String imageFileName = null; + public String watermarkFileName = null; + public MediaOutputFormat outputFormat = null; + public ImageOutputFormat imageOutputFormat = null; + public Integer scaleWidth = null; + public Integer scaleHeight = null; + public Integer cropX = null; + public Integer cropY = null; + public Integer cropWidth = null; + public Integer cropHeight = null; + public Float cutStart = null; + public Float cutEnd = null; + public InputStream watermarkFile = null; + public String watermarkPosition = null; + public String watermarkScale = null; + public String audioCodec = null; + public String videoCodec = null; + public String audioBitrate = null; + public Integer audioSampleRate = null; + + public MediaTransformTaskType getTaskType() { return taskType; } + public MediaTransformArgs setTaskType(MediaTransformTaskType value) { this.taskType = value; return this; } + public InputStream getVideoInput() { return videoInput; } + public MediaTransformArgs setVideoInput(InputStream value) { this.videoInput = value; return this; } + public InputStream getAudioInput() { return audioInput; } + public MediaTransformArgs setAudioInput(InputStream value) { this.audioInput = value; return this; } + public InputStream getImageInput() { return imageInput; } + public MediaTransformArgs setImageInput(InputStream value) { this.imageInput = value; return this; } + public InputStream getWatermarkInput() { return watermarkInput; } + public MediaTransformArgs setWatermarkInput(InputStream value) { this.watermarkInput = value; return this; } + public String getVideoFileName() { return videoFileName; } + public MediaTransformArgs setVideoFileName(String value) { this.videoFileName = value; return this; } + public String getAudioFileName() { return audioFileName; } + public MediaTransformArgs setAudioFileName(String value) { this.audioFileName = value; return this; } + public String getImageFileName() { return imageFileName; } + public MediaTransformArgs setImageFileName(String value) { this.imageFileName = value; return this; } + public String getWatermarkFileName() { return watermarkFileName; } + public MediaTransformArgs setWatermarkFileName(String value) { this.watermarkFileName = value; return this; } + public MediaOutputFormat getOutputFormat() { return outputFormat; } + public MediaTransformArgs setOutputFormat(MediaOutputFormat value) { this.outputFormat = value; return this; } + public ImageOutputFormat getImageOutputFormat() { return imageOutputFormat; } + public MediaTransformArgs setImageOutputFormat(ImageOutputFormat value) { this.imageOutputFormat = value; return this; } + public Integer getScaleWidth() { return scaleWidth; } + public MediaTransformArgs setScaleWidth(Integer value) { this.scaleWidth = value; return this; } + public Integer getScaleHeight() { return scaleHeight; } + public MediaTransformArgs setScaleHeight(Integer value) { this.scaleHeight = value; return this; } + public Integer getCropX() { return cropX; } + public MediaTransformArgs setCropX(Integer value) { this.cropX = value; return this; } + public Integer getCropY() { return cropY; } + public MediaTransformArgs setCropY(Integer value) { this.cropY = value; return this; } + public Integer getCropWidth() { return cropWidth; } + public MediaTransformArgs setCropWidth(Integer value) { this.cropWidth = value; return this; } + public Integer getCropHeight() { return cropHeight; } + public MediaTransformArgs setCropHeight(Integer value) { this.cropHeight = value; return this; } + public Float getCutStart() { return cutStart; } + public MediaTransformArgs setCutStart(Float value) { this.cutStart = value; return this; } + public Float getCutEnd() { return cutEnd; } + public MediaTransformArgs setCutEnd(Float value) { this.cutEnd = value; return this; } + public InputStream getWatermarkFile() { return watermarkFile; } + public MediaTransformArgs setWatermarkFile(InputStream value) { this.watermarkFile = value; return this; } + public String getWatermarkPosition() { return watermarkPosition; } + public MediaTransformArgs setWatermarkPosition(String value) { this.watermarkPosition = value; return this; } + public String getWatermarkScale() { return watermarkScale; } + public MediaTransformArgs setWatermarkScale(String value) { this.watermarkScale = value; return this; } + public String getAudioCodec() { return audioCodec; } + public MediaTransformArgs setAudioCodec(String value) { this.audioCodec = value; return this; } + public String getVideoCodec() { return videoCodec; } + public MediaTransformArgs setVideoCodec(String value) { this.videoCodec = value; return this; } + public String getAudioBitrate() { return audioBitrate; } + public MediaTransformArgs setAudioBitrate(String value) { this.audioBitrate = value; return this; } + public Integer getAudioSampleRate() { return audioSampleRate; } + public MediaTransformArgs setAudioSampleRate(Integer value) { this.audioSampleRate = value; return this; } + } + + public static class AiModel + { + public String id = null; + public ArrayList tags = null; + public String latest = null; + public String website = null; + public String description = null; + public String icon = null; + + public String getId() { return id; } + public AiModel setId(String value) { this.id = value; return this; } + public ArrayList getTags() { return tags; } + public AiModel setTags(ArrayList value) { this.tags = value; return this; } + public String getLatest() { return latest; } + public AiModel setLatest(String value) { this.latest = value; return this; } + public String getWebsite() { return website; } + public AiModel setWebsite(String value) { this.website = value; return this; } + public String getDescription() { return description; } + public AiModel setDescription(String value) { this.description = value; return this; } + public String getIcon() { return icon; } + public AiModel setIcon(String value) { this.icon = value; return this; } + } + + public static class AiType + { + public String id = null; + public AiProviderType provider = null; + public String website = null; + public String apiBaseUrl = null; + public String heartbeatUrl = null; + public String icon = null; + public HashMap apiModels = null; + + public String getId() { return id; } + public AiType setId(String value) { this.id = value; return this; } + public AiProviderType getProvider() { return provider; } + public AiType setProvider(AiProviderType value) { this.provider = value; return this; } + public String getWebsite() { return website; } + public AiType setWebsite(String value) { this.website = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public AiType setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public AiType setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public String getIcon() { return icon; } + public AiType setIcon(String value) { this.icon = value; return this; } + public HashMap getApiModels() { return apiModels; } + public AiType setApiModels(HashMap value) { this.apiModels = value; return this; } + } + + public static class AiProvider + { + public Integer id = null; + public String name = null; + public String apiBaseUrl = null; + public String apiKeyVar = null; + public String apiKey = null; + public String apiKeyHeader = null; + public String heartbeatUrl = null; + public Integer concurrency = null; + public Integer priority = null; + public Boolean enabled = null; + public Date offlineDate = null; + public Date createdDate = null; + public ArrayList models = null; + public String aiTypeId = null; + @Ignore() + public AiType aiType = null; + + @Ignore() + public ArrayList selectedModels = null; + + public Integer getId() { return id; } + public AiProvider setId(Integer value) { this.id = value; return this; } + public String getName() { return name; } + public AiProvider setName(String value) { this.name = value; return this; } + public String getApiBaseUrl() { return apiBaseUrl; } + public AiProvider setApiBaseUrl(String value) { this.apiBaseUrl = value; return this; } + public String getApiKeyVar() { return apiKeyVar; } + public AiProvider setApiKeyVar(String value) { this.apiKeyVar = value; return this; } + public String getApiKey() { return apiKey; } + public AiProvider setApiKey(String value) { this.apiKey = value; return this; } + public String getApiKeyHeader() { return apiKeyHeader; } + public AiProvider setApiKeyHeader(String value) { this.apiKeyHeader = value; return this; } + public String getHeartbeatUrl() { return heartbeatUrl; } + public AiProvider setHeartbeatUrl(String value) { this.heartbeatUrl = value; return this; } + public Integer getConcurrency() { return concurrency; } + public AiProvider setConcurrency(Integer value) { this.concurrency = value; return this; } + public Integer getPriority() { return priority; } + public AiProvider setPriority(Integer value) { this.priority = value; return this; } + public Boolean isEnabled() { return enabled; } + public AiProvider setEnabled(Boolean value) { this.enabled = value; return this; } + public Date getOfflineDate() { return offlineDate; } + public AiProvider setOfflineDate(Date value) { this.offlineDate = value; return this; } + public Date getCreatedDate() { return createdDate; } + public AiProvider setCreatedDate(Date value) { this.createdDate = value; return this; } + public ArrayList getModels() { return models; } + public AiProvider setModels(ArrayList value) { this.models = value; return this; } + public String getAiTypeId() { return aiTypeId; } + public AiProvider setAiTypeId(String value) { this.aiTypeId = value; return this; } + public AiType getAiType() { return aiType; } + public AiProvider setAiType(AiType value) { this.aiType = value; return this; } + public ArrayList getSelectedModels() { return selectedModels; } + public AiProvider setSelectedModels(ArrayList value) { this.selectedModels = value; return this; } + } + + /** + * A list of messages comprising the conversation so far. + */ + @DataContract + public static class OpenAiMessage + { + /** + * The contents of the message. + */ + @DataMember(Name="content") + @SerializedName("content") + public String content = null; + + /** + * The role of the author of this message. Valid values are `system`, `user`, `assistant` and `tool`. + */ + @DataMember(Name="role") + @SerializedName("role") + public String role = null; + + /** + * An optional name for the participant. Provides the model information to differentiate between participants of the same role. + */ + @DataMember(Name="name") + @SerializedName("name") + public String name = null; + + /** + * The tool calls generated by the model, such as function calls. + */ + @DataMember(Name="tool_calls") + @SerializedName("tool_calls") + public ArrayList toolCalls = null; + + /** + * Tool call that this message is responding to. + */ + @DataMember(Name="tool_call_id") + @SerializedName("tool_call_id") + public String toolCallId = null; + + public String getContent() { return content; } + public OpenAiMessage setContent(String value) { this.content = value; return this; } + public String getRole() { return role; } + public OpenAiMessage setRole(String value) { this.role = value; return this; } + public String getName() { return name; } + public OpenAiMessage setName(String value) { this.name = value; return this; } + public ArrayList getToolCalls() { return toolCalls; } + public OpenAiMessage setToolCalls(ArrayList value) { this.toolCalls = value; return this; } + public String getToolCallId() { return toolCallId; } + public OpenAiMessage setToolCallId(String value) { this.toolCallId = value; return this; } + } + + @DataContract + public static class OpenAiResponseFormat + { + /** + * An object specifying the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106. + */ + @DataMember(Name="response_format") + @SerializedName("response_format") + public ResponseFormat type = null; + + public ResponseFormat getType() { return type; } + public OpenAiResponseFormat setType(ResponseFormat value) { this.type = value; return this; } + } + + @DataContract + public static class OpenAiTools + { + /** + * The type of the tool. Currently, only function is supported. + */ + @DataMember(Name="type") + @SerializedName("type") + public OpenAiToolType type = null; + + public OpenAiToolType getType() { return type; } + public OpenAiTools setType(OpenAiToolType value) { this.type = value; return this; } + } + + /** + * Given a list of messages comprising a conversation, the model will return a response. + */ + @DataContract + public static class OpenAiChat + { + /** + * A list of messages comprising the conversation so far. + */ + @DataMember(Name="messages") + @SerializedName("messages") + public ArrayList messages = null; + + /** + * ID of the model to use. See the model endpoint compatibility table for details on which models work with the Chat API + */ + @DataMember(Name="model") + @SerializedName("model") + public String model = null; + + /** + * Number between `-2.0` and `2.0`. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. + */ + @DataMember(Name="frequency_penalty") + @SerializedName("frequency_penalty") + public Double frequencyPenalty = null; + + /** + * Modify the likelihood of specified tokens appearing in the completion. + */ + @DataMember(Name="logit_bias") + @SerializedName("logit_bias") + public HashMap logitBias = null; + + /** + * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message. + */ + @DataMember(Name="logprobs") + @SerializedName("logprobs") + public Boolean logProbs = null; + + /** + * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used. + */ + @DataMember(Name="top_logprobs") + @SerializedName("top_logprobs") + public Integer topLogProbs = null; + + /** + * The maximum number of tokens that can be generated in the chat completion. + */ + @DataMember(Name="max_tokens") + @SerializedName("max_tokens") + public Integer maxTokens = null; + + /** + * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs. + */ + @DataMember(Name="n") + @SerializedName("n") + public Integer n = null; + + /** + * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. + */ + @DataMember(Name="presence_penalty") + @SerializedName("presence_penalty") + public Double presencePenalty = null; + + /** + * An object specifying the format that the model must output. Compatible with GPT-4 Turbo and all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`. Setting Type to ResponseFormat.JsonObject enables JSON mode, which guarantees the message the model generates is valid JSON. + */ + @DataMember(Name="response_format") + @SerializedName("response_format") + public OpenAiResponseFormat responseFormat = null; + + /** + * This feature is in Beta. If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend. + */ + @DataMember(Name="seed") + @SerializedName("seed") + public Integer seed = null; + + /** + * Up to 4 sequences where the API will stop generating further tokens. + */ + @DataMember(Name="stop") + @SerializedName("stop") + public ArrayList stop = null; + + /** + * If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message. + */ + @DataMember(Name="stream") + @SerializedName("stream") + public Boolean stream = null; + + /** + * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. + */ + @DataMember(Name="temperature") + @SerializedName("temperature") + public Double temperature = null; + + /** + * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. + */ + @DataMember(Name="top_p") + @SerializedName("top_p") + public Double topP = null; + + /** + * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported. + */ + @DataMember(Name="tools") + @SerializedName("tools") + public ArrayList tools = null; + + /** + * A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. + */ + @DataMember(Name="user") + @SerializedName("user") + public String user = null; + + public ArrayList getMessages() { return messages; } + public OpenAiChat setMessages(ArrayList value) { this.messages = value; return this; } + public String getModel() { return model; } + public OpenAiChat setModel(String value) { this.model = value; return this; } + public Double getFrequencyPenalty() { return frequencyPenalty; } + public OpenAiChat setFrequencyPenalty(Double value) { this.frequencyPenalty = value; return this; } + public HashMap getLogitBias() { return logitBias; } + public OpenAiChat setLogitBias(HashMap value) { this.logitBias = value; return this; } + public Boolean isLogProbs() { return logProbs; } + public OpenAiChat setLogProbs(Boolean value) { this.logProbs = value; return this; } + public Integer getTopLogProbs() { return topLogProbs; } + public OpenAiChat setTopLogProbs(Integer value) { this.topLogProbs = value; return this; } + public Integer getMaxTokens() { return maxTokens; } + public OpenAiChat setMaxTokens(Integer value) { this.maxTokens = value; return this; } + public Integer getN() { return n; } + public OpenAiChat setN(Integer value) { this.n = value; return this; } + public Double getPresencePenalty() { return presencePenalty; } + public OpenAiChat setPresencePenalty(Double value) { this.presencePenalty = value; return this; } + public OpenAiResponseFormat getResponseFormat() { return responseFormat; } + public OpenAiChat setResponseFormat(OpenAiResponseFormat value) { this.responseFormat = value; return this; } + public Integer getSeed() { return seed; } + public OpenAiChat setSeed(Integer value) { this.seed = value; return this; } + public ArrayList getStop() { return stop; } + public OpenAiChat setStop(ArrayList value) { this.stop = value; return this; } + public Boolean isStream() { return stream; } + public OpenAiChat setStream(Boolean value) { this.stream = value; return this; } + public Double getTemperature() { return temperature; } + public OpenAiChat setTemperature(Double value) { this.temperature = value; return this; } + public Double getTopP() { return topP; } + public OpenAiChat setTopP(Double value) { this.topP = value; return this; } + public ArrayList getTools() { return tools; } + public OpenAiChat setTools(ArrayList value) { this.tools = value; return this; } + public String getUser() { return user; } + public OpenAiChat setUser(String value) { this.user = value; return this; } + } + + public static enum TaskType + { + OpenAiChat(1), + Comfy(2); + + private final int value; + TaskType(final int intValue) { value = intValue; } + public int getValue() { return value; } + } + + public static class AiProviderModel + { + public String model = null; + public String apiModel = null; + + public String getModel() { return model; } + public AiProviderModel setModel(String value) { this.model = value; return this; } + public String getApiModel() { return apiModel; } + public AiProviderModel setApiModel(String value) { this.apiModel = value; return this; } + } + + public static class QueryData extends QueryBase + { + + } + + public static class Prompt + { + public String id = null; + public String name = null; + public String value = null; + + public String getId() { return id; } + public Prompt setId(String value) { this.id = value; return this; } + public String getName() { return name; } + public Prompt setName(String value) { this.name = value; return this; } + public String getValue() { return value; } + public Prompt setValue(String value) { this.value = value; return this; } + } + + @DataContract + public static enum ConvertVideoOutputFormat + { + MP4, + Avi, + Mov; + } + + public static class PageStats + { + public String label = null; + public Integer total = null; + + public String getLabel() { return label; } + public PageStats setLabel(String value) { this.label = value; return this; } + public Integer getTotal() { return total; } + public PageStats setTotal(Integer value) { this.total = 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 enum BackgroundJobState + { + Queued, + Started, + Executed, + Completed, + Failed, + Cancelled; + } + + public static class SummaryStats + { + public String name = null; + public Integer total = null; + public Integer totalPromptTokens = null; + public Integer totalCompletionTokens = null; + public Double totalMinutes = null; + public Double tokensPerSecond = null; + + public String getName() { return name; } + public SummaryStats setName(String value) { this.name = value; return this; } + public Integer getTotal() { return total; } + public SummaryStats setTotal(Integer value) { this.total = value; return this; } + public Integer getTotalPromptTokens() { return totalPromptTokens; } + public SummaryStats setTotalPromptTokens(Integer value) { this.totalPromptTokens = value; return this; } + public Integer getTotalCompletionTokens() { return totalCompletionTokens; } + public SummaryStats setTotalCompletionTokens(Integer value) { this.totalCompletionTokens = value; return this; } + public Double getTotalMinutes() { return totalMinutes; } + public SummaryStats setTotalMinutes(Double value) { this.totalMinutes = value; return this; } + public Double getTokensPerSecond() { return tokensPerSecond; } + public SummaryStats setTokensPerSecond(Double value) { this.tokensPerSecond = value; return this; } + } + + public static class GenerationResult + { + public ArrayList textOutputs = null; + public ArrayList outputs = null; + public String error = null; + + public ArrayList getTextOutputs() { return textOutputs; } + public GenerationResult setTextOutputs(ArrayList value) { this.textOutputs = value; return this; } + public ArrayList getOutputs() { return outputs; } + public GenerationResult setOutputs(ArrayList value) { this.outputs = value; return this; } + public String getError() { return error; } + public GenerationResult setError(String value) { this.error = value; return this; } + } + + public static class AiProviderFileOutput + { + public String fileName = null; + public String url = null; + + public String getFileName() { return fileName; } + public AiProviderFileOutput setFileName(String value) { this.fileName = value; return this; } + public String getUrl() { return url; } + public AiProviderFileOutput setUrl(String value) { this.url = value; return this; } + } + + public static class AiProviderTextOutput + { + public String text = null; + + public String getText() { return text; } + public AiProviderTextOutput setText(String value) { this.text = value; return this; } + } + + @DataContract + public static class OllamaModel + { + @DataMember(Name="name") + @SerializedName("name") + public String name = null; + + @DataMember(Name="model") + @SerializedName("model") + public String model = null; + + @DataMember(Name="modified_at") + @SerializedName("modified_at") + public Date modifiedAt = null; + + @DataMember(Name="size") + @SerializedName("size") + public Long size = null; + + @DataMember(Name="digest") + @SerializedName("digest") + public String digest = null; + + @DataMember(Name="details") + @SerializedName("details") + public OllamaModelDetails details = null; + + public String getName() { return name; } + public OllamaModel setName(String value) { this.name = value; return this; } + public String getModel() { return model; } + public OllamaModel setModel(String value) { this.model = value; return this; } + public Date getModifiedAt() { return modifiedAt; } + public OllamaModel setModifiedAt(Date value) { this.modifiedAt = value; return this; } + public Long getSize() { return size; } + public OllamaModel setSize(Long value) { this.size = value; return this; } + public String getDigest() { return digest; } + public OllamaModel setDigest(String value) { this.digest = value; return this; } + public OllamaModelDetails getDetails() { return details; } + public OllamaModel setDetails(OllamaModelDetails value) { this.details = value; return this; } + } + + public static class WorkerStats + { + public String name = null; + public Long queued = null; + public Long received = null; + public Long completed = null; + public Long retries = null; + public Long failed = null; + public Long runningJob = null; + public TimeSpan runningTime = null; + + public String getName() { return name; } + public WorkerStats setName(String value) { this.name = value; return this; } + public Long getQueued() { return queued; } + public WorkerStats setQueued(Long value) { this.queued = value; return this; } + public Long getReceived() { return received; } + public WorkerStats setReceived(Long value) { this.received = value; return this; } + public Long getCompleted() { return completed; } + public WorkerStats setCompleted(Long value) { this.completed = value; return this; } + public Long getRetries() { return retries; } + public WorkerStats setRetries(Long value) { this.retries = value; return this; } + public Long getFailed() { return failed; } + public WorkerStats setFailed(Long value) { this.failed = value; return this; } + public Long getRunningJob() { return runningJob; } + public WorkerStats setRunningJob(Long value) { this.runningJob = value; return this; } + public TimeSpan getRunningTime() { return runningTime; } + public WorkerStats setRunningTime(TimeSpan value) { this.runningTime = value; return this; } + } + + public static class Choice + { + /** + * The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, tool_calls if the model called a tool + */ + @DataMember(Name="finish_reason") + @SerializedName("finish_reason") + public String finishReason = null; + + /** + * The index of the choice in the list of choices. + */ + @DataMember(Name="index") + @SerializedName("index") + public Integer index = null; + + /** + * A chat completion message generated by the model. + */ + @DataMember(Name="message") + @SerializedName("message") + public ChoiceMessage message = null; + + public String getFinishReason() { return finishReason; } + public Choice setFinishReason(String value) { this.finishReason = value; return this; } + public Integer getIndex() { return index; } + public Choice setIndex(Integer value) { this.index = value; return this; } + public ChoiceMessage getMessage() { return message; } + public Choice setMessage(ChoiceMessage value) { this.message = value; return this; } + } + + /** + * Usage statistics for the completion request. + */ + @DataContract + public static class OpenAiUsage + { + /** + * Number of tokens in the generated completion. + */ + @DataMember(Name="completion_tokens") + @SerializedName("completion_tokens") + public Integer completionTokens = null; + + /** + * Number of tokens in the prompt. + */ + @DataMember(Name="prompt_tokens") + @SerializedName("prompt_tokens") + public Integer promptTokens = null; + + /** + * Total number of tokens used in the request (prompt + completion). + */ + @DataMember(Name="total_tokens") + @SerializedName("total_tokens") + public Integer totalTokens = null; + + public Integer getCompletionTokens() { return completionTokens; } + public OpenAiUsage setCompletionTokens(Integer value) { this.completionTokens = value; return this; } + public Integer getPromptTokens() { return promptTokens; } + public OpenAiUsage setPromptTokens(Integer value) { this.promptTokens = value; return this; } + public Integer getTotalTokens() { return totalTokens; } + public OpenAiUsage setTotalTokens(Integer value) { this.totalTokens = value; return this; } + } + + public static class BackgroundJobBase + { + public Long id = null; + public Long parentId = null; + public String refId = null; + public String worker = null; + public String tag = null; + public String batchId = null; + public String callback = null; + public Long dependsOn = null; + public Date runAfter = null; + public Date createdDate = null; + public String createdBy = null; + public String requestId = null; + public String requestType = null; + public String command = null; + public String request = null; + public String requestBody = null; + public String userId = null; + public String response = null; + public String responseBody = null; + public BackgroundJobState state = null; + public Date startedDate = null; + public Date completedDate = null; + public Date notifiedDate = null; + public Integer retryLimit = null; + public Integer attempts = null; + public Integer durationMs = null; + public Integer timeoutSecs = null; + public Double progress = null; + public String status = null; + public String logs = null; + public Date lastActivityDate = null; + public String replyTo = null; + public String errorCode = null; + public ResponseStatus error = null; + public HashMap args = null; + public HashMap meta = null; + + public Long getId() { return id; } + public BackgroundJobBase setId(Long value) { this.id = value; return this; } + public Long getParentId() { return parentId; } + public BackgroundJobBase setParentId(Long value) { this.parentId = value; return this; } + public String getRefId() { return refId; } + public BackgroundJobBase setRefId(String value) { this.refId = value; return this; } + public String getWorker() { return worker; } + public BackgroundJobBase setWorker(String value) { this.worker = value; return this; } + public String getTag() { return tag; } + public BackgroundJobBase setTag(String value) { this.tag = value; return this; } + public String getBatchId() { return batchId; } + public BackgroundJobBase setBatchId(String value) { this.batchId = value; return this; } + public String getCallback() { return callback; } + public BackgroundJobBase setCallback(String value) { this.callback = value; return this; } + public Long getDependsOn() { return dependsOn; } + public BackgroundJobBase setDependsOn(Long value) { this.dependsOn = value; return this; } + public Date getRunAfter() { return runAfter; } + public BackgroundJobBase setRunAfter(Date value) { this.runAfter = value; return this; } + public Date getCreatedDate() { return createdDate; } + public BackgroundJobBase setCreatedDate(Date value) { this.createdDate = value; return this; } + public String getCreatedBy() { return createdBy; } + public BackgroundJobBase setCreatedBy(String value) { this.createdBy = value; return this; } + public String getRequestId() { return requestId; } + public BackgroundJobBase setRequestId(String value) { this.requestId = value; return this; } + public String getRequestType() { return requestType; } + public BackgroundJobBase setRequestType(String value) { this.requestType = value; return this; } + public String getCommand() { return command; } + public BackgroundJobBase setCommand(String value) { this.command = value; return this; } + public String getRequest() { return request; } + public BackgroundJobBase setRequest(String value) { this.request = value; return this; } + public String getRequestBody() { return requestBody; } + public BackgroundJobBase setRequestBody(String value) { this.requestBody = value; return this; } + public String getUserId() { return userId; } + public BackgroundJobBase setUserId(String value) { this.userId = value; return this; } + public String getResponse() { return response; } + public BackgroundJobBase setResponse(String value) { this.response = value; return this; } + public String getResponseBody() { return responseBody; } + public BackgroundJobBase setResponseBody(String value) { this.responseBody = value; return this; } + public BackgroundJobState getState() { return state; } + public BackgroundJobBase setState(BackgroundJobState value) { this.state = value; return this; } + public Date getStartedDate() { return startedDate; } + public BackgroundJobBase setStartedDate(Date value) { this.startedDate = value; return this; } + public Date getCompletedDate() { return completedDate; } + public BackgroundJobBase setCompletedDate(Date value) { this.completedDate = value; return this; } + public Date getNotifiedDate() { return notifiedDate; } + public BackgroundJobBase setNotifiedDate(Date value) { this.notifiedDate = value; return this; } + public Integer getRetryLimit() { return retryLimit; } + public BackgroundJobBase setRetryLimit(Integer value) { this.retryLimit = value; return this; } + public Integer getAttempts() { return attempts; } + public BackgroundJobBase setAttempts(Integer value) { this.attempts = value; return this; } + public Integer getDurationMs() { return durationMs; } + public BackgroundJobBase setDurationMs(Integer value) { this.durationMs = value; return this; } + public Integer getTimeoutSecs() { return timeoutSecs; } + public BackgroundJobBase setTimeoutSecs(Integer value) { this.timeoutSecs = value; return this; } + public Double getProgress() { return progress; } + public BackgroundJobBase setProgress(Double value) { this.progress = value; return this; } + public String getStatus() { return status; } + public BackgroundJobBase setStatus(String value) { this.status = value; return this; } + public String getLogs() { return logs; } + public BackgroundJobBase setLogs(String value) { this.logs = value; return this; } + public Date getLastActivityDate() { return lastActivityDate; } + public BackgroundJobBase setLastActivityDate(Date value) { this.lastActivityDate = value; return this; } + public String getReplyTo() { return replyTo; } + public BackgroundJobBase setReplyTo(String value) { this.replyTo = value; return this; } + public String getErrorCode() { return errorCode; } + public BackgroundJobBase setErrorCode(String value) { this.errorCode = value; return this; } + public ResponseStatus getError() { return error; } + public BackgroundJobBase setError(ResponseStatus value) { this.error = value; return this; } + public HashMap getArgs() { return args; } + public BackgroundJobBase setArgs(HashMap value) { this.args = value; return this; } + public HashMap getMeta() { return meta; } + public BackgroundJobBase setMeta(HashMap value) { this.meta = 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 enum AiServiceProvider + { + Replicate, + Comfy, + OpenAi; + } + + public static enum ComfySampler + { + Euler, + EulerCfgPp, + EulerAncestral, + EulerAncestralCfgPp, + Huen, + Huenpp2, + Dpm2, + Dpm2Ancestral, + Lms, + DpmFast, + DpmAdaptive, + Dpmpp2sAncestral, + DpmppSde, + DpmppSdeGpu, + Dpmpp2m, + Dpmpp2mSde, + Dpmpp2mSdeGpu, + Dpmpp3mSde, + Dpmpp3mSdeGpu, + Ddpm, + Lcm, + Ddim, + UniPc, + UniPcBh2; + } + + public static enum AiTaskType + { + TextToImage(1), + ImageToImage(2), + ImageUpscale(3), + ImageWithMask(4), + ImageToText(5), + TextToAudio(6), + TextToSpeech(7), + SpeechToText(8); + + private final int value; + AiTaskType(final int intValue) { value = intValue; } + public int getValue() { return value; } + } + + public static enum ComfyMaskSource + { + Red, + Blue, + Green, + Alpha; + } + + public static enum ModelType + { + TextToImage, + TextEncoder, + ImageUpscale, + TextToSpeech, + TextToAudio, + SpeechToText, + ImageToText, + ImageToImage, + ImageWithMask, + Vae; + } + + public static enum MediaTransformTaskType + { + ImageScale, + VideoScale, + ImageConvert, + AudioConvert, + VideoConvert, + ImageCrop, + VideoCrop, + VideoCut, + AudioCut, + WatermarkImage, + WatermarkVideo; + } + + @DataContract + public static enum MediaOutputFormat + { + MP4, + Avi, + Mkv, + Mov, + WebM, + Gif, + MP3, + Wav, + Flac; + } + + public static enum AiProviderType + { + OpenAiProvider, + GoogleAiProvider; + } + + /** + * The tool calls generated by the model, such as function calls. + */ + @DataContract + public static class ToolCall + { + /** + * The ID of the tool call. + */ + @DataMember(Name="id") + @SerializedName("id") + public String id = null; + + /** + * The type of the tool. Currently, only `function` is supported. + */ + @DataMember(Name="type") + @SerializedName("type") + public String type = null; + + /** + * The function that the model called. + */ + @DataMember(Name="function") + @SerializedName("function") + public String function = null; + + public String getId() { return id; } + public ToolCall setId(String value) { this.id = value; return this; } + public String getType() { return type; } + public ToolCall setType(String value) { this.type = value; return this; } + public String getFunction() { return function; } + public ToolCall setFunction(String value) { this.function = value; return this; } + } + + public static enum ResponseFormat + { + Text, + JsonObject; + } + + public static enum OpenAiToolType + { + Function; + } + + @DataContract + public static class OllamaModelDetails + { + @DataMember(Name="parent_model") + @SerializedName("parent_model") + public String parentModel = null; + + @DataMember(Name="format") + @SerializedName("format") + public String format = null; + + @DataMember(Name="family") + @SerializedName("family") + public String family = null; + + @DataMember(Name="families") + @SerializedName("families") + public ArrayList families = null; + + @DataMember(Name="parameter_size") + @SerializedName("parameter_size") + public String parameterSize = null; + + @DataMember(Name="quantization_level") + @SerializedName("quantization_level") + public String quantizationLevel = null; + + public String getParentModel() { return parentModel; } + public OllamaModelDetails setParentModel(String value) { this.parentModel = value; return this; } + public String getFormat() { return format; } + public OllamaModelDetails setFormat(String value) { this.format = value; return this; } + public String getFamily() { return family; } + public OllamaModelDetails setFamily(String value) { this.family = value; return this; } + public ArrayList getFamilies() { return families; } + public OllamaModelDetails setFamilies(ArrayList value) { this.families = value; return this; } + public String getParameterSize() { return parameterSize; } + public OllamaModelDetails setParameterSize(String value) { this.parameterSize = value; return this; } + public String getQuantizationLevel() { return quantizationLevel; } + public OllamaModelDetails setQuantizationLevel(String value) { this.quantizationLevel = value; return this; } + } + + @DataContract + public static class ChoiceMessage + { + /** + * The contents of the message. + */ + @DataMember(Name="content") + @SerializedName("content") + public String content = null; + + /** + * The tool calls generated by the model, such as function calls. + */ + @DataMember(Name="tool_calls") + @SerializedName("tool_calls") + public ArrayList toolCalls = null; + + /** + * The role of the author of this message. + */ + @DataMember(Name="role") + @SerializedName("role") + public String role = null; + + public String getContent() { return content; } + public ChoiceMessage setContent(String value) { this.content = value; return this; } + public ArrayList getToolCalls() { return toolCalls; } + public ChoiceMessage setToolCalls(ArrayList value) { this.toolCalls = value; return this; } + public String getRole() { return role; } + public ChoiceMessage setRole(String value) { this.role = value; return this; } + } + +} diff --git a/src/AndroidClient/client/src/test/resources/aiserver/test_audio.wav b/src/AndroidClient/client/src/test/resources/aiserver/test_audio.wav new file mode 100644 index 00000000..d71512a2 Binary files /dev/null and b/src/AndroidClient/client/src/test/resources/aiserver/test_audio.wav differ diff --git a/src/AndroidClient/gradle/wrapper/gradle-wrapper.jar b/src/AndroidClient/gradle/wrapper/gradle-wrapper.jar index 7454180f..e6441136 100644 Binary files a/src/AndroidClient/gradle/wrapper/gradle-wrapper.jar and b/src/AndroidClient/gradle/wrapper/gradle-wrapper.jar differ diff --git a/src/AndroidClient/gradle/wrapper/gradle-wrapper.properties b/src/AndroidClient/gradle/wrapper/gradle-wrapper.properties index 8049c684..a4413138 100644 --- a/src/AndroidClient/gradle/wrapper/gradle-wrapper.properties +++ b/src/AndroidClient/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/AndroidClient/gradlew b/src/AndroidClient/gradlew old mode 100644 new mode 100755 index c53aefaa..b740cf13 --- a/src/AndroidClient/gradlew +++ b/src/AndroidClient/gradlew @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright © 2015-2021 the original authors. +# Copyright © 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,10 +32,10 @@ # Busybox and similar reduced shells will NOT work, because this script # requires all of these POSIX shell features: # * functions; -# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», -# «${var#prefix}», «${var%suffix}», and «$( cmd )»; -# * compound commands having a testable exit status, especially «case»; -# * various built-in commands including «command», «set», and «ulimit». +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». # # Important for patching: # @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -80,13 +80,11 @@ do esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -133,22 +131,29 @@ location of your Java installation." fi else JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." + fi fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac @@ -193,11 +198,15 @@ if "$cygwin" || "$msys" ; then done fi -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ @@ -205,6 +214,12 @@ set -- \ org.gradle.wrapper.GradleWrapperMain \ "$@" +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. diff --git a/src/AndroidClient/gradlew.bat b/src/AndroidClient/gradlew.bat index 107acd32..25da30db 100644 --- a/src/AndroidClient/gradlew.bat +++ b/src/AndroidClient/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -40,13 +41,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/src/AndroidClient/settings.gradle b/src/AndroidClient/settings.gradle index f48d8001..73f73aaf 100644 --- a/src/AndroidClient/settings.gradle +++ b/src/AndroidClient/settings.gradle @@ -1,2 +1,2 @@ -include ':app', ':client', ':android', ':techstacks', ':kotlin', ':techstackskotlin', ':androidchat' +include ':client', ':android' diff --git a/src/ServiceStackEclipse/ServiceStackEclipse.Bundle/src/main/java/net/servicestack/eclipse/wizard/AddReferenceWizard.java b/src/ServiceStackEclipse/ServiceStackEclipse.Bundle/src/main/java/net/servicestack/eclipse/wizard/AddReferenceWizard.java index 0a64f9c0..c43c8cb3 100644 --- a/src/ServiceStackEclipse/ServiceStackEclipse.Bundle/src/main/java/net/servicestack/eclipse/wizard/AddReferenceWizard.java +++ b/src/ServiceStackEclipse/ServiceStackEclipse.Bundle/src/main/java/net/servicestack/eclipse/wizard/AddReferenceWizard.java @@ -40,12 +40,12 @@ public class AddReferenceWizard extends Wizard { boolean packageSelected = false; private static final String dependencyGroupId = "net.servicestack"; - private static final String dependencyVersion = "1.0.40"; + private static final String dependencyVersion = "1.1.2"; private static final String clientPackageId = "client"; private static final String gsonDependencyGroupId = "com.google.code.gson"; private static final String gsonPackageId = "gson"; - private static final String gsonDependencyVersion = "2.8.6"; + private static final String gsonDependencyVersion = "2.11.0"; boolean success = false; diff --git a/src/ServiceStackEclipse/readme.md b/src/ServiceStackEclipse/readme.md index da2601bb..873a8652 100644 --- a/src/ServiceStackEclipse/readme.md +++ b/src/ServiceStackEclipse/readme.md @@ -33,7 +33,7 @@ Updating a ServiceStack Reference works as normal where you can change any of th ServiceStack references can still be added without the use of a Maven project. However, two dependencies will have to added to your Eclipse project for the generated Java to compile. Both JARs are available to download from JCenter or MavenCentral. 1. [`net.servicestack:client`](http://search.maven.org/#search%7Cga%7C1%7Cnet.servicestack) -2. [`com.google.code.gson:gson:2.3.1`](http://search.maven.org/#artifactdetails%7Ccom.google.code.gson%7Cgson%7C2.3.1%7Cjar) +2. [`com.google.code.gson:gson:2.11.0`](http://search.maven.org/#artifactdetails%7Ccom.google.code.gson%7Cgson%7C2.3.1%7Cjar) Once you have downloaded these jars, add them to a folder in your project, eg `/lib`. diff --git a/src/AndroidClient/app/.gitignore b/src/legacy/app/.gitignore similarity index 100% rename from src/AndroidClient/app/.gitignore rename to src/legacy/app/.gitignore diff --git a/src/AndroidClient/app/build.gradle b/src/legacy/app/build.gradle similarity index 70% rename from src/AndroidClient/app/build.gradle rename to src/legacy/app/build.gradle index 8e97dfe4..f39547f6 100644 --- a/src/AndroidClient/app/build.gradle +++ b/src/legacy/app/build.gradle @@ -2,12 +2,12 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { - compileSdkVersion 28 + compileSdk 34 defaultConfig { applicationId "servicestack.net.androidclient" minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 34 versionCode 1 versionName "1.0" } @@ -24,12 +24,21 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.android.support:appcompat-v7:28.0.0' implementation project(':android') implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'com.google.code.gson:gson:2.8.6' + implementation 'com.google.code.gson:gson:2.11.0' implementation 'net.servicestack:android:1.0.49' } +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + mavenCentral() + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} repositories { + google() mavenCentral() } diff --git a/src/AndroidClient/app/proguard-rules.pro b/src/legacy/app/proguard-rules.pro similarity index 100% rename from src/AndroidClient/app/proguard-rules.pro rename to src/legacy/app/proguard-rules.pro diff --git a/src/AndroidClient/app/src/androidTest/java/servicestack/net/androidclient/ApplicationTest.java b/src/legacy/app/src/androidTest/java/servicestack/net/androidclient/ApplicationTest.java similarity index 100% rename from src/AndroidClient/app/src/androidTest/java/servicestack/net/androidclient/ApplicationTest.java rename to src/legacy/app/src/androidTest/java/servicestack/net/androidclient/ApplicationTest.java diff --git a/src/AndroidClient/app/src/main/AndroidManifest.xml b/src/legacy/app/src/main/AndroidManifest.xml similarity index 92% rename from src/AndroidClient/app/src/main/AndroidManifest.xml rename to src/legacy/app/src/main/AndroidManifest.xml index 722d2012..76128272 100644 --- a/src/AndroidClient/app/src/main/AndroidManifest.xml +++ b/src/legacy/app/src/main/AndroidManifest.xml @@ -8,7 +8,7 @@ android:label="@string/app_name"> + android:exported="true"> diff --git a/src/AndroidClient/app/src/main/java/servicestack/net/androidclient/CollectionDemoActivity.java b/src/legacy/app/src/main/java/servicestack/net/androidclient/CollectionDemoActivity.java similarity index 100% rename from src/AndroidClient/app/src/main/java/servicestack/net/androidclient/CollectionDemoActivity.java rename to src/legacy/app/src/main/java/servicestack/net/androidclient/CollectionDemoActivity.java diff --git a/src/AndroidClient/app/src/main/java/servicestack/net/androidclient/MainActivity.java b/src/legacy/app/src/main/java/servicestack/net/androidclient/MainActivity.java similarity index 100% rename from src/AndroidClient/app/src/main/java/servicestack/net/androidclient/MainActivity.java rename to src/legacy/app/src/main/java/servicestack/net/androidclient/MainActivity.java diff --git a/src/AndroidClient/app/src/main/java/servicestack/net/androidclient/techstacksdtos.java b/src/legacy/app/src/main/java/servicestack/net/androidclient/techstacksdtos.java similarity index 100% rename from src/AndroidClient/app/src/main/java/servicestack/net/androidclient/techstacksdtos.java rename to src/legacy/app/src/main/java/servicestack/net/androidclient/techstacksdtos.java diff --git a/src/AndroidClient/app/src/main/java/servicestack/net/androidclient/validationdtos.java b/src/legacy/app/src/main/java/servicestack/net/androidclient/validationdtos.java similarity index 100% rename from src/AndroidClient/app/src/main/java/servicestack/net/androidclient/validationdtos.java rename to src/legacy/app/src/main/java/servicestack/net/androidclient/validationdtos.java diff --git a/src/AndroidClient/app/src/main/res/drawable-hdpi/ic_launcher.png b/src/legacy/app/src/main/res/drawable-hdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/app/src/main/res/drawable-hdpi/ic_launcher.png rename to src/legacy/app/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/src/AndroidClient/app/src/main/res/drawable-ldpi/ic_launcher.png b/src/legacy/app/src/main/res/drawable-ldpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/app/src/main/res/drawable-ldpi/ic_launcher.png rename to src/legacy/app/src/main/res/drawable-ldpi/ic_launcher.png diff --git a/src/AndroidClient/app/src/main/res/drawable-mdpi/ic_launcher.png b/src/legacy/app/src/main/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/app/src/main/res/drawable-mdpi/ic_launcher.png rename to src/legacy/app/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/src/AndroidClient/app/src/main/res/drawable-xhdpi/ic_launcher.png b/src/legacy/app/src/main/res/drawable-xhdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/app/src/main/res/drawable-xhdpi/ic_launcher.png rename to src/legacy/app/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/src/AndroidClient/app/src/main/res/layout/activity_collection_demo.xml b/src/legacy/app/src/main/res/layout/activity_collection_demo.xml similarity index 100% rename from src/AndroidClient/app/src/main/res/layout/activity_collection_demo.xml rename to src/legacy/app/src/main/res/layout/activity_collection_demo.xml diff --git a/src/AndroidClient/app/src/main/res/layout/activity_main.xml b/src/legacy/app/src/main/res/layout/activity_main.xml similarity index 100% rename from src/AndroidClient/app/src/main/res/layout/activity_main.xml rename to src/legacy/app/src/main/res/layout/activity_main.xml diff --git a/src/AndroidClient/app/src/main/res/layout/fragment_collection_object.xml b/src/legacy/app/src/main/res/layout/fragment_collection_object.xml similarity index 100% rename from src/AndroidClient/app/src/main/res/layout/fragment_collection_object.xml rename to src/legacy/app/src/main/res/layout/fragment_collection_object.xml diff --git a/src/AndroidClient/app/src/main/res/layout/fragment_section_dummy.xml b/src/legacy/app/src/main/res/layout/fragment_section_dummy.xml similarity index 100% rename from src/AndroidClient/app/src/main/res/layout/fragment_section_dummy.xml rename to src/legacy/app/src/main/res/layout/fragment_section_dummy.xml diff --git a/src/AndroidClient/app/src/main/res/layout/fragment_top_technologies.xml b/src/legacy/app/src/main/res/layout/fragment_top_technologies.xml similarity index 100% rename from src/AndroidClient/app/src/main/res/layout/fragment_top_technologies.xml rename to src/legacy/app/src/main/res/layout/fragment_top_technologies.xml diff --git a/src/AndroidClient/app/src/main/res/values/strings.xml b/src/legacy/app/src/main/res/values/strings.xml similarity index 100% rename from src/AndroidClient/app/src/main/res/values/strings.xml rename to src/legacy/app/src/main/res/values/strings.xml diff --git a/src/AndroidClient/kotlin/.gitignore b/src/legacy/kotlin/.gitignore similarity index 100% rename from src/AndroidClient/kotlin/.gitignore rename to src/legacy/kotlin/.gitignore diff --git a/src/AndroidClient/kotlin/build.gradle b/src/legacy/kotlin/build.gradle similarity index 76% rename from src/AndroidClient/kotlin/build.gradle rename to src/legacy/kotlin/build.gradle index 9558a1f9..aaeac7e1 100644 --- a/src/AndroidClient/kotlin/build.gradle +++ b/src/legacy/kotlin/build.gradle @@ -2,11 +2,11 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 29 + compileSdk 34 defaultConfig { minSdkVersion 16 - targetSdkVersion 29 + targetSdkVersion 34 } buildTypes { release { @@ -21,14 +21,14 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - androidTestImplementation 'junit:junit:4.13.1' - testImplementation 'junit:junit:4.13.1' + androidTestImplementation 'junit:junit:4.13.2' + testImplementation 'junit:junit:4.13.2' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation project(':android') - androidTestImplementation 'com.google.code.gson:gson:2.8.9' + androidTestImplementation 'com.google.code.gson:gson:2.11' } buildscript { - ext.kotlin_version = '1.6.21' + ext.kotlin_version = '1.9.0' repositories { mavenCentral() } diff --git a/src/AndroidClient/kotlin/kotlin.iml b/src/legacy/kotlin/kotlin.iml similarity index 100% rename from src/AndroidClient/kotlin/kotlin.iml rename to src/legacy/kotlin/kotlin.iml diff --git a/src/AndroidClient/kotlin/proguard-rules.pro b/src/legacy/kotlin/proguard-rules.pro similarity index 100% rename from src/AndroidClient/kotlin/proguard-rules.pro rename to src/legacy/kotlin/proguard-rules.pro diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/ApplicationTest.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/ApplicationTest.kt similarity index 100% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/ApplicationTest.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/ApplicationTest.kt diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/GsonTests.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/GsonTests.kt similarity index 97% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/GsonTests.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/GsonTests.kt index 2467a326..d87e0a81 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/GsonTests.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/GsonTests.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.checkweb diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/dtos.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/dtos.kt similarity index 100% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/dtos.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/checkweb/dtos.kt diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt similarity index 99% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt index 7982b168..b44542af 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTests.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.techstacks diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTestsAsync.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTestsAsync.kt similarity index 98% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTestsAsync.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTestsAsync.kt index 95ba65d8..620eb509 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTestsAsync.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/TechStacksServiceTestsAsync.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.techstacks diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/dtos.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/dtos.kt similarity index 100% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/dtos.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/techstacks/dtos.kt diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/JsonServiceClientTests.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/JsonServiceClientTests.kt similarity index 96% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/JsonServiceClientTests.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/JsonServiceClientTests.kt index 085fa99a..e0fe5cef 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/JsonServiceClientTests.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/JsonServiceClientTests.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlinapp.test diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestAuthTests.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestAuthTests.kt similarity index 100% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestAuthTests.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestAuthTests.kt diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTests.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTests.kt similarity index 96% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTests.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTests.kt index dbc14f9c..03a76725 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTests.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTests.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.test diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTestsAsync.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTestsAsync.kt similarity index 97% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTestsAsync.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTestsAsync.kt index 181be7cb..9610fec2 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTestsAsync.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestInterfaceMarkerTestsAsync.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.test diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTests.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTests.kt similarity index 99% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTests.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTests.kt index c900636b..8f9cfc4e 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTests.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTests.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.test diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTestsAsync.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTestsAsync.kt similarity index 99% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTestsAsync.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTestsAsync.kt index 3fcde7cc..6736cec1 100644 --- a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTestsAsync.kt +++ b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/TestServiceTestsAsync.kt @@ -1,4 +1,4 @@ -// Copyright (c) 2015 ServiceStack LLC. All rights reserved. +// Copyright (c) 2013-present ServiceStack, Inc. All rights reserved. package test.servicestack.net.kotlin.test diff --git a/src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/dtos.kt b/src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/dtos.kt similarity index 100% rename from src/AndroidClient/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/dtos.kt rename to src/legacy/kotlin/src/androidTest/java/test/servicestack/net/kotlin/test/dtos.kt diff --git a/src/AndroidClient/kotlin/src/main/AndroidManifest.xml b/src/legacy/kotlin/src/main/AndroidManifest.xml similarity index 81% rename from src/AndroidClient/kotlin/src/main/AndroidManifest.xml rename to src/legacy/kotlin/src/main/AndroidManifest.xml index b12bacb3..ea65257d 100644 --- a/src/AndroidClient/kotlin/src/main/AndroidManifest.xml +++ b/src/legacy/kotlin/src/main/AndroidManifest.xml @@ -1,11 +1,9 @@ - + - diff --git a/src/AndroidClient/kotlin/src/main/assets/overview.json b/src/legacy/kotlin/src/main/assets/overview.json similarity index 100% rename from src/AndroidClient/kotlin/src/main/assets/overview.json rename to src/legacy/kotlin/src/main/assets/overview.json diff --git a/src/AndroidClient/kotlin/src/main/res/values/strings.xml b/src/legacy/kotlin/src/main/res/values/strings.xml similarity index 100% rename from src/AndroidClient/kotlin/src/main/res/values/strings.xml rename to src/legacy/kotlin/src/main/res/values/strings.xml diff --git a/src/AndroidClient/kotlin/src/test/java/test/servicestack/net/kotlin/ExampleUnitTest.java b/src/legacy/kotlin/src/test/java/test/servicestack/net/kotlin/ExampleUnitTest.java similarity index 100% rename from src/AndroidClient/kotlin/src/test/java/test/servicestack/net/kotlin/ExampleUnitTest.java rename to src/legacy/kotlin/src/test/java/test/servicestack/net/kotlin/ExampleUnitTest.java diff --git a/src/AndroidClient/techstacks/build.gradle b/src/legacy/techstacks/build.gradle similarity index 81% rename from src/AndroidClient/techstacks/build.gradle rename to src/legacy/techstacks/build.gradle index 6a64fd7b..1ff01706 100644 --- a/src/AndroidClient/techstacks/build.gradle +++ b/src/legacy/techstacks/build.gradle @@ -2,12 +2,13 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { - compileSdkVersion 28 + namespace "servicestack.net.techstacks" + compileSdk 34 defaultConfig { applicationId "servicestack.net.techstacks" minSdkVersion 19 - targetSdkVersion 28 + targetSdkVersion 34 versionCode 1 versionName "1.0" } @@ -27,10 +28,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.android.support:appcompat-v7:28.0.0' implementation project(':android') implementation 'com.squareup.picasso:picasso:2.5.2' - implementation 'com.google.code.gson:gson:2.8.9' + implementation 'com.google.code.gson:gson:2.11' } repositories { mavenCentral() diff --git a/src/AndroidClient/techstacks/img/screenshot-01.png b/src/legacy/techstacks/img/screenshot-01.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-01.png rename to src/legacy/techstacks/img/screenshot-01.png diff --git a/src/AndroidClient/techstacks/img/screenshot-02.png b/src/legacy/techstacks/img/screenshot-02.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-02.png rename to src/legacy/techstacks/img/screenshot-02.png diff --git a/src/AndroidClient/techstacks/img/screenshot-03.png b/src/legacy/techstacks/img/screenshot-03.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-03.png rename to src/legacy/techstacks/img/screenshot-03.png diff --git a/src/AndroidClient/techstacks/img/screenshot-04.png b/src/legacy/techstacks/img/screenshot-04.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-04.png rename to src/legacy/techstacks/img/screenshot-04.png diff --git a/src/AndroidClient/techstacks/img/screenshot-05.png b/src/legacy/techstacks/img/screenshot-05.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-05.png rename to src/legacy/techstacks/img/screenshot-05.png diff --git a/src/AndroidClient/techstacks/img/screenshot-06.png b/src/legacy/techstacks/img/screenshot-06.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-06.png rename to src/legacy/techstacks/img/screenshot-06.png diff --git a/src/AndroidClient/techstacks/img/screenshot-10.png b/src/legacy/techstacks/img/screenshot-10.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-10.png rename to src/legacy/techstacks/img/screenshot-10.png diff --git a/src/AndroidClient/techstacks/img/screenshot-11.png b/src/legacy/techstacks/img/screenshot-11.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-11.png rename to src/legacy/techstacks/img/screenshot-11.png diff --git a/src/AndroidClient/techstacks/img/screenshot-12.png b/src/legacy/techstacks/img/screenshot-12.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-12.png rename to src/legacy/techstacks/img/screenshot-12.png diff --git a/src/AndroidClient/techstacks/img/screenshot-13.png b/src/legacy/techstacks/img/screenshot-13.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-13.png rename to src/legacy/techstacks/img/screenshot-13.png diff --git a/src/AndroidClient/techstacks/img/screenshot-14.png b/src/legacy/techstacks/img/screenshot-14.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-14.png rename to src/legacy/techstacks/img/screenshot-14.png diff --git a/src/AndroidClient/techstacks/img/screenshot-15.png b/src/legacy/techstacks/img/screenshot-15.png similarity index 100% rename from src/AndroidClient/techstacks/img/screenshot-15.png rename to src/legacy/techstacks/img/screenshot-15.png diff --git a/src/AndroidClient/techstacks/proguard-rules.pro b/src/legacy/techstacks/proguard-rules.pro similarity index 100% rename from src/AndroidClient/techstacks/proguard-rules.pro rename to src/legacy/techstacks/proguard-rules.pro diff --git a/src/AndroidClient/techstacks/src/androidTest/java/servicestack/net/techstacks/ApplicationTest.java b/src/legacy/techstacks/src/androidTest/java/servicestack/net/techstacks/ApplicationTest.java similarity index 100% rename from src/AndroidClient/techstacks/src/androidTest/java/servicestack/net/techstacks/ApplicationTest.java rename to src/legacy/techstacks/src/androidTest/java/servicestack/net/techstacks/ApplicationTest.java diff --git a/src/AndroidClient/techstacks/src/main/AndroidManifest.xml b/src/legacy/techstacks/src/main/AndroidManifest.xml similarity index 87% rename from src/AndroidClient/techstacks/src/main/AndroidManifest.xml rename to src/legacy/techstacks/src/main/AndroidManifest.xml index baf14ee3..f510713f 100644 --- a/src/AndroidClient/techstacks/src/main/AndroidManifest.xml +++ b/src/legacy/techstacks/src/main/AndroidManifest.xml @@ -10,7 +10,7 @@ android:theme="@style/AppTheme" > + android:exported="true"> @@ -18,7 +18,8 @@ + android:label="Technology" + android:exported="true"> @@ -26,7 +27,8 @@ + android:label="TechStack" + android:exported="true"> diff --git a/src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/App.java b/src/legacy/techstacks/src/main/java/servicestack/net/techstacks/App.java similarity index 100% rename from src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/App.java rename to src/legacy/techstacks/src/main/java/servicestack/net/techstacks/App.java diff --git a/src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/MainActivity.java b/src/legacy/techstacks/src/main/java/servicestack/net/techstacks/MainActivity.java similarity index 100% rename from src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/MainActivity.java rename to src/legacy/techstacks/src/main/java/servicestack/net/techstacks/MainActivity.java diff --git a/src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/TechStackActivity.java b/src/legacy/techstacks/src/main/java/servicestack/net/techstacks/TechStackActivity.java similarity index 100% rename from src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/TechStackActivity.java rename to src/legacy/techstacks/src/main/java/servicestack/net/techstacks/TechStackActivity.java diff --git a/src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/TechStacksApplication.java b/src/legacy/techstacks/src/main/java/servicestack/net/techstacks/TechStacksApplication.java similarity index 100% rename from src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/TechStacksApplication.java rename to src/legacy/techstacks/src/main/java/servicestack/net/techstacks/TechStacksApplication.java diff --git a/src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/TechnologyActivity.java b/src/legacy/techstacks/src/main/java/servicestack/net/techstacks/TechnologyActivity.java similarity index 100% rename from src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/TechnologyActivity.java rename to src/legacy/techstacks/src/main/java/servicestack/net/techstacks/TechnologyActivity.java diff --git a/src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/dto.java b/src/legacy/techstacks/src/main/java/servicestack/net/techstacks/dto.java similarity index 100% rename from src/AndroidClient/techstacks/src/main/java/servicestack/net/techstacks/dto.java rename to src/legacy/techstacks/src/main/java/servicestack/net/techstacks/dto.java diff --git a/src/AndroidClient/techstacks/src/main/res/drawable-hdpi/ic_actionbar.png b/src/legacy/techstacks/src/main/res/drawable-hdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/drawable-hdpi/ic_actionbar.png rename to src/legacy/techstacks/src/main/res/drawable-hdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstacks/src/main/res/drawable-mdpi/ic_actionbar.png b/src/legacy/techstacks/src/main/res/drawable-mdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/drawable-mdpi/ic_actionbar.png rename to src/legacy/techstacks/src/main/res/drawable-mdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstacks/src/main/res/drawable-xhdpi/ic_actionbar.png b/src/legacy/techstacks/src/main/res/drawable-xhdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/drawable-xhdpi/ic_actionbar.png rename to src/legacy/techstacks/src/main/res/drawable-xhdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstacks/src/main/res/drawable-xxhdpi/ic_actionbar.png b/src/legacy/techstacks/src/main/res/drawable-xxhdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/drawable-xxhdpi/ic_actionbar.png rename to src/legacy/techstacks/src/main/res/drawable-xxhdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstacks/src/main/res/drawable/tab_bar_background.xml b/src/legacy/techstacks/src/main/res/drawable/tab_bar_background.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/drawable/tab_bar_background.xml rename to src/legacy/techstacks/src/main/res/drawable/tab_bar_background.xml diff --git a/src/AndroidClient/techstacks/src/main/res/drawable/tab_bar_background_selected.xml b/src/legacy/techstacks/src/main/res/drawable/tab_bar_background_selected.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/drawable/tab_bar_background_selected.xml rename to src/legacy/techstacks/src/main/res/drawable/tab_bar_background_selected.xml diff --git a/src/AndroidClient/techstacks/src/main/res/layout/activity_main.xml b/src/legacy/techstacks/src/main/res/layout/activity_main.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/layout/activity_main.xml rename to src/legacy/techstacks/src/main/res/layout/activity_main.xml diff --git a/src/AndroidClient/techstacks/src/main/res/layout/activity_technology.xml b/src/legacy/techstacks/src/main/res/layout/activity_technology.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/layout/activity_technology.xml rename to src/legacy/techstacks/src/main/res/layout/activity_technology.xml diff --git a/src/AndroidClient/techstacks/src/main/res/layout/activity_techstack.xml b/src/legacy/techstacks/src/main/res/layout/activity_techstack.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/layout/activity_techstack.xml rename to src/legacy/techstacks/src/main/res/layout/activity_techstack.xml diff --git a/src/AndroidClient/techstacks/src/main/res/layout/fragment_tech_stacks.xml b/src/legacy/techstacks/src/main/res/layout/fragment_tech_stacks.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/layout/fragment_tech_stacks.xml rename to src/legacy/techstacks/src/main/res/layout/fragment_tech_stacks.xml diff --git a/src/AndroidClient/techstacks/src/main/res/layout/fragment_technologies.xml b/src/legacy/techstacks/src/main/res/layout/fragment_technologies.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/layout/fragment_technologies.xml rename to src/legacy/techstacks/src/main/res/layout/fragment_technologies.xml diff --git a/src/AndroidClient/techstacks/src/main/res/layout/fragment_top_rated.xml b/src/legacy/techstacks/src/main/res/layout/fragment_top_rated.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/layout/fragment_top_rated.xml rename to src/legacy/techstacks/src/main/res/layout/fragment_top_rated.xml diff --git a/src/AndroidClient/techstacks/src/main/res/menu/menu_main.xml b/src/legacy/techstacks/src/main/res/menu/menu_main.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/menu/menu_main.xml rename to src/legacy/techstacks/src/main/res/menu/menu_main.xml diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-hdpi/ic_launcher.png b/src/legacy/techstacks/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-hdpi/ic_launcher.png rename to src/legacy/techstacks/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-hdpi/logo_transparent.png b/src/legacy/techstacks/src/main/res/mipmap-hdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-hdpi/logo_transparent.png rename to src/legacy/techstacks/src/main/res/mipmap-hdpi/logo_transparent.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-hdpi/logo_white.png b/src/legacy/techstacks/src/main/res/mipmap-hdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-hdpi/logo_white.png rename to src/legacy/techstacks/src/main/res/mipmap-hdpi/logo_white.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-mdpi/ic_launcher.png b/src/legacy/techstacks/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-mdpi/ic_launcher.png rename to src/legacy/techstacks/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-mdpi/logo_transparent.png b/src/legacy/techstacks/src/main/res/mipmap-mdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-mdpi/logo_transparent.png rename to src/legacy/techstacks/src/main/res/mipmap-mdpi/logo_transparent.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-mdpi/logo_white.png b/src/legacy/techstacks/src/main/res/mipmap-mdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-mdpi/logo_white.png rename to src/legacy/techstacks/src/main/res/mipmap-mdpi/logo_white.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xhdpi/ic_launcher.png b/src/legacy/techstacks/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xhdpi/ic_launcher.png rename to src/legacy/techstacks/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xhdpi/logo_transparent.png b/src/legacy/techstacks/src/main/res/mipmap-xhdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xhdpi/logo_transparent.png rename to src/legacy/techstacks/src/main/res/mipmap-xhdpi/logo_transparent.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xhdpi/logo_white.png b/src/legacy/techstacks/src/main/res/mipmap-xhdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xhdpi/logo_white.png rename to src/legacy/techstacks/src/main/res/mipmap-xhdpi/logo_white.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/ic_launcher.png b/src/legacy/techstacks/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to src/legacy/techstacks/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/logo_blue.png b/src/legacy/techstacks/src/main/res/mipmap-xxhdpi/logo_blue.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/logo_blue.png rename to src/legacy/techstacks/src/main/res/mipmap-xxhdpi/logo_blue.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/logo_transparent.png b/src/legacy/techstacks/src/main/res/mipmap-xxhdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/logo_transparent.png rename to src/legacy/techstacks/src/main/res/mipmap-xxhdpi/logo_transparent.png diff --git a/src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/logo_white.png b/src/legacy/techstacks/src/main/res/mipmap-xxhdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/mipmap-xxhdpi/logo_white.png rename to src/legacy/techstacks/src/main/res/mipmap-xxhdpi/logo_white.png diff --git a/src/AndroidClient/techstacks/src/main/res/values-w820dp/dimens.xml b/src/legacy/techstacks/src/main/res/values-w820dp/dimens.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/values-w820dp/dimens.xml rename to src/legacy/techstacks/src/main/res/values-w820dp/dimens.xml diff --git a/src/AndroidClient/techstacks/src/main/res/values/colors.xml b/src/legacy/techstacks/src/main/res/values/colors.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/values/colors.xml rename to src/legacy/techstacks/src/main/res/values/colors.xml diff --git a/src/AndroidClient/techstacks/src/main/res/values/dimens.xml b/src/legacy/techstacks/src/main/res/values/dimens.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/values/dimens.xml rename to src/legacy/techstacks/src/main/res/values/dimens.xml diff --git a/src/AndroidClient/techstacks/src/main/res/values/strings.xml b/src/legacy/techstacks/src/main/res/values/strings.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/values/strings.xml rename to src/legacy/techstacks/src/main/res/values/strings.xml diff --git a/src/AndroidClient/techstacks/src/main/res/values/styles.xml b/src/legacy/techstacks/src/main/res/values/styles.xml similarity index 100% rename from src/AndroidClient/techstacks/src/main/res/values/styles.xml rename to src/legacy/techstacks/src/main/res/values/styles.xml diff --git a/src/AndroidClient/techstacks/techstacks.iml b/src/legacy/techstacks/techstacks.iml similarity index 100% rename from src/AndroidClient/techstacks/techstacks.iml rename to src/legacy/techstacks/techstacks.iml diff --git a/src/AndroidClient/techstackskotlin/.gitignore b/src/legacy/techstackskotlin/.gitignore similarity index 100% rename from src/AndroidClient/techstackskotlin/.gitignore rename to src/legacy/techstackskotlin/.gitignore diff --git a/src/AndroidClient/techstackskotlin/build.gradle b/src/legacy/techstackskotlin/build.gradle similarity index 76% rename from src/AndroidClient/techstackskotlin/build.gradle rename to src/legacy/techstackskotlin/build.gradle index 10f7bd72..84fcbf70 100644 --- a/src/AndroidClient/techstackskotlin/build.gradle +++ b/src/legacy/techstackskotlin/build.gradle @@ -2,12 +2,12 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { - compileSdkVersion 28 + compileSdk 34 defaultConfig { applicationId "test.servicestack.net.techstackskotlin" minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 34 versionCode 1 versionName "1.0" } @@ -24,16 +24,14 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - testImplementation 'junit:junit:4.12' - implementation 'com.android.support:appcompat-v7:28.0.0' - implementation 'com.android.support:design:28.0.0' + testImplementation 'junit:junit:4.13.2' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation project(':android') implementation 'com.squareup.picasso:picasso:2.5.2' - implementation 'com.google.code.gson:gson:2.8.9' + implementation 'com.google.code.gson:gson:2.11.0' } buildscript { - ext.kotlin_version = '1.6.21' + ext.kotlin_version = '1.7.10' repositories { mavenCentral() } diff --git a/src/AndroidClient/techstackskotlin/proguard-rules.pro b/src/legacy/techstackskotlin/proguard-rules.pro similarity index 100% rename from src/AndroidClient/techstackskotlin/proguard-rules.pro rename to src/legacy/techstackskotlin/proguard-rules.pro diff --git a/src/AndroidClient/techstackskotlin/src/androidTest/java/servicestack/net/techstackskotlin/ApplicationTest.kt b/src/legacy/techstackskotlin/src/androidTest/java/servicestack/net/techstackskotlin/ApplicationTest.kt similarity index 100% rename from src/AndroidClient/techstackskotlin/src/androidTest/java/servicestack/net/techstackskotlin/ApplicationTest.kt rename to src/legacy/techstackskotlin/src/androidTest/java/servicestack/net/techstackskotlin/ApplicationTest.kt diff --git a/src/AndroidClient/techstackskotlin/src/main/AndroidManifest.xml b/src/legacy/techstackskotlin/src/main/AndroidManifest.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/AndroidManifest.xml rename to src/legacy/techstackskotlin/src/main/AndroidManifest.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/App.kt b/src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/App.kt similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/App.kt rename to src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/App.kt diff --git a/src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/MainActivity.kt b/src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/MainActivity.kt similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/MainActivity.kt rename to src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/MainActivity.kt diff --git a/src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechStackActivity.kt b/src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechStackActivity.kt similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechStackActivity.kt rename to src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechStackActivity.kt diff --git a/src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechnologyActivity.kt b/src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechnologyActivity.kt similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechnologyActivity.kt rename to src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/TechnologyActivity.kt diff --git a/src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/dtos.kt b/src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/dtos.kt similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/dtos.kt rename to src/legacy/techstackskotlin/src/main/java/servicestack/net/techstackskotlin/dtos.kt diff --git a/src/AndroidClient/techstackskotlin/src/main/res/drawable-hdpi/ic_actionbar.png b/src/legacy/techstackskotlin/src/main/res/drawable-hdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/drawable-hdpi/ic_actionbar.png rename to src/legacy/techstackskotlin/src/main/res/drawable-hdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/drawable-mdpi/ic_actionbar.png b/src/legacy/techstackskotlin/src/main/res/drawable-mdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/drawable-mdpi/ic_actionbar.png rename to src/legacy/techstackskotlin/src/main/res/drawable-mdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/drawable-xhdpi/ic_actionbar.png b/src/legacy/techstackskotlin/src/main/res/drawable-xhdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/drawable-xhdpi/ic_actionbar.png rename to src/legacy/techstackskotlin/src/main/res/drawable-xhdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/drawable-xxhdpi/ic_actionbar.png b/src/legacy/techstackskotlin/src/main/res/drawable-xxhdpi/ic_actionbar.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/drawable-xxhdpi/ic_actionbar.png rename to src/legacy/techstackskotlin/src/main/res/drawable-xxhdpi/ic_actionbar.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/drawable/tab_bar_background.xml b/src/legacy/techstackskotlin/src/main/res/drawable/tab_bar_background.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/drawable/tab_bar_background.xml rename to src/legacy/techstackskotlin/src/main/res/drawable/tab_bar_background.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/drawable/tab_bar_background_selected.xml b/src/legacy/techstackskotlin/src/main/res/drawable/tab_bar_background_selected.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/drawable/tab_bar_background_selected.xml rename to src/legacy/techstackskotlin/src/main/res/drawable/tab_bar_background_selected.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/layout/activity_main.xml b/src/legacy/techstackskotlin/src/main/res/layout/activity_main.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/layout/activity_main.xml rename to src/legacy/techstackskotlin/src/main/res/layout/activity_main.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/layout/activity_technology.xml b/src/legacy/techstackskotlin/src/main/res/layout/activity_technology.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/layout/activity_technology.xml rename to src/legacy/techstackskotlin/src/main/res/layout/activity_technology.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/layout/activity_techstack.xml b/src/legacy/techstackskotlin/src/main/res/layout/activity_techstack.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/layout/activity_techstack.xml rename to src/legacy/techstackskotlin/src/main/res/layout/activity_techstack.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/layout/fragment_tech_stacks.xml b/src/legacy/techstackskotlin/src/main/res/layout/fragment_tech_stacks.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/layout/fragment_tech_stacks.xml rename to src/legacy/techstackskotlin/src/main/res/layout/fragment_tech_stacks.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/layout/fragment_technologies.xml b/src/legacy/techstackskotlin/src/main/res/layout/fragment_technologies.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/layout/fragment_technologies.xml rename to src/legacy/techstackskotlin/src/main/res/layout/fragment_technologies.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/layout/fragment_top_rated.xml b/src/legacy/techstackskotlin/src/main/res/layout/fragment_top_rated.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/layout/fragment_top_rated.xml rename to src/legacy/techstackskotlin/src/main/res/layout/fragment_top_rated.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/menu/menu_main.xml b/src/legacy/techstackskotlin/src/main/res/menu/menu_main.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/menu/menu_main.xml rename to src/legacy/techstackskotlin/src/main/res/menu/menu_main.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-hdpi/ic_launcher.png b/src/legacy/techstackskotlin/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-hdpi/ic_launcher.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-hdpi/logo_transparent.png b/src/legacy/techstackskotlin/src/main/res/mipmap-hdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-hdpi/logo_transparent.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-hdpi/logo_transparent.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-hdpi/logo_white.png b/src/legacy/techstackskotlin/src/main/res/mipmap-hdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-hdpi/logo_white.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-hdpi/logo_white.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-mdpi/ic_launcher.png b/src/legacy/techstackskotlin/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-mdpi/ic_launcher.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-mdpi/logo_transparent.png b/src/legacy/techstackskotlin/src/main/res/mipmap-mdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-mdpi/logo_transparent.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-mdpi/logo_transparent.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-mdpi/logo_white.png b/src/legacy/techstackskotlin/src/main/res/mipmap-mdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-mdpi/logo_white.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-mdpi/logo_white.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xhdpi/ic_launcher.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xhdpi/ic_launcher.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xhdpi/logo_transparent.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xhdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xhdpi/logo_transparent.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xhdpi/logo_transparent.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xhdpi/logo_white.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xhdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xhdpi/logo_white.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xhdpi/logo_white.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/ic_launcher.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_blue.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_blue.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_blue.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_blue.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_transparent.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_transparent.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_transparent.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_transparent.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_white.png b/src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_white.png similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_white.png rename to src/legacy/techstackskotlin/src/main/res/mipmap-xxhdpi/logo_white.png diff --git a/src/AndroidClient/techstackskotlin/src/main/res/values-w820dp/dimens.xml b/src/legacy/techstackskotlin/src/main/res/values-w820dp/dimens.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/values-w820dp/dimens.xml rename to src/legacy/techstackskotlin/src/main/res/values-w820dp/dimens.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/values/colors.xml b/src/legacy/techstackskotlin/src/main/res/values/colors.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/values/colors.xml rename to src/legacy/techstackskotlin/src/main/res/values/colors.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/values/dimens.xml b/src/legacy/techstackskotlin/src/main/res/values/dimens.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/values/dimens.xml rename to src/legacy/techstackskotlin/src/main/res/values/dimens.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/values/strings.xml b/src/legacy/techstackskotlin/src/main/res/values/strings.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/values/strings.xml rename to src/legacy/techstackskotlin/src/main/res/values/strings.xml diff --git a/src/AndroidClient/techstackskotlin/src/main/res/values/styles.xml b/src/legacy/techstackskotlin/src/main/res/values/styles.xml similarity index 100% rename from src/AndroidClient/techstackskotlin/src/main/res/values/styles.xml rename to src/legacy/techstackskotlin/src/main/res/values/styles.xml diff --git a/src/AndroidClient/techstackskotlin/src/test/java/servicestack/net/techstackskotlin/ExampleUnitTest.java b/src/legacy/techstackskotlin/src/test/java/servicestack/net/techstackskotlin/ExampleUnitTest.java similarity index 100% rename from src/AndroidClient/techstackskotlin/src/test/java/servicestack/net/techstackskotlin/ExampleUnitTest.java rename to src/legacy/techstackskotlin/src/test/java/servicestack/net/techstackskotlin/ExampleUnitTest.java diff --git a/src/AndroidClient/techstackskotlin/techstackskotlin.iml b/src/legacy/techstackskotlin/techstackskotlin.iml similarity index 100% rename from src/AndroidClient/techstackskotlin/techstackskotlin.iml rename to src/legacy/techstackskotlin/techstackskotlin.iml diff --git a/sync-client.sh b/sync-client.sh new file mode 100755 index 00000000..ef868d79 --- /dev/null +++ b/sync-client.sh @@ -0,0 +1,5 @@ +rm -rf ./src/AndroidClient/android/src/main/java/net/servicestack/func +cp -rf ./src/AndroidClient/client/src/main/java/net/servicestack/func ./src/AndroidClient/android/src/main/java/net/servicestack/ + +rm -rf ./src/AndroidClient/android/src/main/java/net/servicestack/client +cp -rf ./src/AndroidClient/client/src/main/java/net/servicestack/client ./src/AndroidClient/android/src/main/java/net/servicestack/ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy