diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml
new file mode 100644
index 00000000..ac397818
--- /dev/null
+++ b/.github/workflows/build-test-publish.yml
@@ -0,0 +1,58 @@
+name: Build and Publish to GitHub Packages
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Setup Java
+ uses: actions/setup-java@v2
+ with:
+ java-version: '17'
+ distribution: 'adopt'
+
+ - name: Cache Gradle packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
+ restore-keys: ${{ runner.os }}-gradle
+
+ - name: Set up permissions client
+ run: chmod +x ./src/AndroidClient/gradlew
+
+ - name: Build client
+ working-directory: ./src/AndroidClient
+ run: ./gradlew client:build
+
+ - name: Build and Publish Client
+ env:
+ USERNAME_GITHUB: ${{ github.actor }}
+ TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
+ VERSION_SUFFIX: ${{ github.run_number }}
+ working-directory: ./src/AndroidClient
+ run: ./gradlew client:publishAllPublicationsToGitHubPackagesRepository -PversionSuffix=$VERSION_SUFFIX
+
+ - name: Build android
+ working-directory: ./src/AndroidClient
+ run: ./gradlew android:build
+
+ - name: Build and Publish Android
+ env:
+ USERNAME_GITHUB: ${{ github.actor }}
+ TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
+ VERSION_SUFFIX: ${{ github.run_number }}
+ working-directory: ./src/AndroidClient
+ run: ./gradlew android:publishAllPublicationsToGitHubPackagesRepository -PversionSuffix=$VERSION_SUFFIX
+
+# env:
+# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+# OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
diff --git a/.github/workflows/publish-android-maven-central.yml b/.github/workflows/publish-android-maven-central.yml
new file mode 100644
index 00000000..6c159161
--- /dev/null
+++ b/.github/workflows/publish-android-maven-central.yml
@@ -0,0 +1,43 @@
+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:
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Setup Java
+ uses: actions/setup-java@v2
+ with:
+ java-version: '21'
+ distribution: 'adopt'
+
+ - name: Cache Gradle packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
+ restore-keys: ${{ runner.os }}-gradle
+
+ - name: Set up permissions client
+ run: chmod +x ./src/AndroidClient/gradlew
+
+ - name: Build android
+ working-directory: ./src/AndroidClient
+ run: ./gradlew android:build
+
+ - name: Publish to Maven Central
+ env:
+ OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
+ SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
+ SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
+ working-directory: ./src/AndroidClient
+ run: ./gradlew android:publishAllPublicationsToOSSRHRepository
diff --git a/.github/workflows/publish-client-maven-central.yml b/.github/workflows/publish-client-maven-central.yml
new file mode 100644
index 00000000..3c6a535c
--- /dev/null
+++ b/.github/workflows/publish-client-maven-central.yml
@@ -0,0 +1,43 @@
+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:
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Setup Java
+ uses: actions/setup-java@v2
+ with:
+ java-version: '21'
+ distribution: 'adopt'
+
+ - name: Cache Gradle packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
+ restore-keys: ${{ runner.os }}-gradle
+
+ - name: Set up permissions client
+ run: chmod +x ./src/AndroidClient/gradlew
+
+ - name: Build client
+ working-directory: ./src/AndroidClient
+ run: ./gradlew client:build
+
+ - name: Publish to Maven Central
+ env:
+ OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
+ SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
+ SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
+ working-directory: ./src/AndroidClient
+ run: ./gradlew client:publishAllPublicationsToOSSRHRepository
diff --git a/.gitignore b/.gitignore
index b57d78b4..466d0cad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+vars.json
+
# Built application files
*.apk
*.ap_
@@ -43,3 +45,6 @@ src/ServiceStackEclipse/**/target
src/ServiceStackEclipse/**/.settings
src/AndroidClient/client/pom.xml
+.idea/
+src/AndroidClient/.idea/**/*
+
diff --git a/.idea/ServiceStack.Java.iml b/.idea/ServiceStack.Java.iml
index c2ece305..ac9e42a7 100644
--- a/.idea/ServiceStack.Java.iml
+++ b/.idea/ServiceStack.Java.iml
@@ -18,6 +18,7 @@
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 3827ace3..56bd7692 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,45 @@ 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:
+
+```java
+const client = new JsonServiceClient(baseUrl);
+client.setBasePath();
+```
+
## Install
### [Install ServiceStack IDEA Plugin on Android Studio and IntelliJ](https://github.com/ServiceStack/ServiceStack/wiki/Java-Add-ServiceStack-Reference#servicestack-idea-android-studio-plugin)
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/caches/build_file_checksums.ser b/src/AndroidClient/.idea/caches/build_file_checksums.ser
deleted file mode 100644
index 5d7fb51d..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 681f41ae..00000000
--- a/src/AndroidClient/.idea/codeStyles/Project.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- xmlns:android
-
- ^$
-
-
-
-
-
-
-
-
- xmlns:.*
-
- ^$
-
-
- BY_NAME
-
-
-
-
-
-
- .*:id
-
- http://schemas.android.com/apk/res/android
-
-
-
-
-
-
-
-
- .*:name
-
- http://schemas.android.com/apk/res/android
-
-
-
-
-
-
-
-
- name
-
- ^$
-
-
-
-
-
-
-
-
- style
-
- ^$
-
-
-
-
-
-
-
-
- .*
-
- ^$
-
-
- BY_NAME
-
-
-
-
-
-
- .*
-
- http://schemas.android.com/apk/res/android
-
-
- ANDROID_ATTRIBUTE_ORDER
-
-
-
-
-
-
- .*
-
- .*
-
-
- BY_NAME
-
-
-
-
-
-
-
\ 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 4e5f2d1e..00000000
--- a/src/AndroidClient/.idea/gradle.xml
+++ /dev/null
@@ -1,27 +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 b0c7b20c..00000000
--- a/src/AndroidClient/.idea/misc.xml
+++ /dev/null
@@ -1,38 +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 61f53ccf..00000000
--- a/src/AndroidClient/.idea/modules.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/AndroidClient/.idea/runConfigurations.xml b/src/AndroidClient/.idea/runConfigurations.xml
deleted file mode 100644
index 7f68460d..00000000
--- a/src/AndroidClient/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/AndroidClient/AndroidClient.iml b/src/AndroidClient/AndroidClient.iml
index fa760751..ce2b513e 100644
--- a/src/AndroidClient/AndroidClient.iml
+++ b/src/AndroidClient/AndroidClient.iml
@@ -1,19 +1,12 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
\ No newline at end of file
diff --git a/src/AndroidClient/android/android.iml b/src/AndroidClient/android/android.iml
deleted file mode 100644
index b513b716..00000000
--- a/src/AndroidClient/android/android.iml
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- generateDebugSources
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/AndroidClient/android/build.gradle b/src/AndroidClient/android/build.gradle
index 349aba14..2c37cd87 100644
--- a/src/AndroidClient/android/build.gradle
+++ b/src/AndroidClient/android/build.gradle
@@ -1,28 +1,40 @@
+// Apply necessary plugins
apply plugin: 'com.android.library'
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
+apply plugin: 'maven-publish'
+apply plugin: 'signing'
-version = "1.0.43"
+// Define the version and group for the Maven package
+version = "1.1.5"
+group = "net.servicestack"
+if (project.hasProperty('versionSuffix')) {
+ version = "${version}-${versionSuffix}"
+}
+
+
+// Specify dependencies
dependencies {
- implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
- implementation 'com.squareup.okhttp3:okhttp:3.12.1'
+ 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.12'
+ 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'
}
+// Android specific configurations
android {
- compileSdkVersion 29
- buildToolsVersion '29.0.2'
+ namespace "net.servicestack.android"
+ compileSdk 34
+
+ lintOptions {
+ abortOnError false
+ }
defaultConfig {
minSdkVersion 15
- targetSdkVersion 29
- versionCode 1
- versionName version
+ targetSdkVersion 34
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
@@ -37,74 +49,82 @@ android {
}
}
-Properties properties = System.properties;
-if(properties.getProperty("bintray.user", null) == null) {
- properties.load(project.file('./local.properties').newDataInputStream())
-}
+// Configure the publishing block for Maven Central deployment
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ artifact("$buildDir/outputs/aar/${project.name}-release.aar")
-def siteUrl = 'https://github.com/ServiceStack/ServiceStack.Java' // Homepage URL of the library
-def gitUrl = 'https://github.com/ServiceStack/ServiceStack.Java.git' // Git repository URL
-group = "net.servicestack" // Maven Group ID for the artifact
-
-bintray {
- user = properties.getProperty("bintray.user")
- key = properties.getProperty("bintray.apiKey")
-
- configurations = ['archives']
- pkg {
- repo = "maven"
- name = "ServiceStack.Android"
- websiteUrl = siteUrl
- vcsUrl = gitUrl
- licenses = ["BSD 3-Clause"]
- publish = properties.getProperty('bintray.publish') == 'true'
- userOrg = 'servicestack'
- }
-}
-
-install {
- repositories.mavenInstaller {
- // This generates POM.xml with proper parameters
- pom {
- project {
- packaging 'aar'
+ groupId = group
+ artifactId = 'android'
+ version = version
- // Add your description here
- name 'ServiceStack.Android'
- description 'A client library to call your ServiceStack webservices for Android clients.'
- url siteUrl
+ pom {
+ name = 'ServiceStack.Android'
+ description = 'A client library to call your ServiceStack webservices for Android clients.'
+ url = 'https://github.com/ServiceStack/ServiceStack.Java'
- // Set your license
licenses {
license {
- name 'The BSD 3-Clause License'
- url 'https://servicestack.net/bsd-license.txt'
+ name = 'The BSD 3-Clause License'
+ url = 'https://servicestack.net/bsd-license.txt'
}
}
developers {
developer {
- id 'mythz'
- name 'Demis Bellot'
- email 'team@servicestack.net'
+ id = 'mythz'
+ name = 'Demis Bellot'
+ email = 'team@servicestack.net'
}
developer {
- id 'layoric'
- name 'Darren Reid'
- email 'team@servicestack.net'
+ id = 'layoric'
+ name = 'Darren Reid'
+ email = 'team@servicestack.net'
}
}
- scm {
- connection 'https://github.com/ServiceStack/ServiceStack.Java'
- developerConnection 'https://github.com/ServiceStack/ServiceStack.Java'
- url 'https://github.com/ServiceStack/ServiceStack.Java'
+ scm {
+ connection = 'https://github.com/ServiceStack/ServiceStack.Java.git'
+ developerConnection = 'https://github.com/ServiceStack/ServiceStack.Java.git'
+ url = 'https://github.com/ServiceStack/ServiceStack.Java'
}
}
}
}
-}
-repositories {
- mavenCentral()
+ repositories {
+ maven {
+ name = 'OSSRH'
+ url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
+ credentials {
+ username = project.findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
+ password = project.findProperty("ossrhPassword") ?: System.getenv("OSSRH_TOKEN")
+ }
+ }
+ maven {
+ name = 'GitHubPackages'
+ url = uri("https://maven.pkg.github.com/ServiceStack/ServiceStack.Java")
+
+ credentials {
+ username = project.findProperty("gpr.user") ?: System.getenv("USERNAME_GITHUB")
+ password = project.findProperty("gpr.token") ?: System.getenv("TOKEN_GITHUB")
+ }
+ }
+ }
}
+
+// Check if the environment variables are set
+def signingKey = System.getenv('SIGNING_KEY')
+def signingPassword = System.getenv('SIGNING_PASSWORD')
+
+// Conditionally apply the signing plugin and configuration
+if (signingKey && signingPassword) {
+ println "Signing enabled"
+ signing {
+ useInMemoryPgpKeys(signingKey, signingPassword)
+ sign publishing.publications.mavenJava
+ }
+} else {
+ println "Signing disabled"
+}
\ No newline at end of file
diff --git a/src/AndroidClient/android/src/androidTest/java/chat/chatdtos.java b/src/AndroidClient/android/src/androidTest/java/chat/chatdtos.java
deleted file mode 100644
index 1189595a..00000000
--- a/src/AndroidClient/android/src/androidTest/java/chat/chatdtos.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/* Options:
-Date: 2017-02-12 03:54:05
-Version: 4.00
-Tip: To override a DTO option, remove "//" prefix before updating
-BaseUrl: http://chat.servicestack.net
-
-Package: chat
-GlobalNamespace: chatdtos
-//AddPropertyAccessors: True
-//SettersReturnThis: True
-//AddServiceStackTypes: True
-//AddResponseStatus: False
-//AddDescriptionAsComments: True
-//AddImplicitVersion:
-//IncludeTypes:
-ExcludeTypes: Authenticate,AuthenticateResponse,AssignRoles,AssignRolesResponse,UnAssignRoles,UnAssignRolesResponse
-//TreatTypesAsStrings:
-//DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.*
-*/
-
-package chat;
-
-import java.math.*;
-import java.util.*;
-import net.servicestack.client.*;
-import com.google.gson.annotations.*;
-import com.google.gson.reflect.*;
-
-public class chatdtos
-{
-
- @Route("/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("/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("/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("/reset")
- public static class ClearChatHistory implements IReturnVoid
- {
-
- }
-
- @Route("/reset-serverevents")
- public static class ResetServerEvents implements IReturnVoid
- {
-
- }
-
- @Route("/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("/account")
- public static class GetUserDetails implements IReturn
- {
-
- private static Object responseType = GetUserDetailsResponse.class;
- public Object getResponseType() { return responseType; }
- }
-
- 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 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; }
- }
-
-}
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/AndroidServiceClientTests.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/AndroidServiceClientTests.java
index 7c84fc3a..5c45597b 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/AndroidServiceClientTests.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/AndroidServiceClientTests.java
@@ -13,7 +13,7 @@ public AndroidServiceClientTests() {
Log.Instance = new AndroidLogProvider("ZZZ");
}
- AndroidServiceClient client = new AndroidServiceClient("https://www.techstacks.io");
+ AndroidServiceClient client = new AndroidServiceClient("https://techstacks.io");
@Test
public void test(){
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ApplicationTest.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ApplicationTest.java
index 70331d83..2d1b0725 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ApplicationTest.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ApplicationTest.java
@@ -26,7 +26,7 @@
@RunWith(AndroidJUnit4.class)
public class ApplicationTest {
- AndroidServiceClient client = new AndroidServiceClient("http://techstacks.io");
+ AndroidServiceClient client = new AndroidServiceClient("https://techstacks.io");
@Test
public void test_Can_download_image_bytes(){
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ServerEventClientTests.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ServerEventClientTests.java
index 952788dd..d7978be3 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ServerEventClientTests.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/ServerEventClientTests.java
@@ -2,32 +2,18 @@
import android.os.Build;
import android.support.test.runner.AndroidJUnit4;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertNotNull;
-import static junit.framework.Assert.assertTrue;
+import junit.framework.TestCase;
+import static net.servicestack.android.test.dtos.*;
import static org.junit.Assert.assertArrayEquals;
import net.servicestack.client.JsonUtils;
import net.servicestack.client.Log;
-import net.servicestack.client.Utils;
-import net.servicestack.client.sse.ExceptionCallback;
-import net.servicestack.client.sse.GetEventSubscribers;
-import net.servicestack.client.sse.ServerEventCallback;
-import net.servicestack.client.sse.ServerEventConnect;
-import net.servicestack.client.sse.ServerEventConnectCallback;
-import net.servicestack.client.sse.ServerEventJoin;
-import net.servicestack.client.sse.ServerEventLeave;
-import net.servicestack.client.sse.ServerEventMessage;
-import net.servicestack.client.sse.ServerEventMessageCallback;
-import net.servicestack.client.sse.ServerEventUser;
-import net.servicestack.client.sse.ServerEventsClient;
-import net.servicestack.client.sse.SingletonInstanceResolver;
+import net.servicestack.client.sse.*;
import net.servicestack.func.Action;
import net.servicestack.func.Func;
import net.servicestack.func.Predicate;
+import org.junit.Test;
+import org.junit.runner.RunWith;
import java.util.ArrayList;
import java.util.HashMap;
@@ -35,13 +21,6 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
-import static chat.chatdtos.ChatMessage;
-import static chat.chatdtos.CustomType;
-import static chat.chatdtos.PostChatToChannel;
-import static chat.chatdtos.PostObjectToChannel;
-import static chat.chatdtos.PostRawToChannel;
-import static chat.chatdtos.ResetServerEvents;
-import static chat.chatdtos.SetterType;
/**
* Created by mythz on 2/10/2017.
@@ -49,7 +28,7 @@
@android.support.annotation.RequiresApi(api = Build.VERSION_CODES.KITKAT)
@RunWith(AndroidJUnit4.class)
-public class ServerEventClientTests {
+public class ServerEventClientTests extends TestCase {
public ServerEventClientTests() {
Log.setInstance(new AndroidLogProvider("ZZZ", true));
@@ -65,7 +44,7 @@ public ServerEventsClient createServerEventsClient(String baseUrl, String... cha
public void Can_connect_to_ServerEventsStream() throws Exception {
final CountDownLatch signal = new CountDownLatch(1);
- try (ServerEventsClient client = createServerEventsClient("http://chat.servicestack.net", "home")
+ try (ServerEventsClient client = createServerEventsClient("https://chat.netcore.io", "home")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -82,13 +61,13 @@ public void execute(ServerEventConnect e) {
public void Does_fire_onJoin_events() throws Exception {
final CountDownLatch signal = new CountDownLatch(1);
- try(ServerEventsClient client = createServerEventsClient("http://chat.servicestack.net", "home"))
+ try(ServerEventsClient client = createServerEventsClient("https://chat.netcore.io", "home"))
{
client
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
- assertTrue(e.getHeartbeatUrl().startsWith("http://chat.servicestack.net"));
+ assertTrue(e.getHeartbeatUrl().startsWith("https://chat.netcore.io"));
}
})
.setOnCommand(new ServerEventMessageCallback() {
@@ -114,7 +93,7 @@ public void Does_fire_onJoin_events_for_multiple_Channels() throws Exception {
final String[] channels = new String[] { "A", "B", "C" };
final List joinMsgs = new ArrayList<>();
- try (ServerEventsClient client = createServerEventsClient("http://chat.servicestack.net", channels))
+ try (ServerEventsClient client = createServerEventsClient("https://chat.netcore.io", channels))
{
client
.setOnCommand(new ServerEventMessageCallback() {
@@ -143,7 +122,7 @@ public void execute(ServerEventMessage e) {
private void clearPreviousRun(String[] channels) throws Exception {
final CountDownLatch signal = new CountDownLatch(1);
- try (ServerEventsClient client = createServerEventsClient("http://chat.servicestack.net", channels)
+ try (ServerEventsClient client = createServerEventsClient("https://chat.netcore.io", channels)
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -170,7 +149,7 @@ public void Does_fire_all_callbacks() throws Exception {
final List commands = new ArrayList<>();
final List errors = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -213,7 +192,7 @@ public void execute(Exception e) {
connectMsgs.clear();
commands.clear();
- try(ServerEventsClient client2 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client2 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -297,7 +276,7 @@ public void Does_receive_messages() throws Exception {
final List msgs2 = new ArrayList<>();
try (
- ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -317,7 +296,7 @@ public void execute(ServerEventMessage e) {
}
});
- ServerEventsClient client2 = createServerEventsClient("http://chat.servicestack.net")
+ ServerEventsClient client2 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -399,7 +378,7 @@ public void Does_send_multiple_heartbeats() throws Exception {
final CountDownLatch signal = new CountDownLatch(1);
final List heartbeats = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -427,7 +406,7 @@ public void Does_reconnect_on_lost_connection() throws Exception {
final List connectMsgs = new ArrayList<>();
final List msgs1 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -454,7 +433,7 @@ public void execute(ServerEventMessage e) {
client1.getServiceClient().post(new ResetServerEvents());
- try(ServerEventsClient client2 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client2 = createServerEventsClient("https://chat.netcore.io")
.setOnConnect(new ServerEventConnectCallback() {
@Override
public void execute(ServerEventConnect e) {
@@ -487,7 +466,7 @@ public void Does_send_message_to_Handler() throws Exception {
final List chatMsgs = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.registerHandler("chat", new ServerEventCallback() {
@Override
public void execute(ServerEventsClient client, ServerEventMessage e) {
@@ -522,7 +501,7 @@ public void execute(ServerEventsClient client, ServerEventMessage e) {
public void Does_send_message_to_named_receiver() throws Exception {
final List msgs1 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.registerNamedReceiver("test", TestNamedReceiver.class)
.setOnMessage(new ServerEventMessageCallback() {
@Override
@@ -592,7 +571,7 @@ public void execute(ServerEventMessage e) {
public void Does_send_message_to_global_receiver() throws Exception {
final List msgs1 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.registerReceiver(TestGlobalReceiver.class)
.setOnMessage(new ServerEventMessageCallback() {
@Override
@@ -622,7 +601,7 @@ public void execute(ServerEventMessage e) {
public void Does_set_properties_on_global_receiver() throws Exception {
final List msgs1 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.registerReceiver(TestGlobalReceiver.class)
.setOnMessage(new ServerEventMessageCallback() {
@Override
@@ -652,7 +631,7 @@ public void execute(ServerEventMessage e) {
public void Does_send_raw_string_messages() throws Exception {
final List msgs1 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.registerReceiver(TestJavaScriptReceiver.class)
.registerNamedReceiver("css", TestJavaScriptReceiver.class)
.setOnMessage(new ServerEventMessageCallback() {
@@ -717,7 +696,7 @@ public void execute(ServerEventMessage e) {
public void Can_reuse_same_instance() throws Exception {
final List msgs1 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.registerReceiver(TestJavaScriptReceiver.class)
.registerNamedReceiver("css", TestJavaScriptReceiver.class)
.setResolver(new SingletonInstanceResolver())
@@ -761,7 +740,7 @@ public void Does_receive_messages_on_to_clients_subscribed_on_multiple_channels(
final List msgsABC = new ArrayList<>();
final List msgsABCD = new ArrayList<>();
- try(ServerEventsClient clientA = createServerEventsClient("http://chat.servicestack.net", "A")
+ try(ServerEventsClient clientA = createServerEventsClient("https://chat.netcore.io", "A")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -769,7 +748,7 @@ public void execute(ServerEventMessage e) {
}
})
.start();
- ServerEventsClient clientAB = createServerEventsClient("http://chat.servicestack.net", "A", "B")
+ ServerEventsClient clientAB = createServerEventsClient("https://chat.netcore.io", "A", "B")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -777,7 +756,7 @@ public void execute(ServerEventMessage e) {
}
})
.start();
- ServerEventsClient clientABC = createServerEventsClient("http://chat.servicestack.net", "A", "B", "C")
+ ServerEventsClient clientABC = createServerEventsClient("https://chat.netcore.io", "A", "B", "C")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -785,7 +764,7 @@ public void execute(ServerEventMessage e) {
}
})
.start();
- ServerEventsClient clientABCD = createServerEventsClient("http://chat.servicestack.net", "A", "B", "C", "D")
+ ServerEventsClient clientABCD = createServerEventsClient("https://chat.netcore.io", "A", "B", "C", "D")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -843,7 +822,7 @@ public void Does_receive_all_join_and_leave_messages() throws Exception {
final List leaveB = new ArrayList<>();
final List leaveAB = new ArrayList<>();
- try(ServerEventsClient clientA = createServerEventsClient("http://chat.servicestack.net", "A")
+ try(ServerEventsClient clientA = createServerEventsClient("https://chat.netcore.io", "A")
.setOnCommand(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -854,7 +833,7 @@ public void execute(ServerEventMessage e) {
}
}
});
- ServerEventsClient clientB = createServerEventsClient("http://chat.servicestack.net", "B")
+ ServerEventsClient clientB = createServerEventsClient("https://chat.netcore.io", "B")
.setOnCommand(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -865,7 +844,7 @@ public void execute(ServerEventMessage e) {
}
}
});
- ServerEventsClient clientAB = createServerEventsClient("http://chat.servicestack.net", "A", "B")
+ ServerEventsClient clientAB = createServerEventsClient("https://chat.netcore.io", "A", "B")
.setOnCommand(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -935,7 +914,7 @@ public void MultiChannel_Does_receive_all_join_and_leave_messages() throws Excep
final List leaveB = new ArrayList<>();
final List leaveAB = new ArrayList<>();
- try(ServerEventsClient clientAB = createServerEventsClient("http://chat.servicestack.net", "A", "B")
+ try(ServerEventsClient clientAB = createServerEventsClient("https://chat.netcore.io", "A", "B")
.setOnCommand(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -946,7 +925,7 @@ public void execute(ServerEventMessage e) {
}
}
});
- ServerEventsClient clientA = createServerEventsClient("http://chat.servicestack.net", "A")
+ ServerEventsClient clientA = createServerEventsClient("https://chat.netcore.io", "A")
.setOnCommand(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -957,7 +936,7 @@ public void execute(ServerEventMessage e) {
}
}
});
- ServerEventsClient clientB = createServerEventsClient("http://chat.servicestack.net", "B")
+ ServerEventsClient clientB = createServerEventsClient("https://chat.netcore.io", "B")
.setOnCommand(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -997,7 +976,7 @@ public void Can_subscribe_to_channels_whilst_connected() throws Exception {
final List msgs1 = new ArrayList<>();
final List msgs2 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net", "A")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io", "A")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -1005,7 +984,7 @@ public void execute(ServerEventMessage e) {
}
})
.start();
- ServerEventsClient client2 = createServerEventsClient("http://chat.servicestack.net", "B")
+ ServerEventsClient client2 = createServerEventsClient("https://chat.netcore.io", "B")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -1060,7 +1039,7 @@ public void Can_unsubscribe_from_channels_whilst_connected() throws Exception {
final List msgs1 = new ArrayList<>();
final List msgs2 = new ArrayList<>();
- try(ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net", "A","B","C")
+ try(ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io", "A","B","C")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -1069,7 +1048,7 @@ public void execute(ServerEventMessage e) {
})
.start()
.waitTillConnected();
- ServerEventsClient client2 = createServerEventsClient("http://chat.servicestack.net", "B","C")
+ ServerEventsClient client2 = createServerEventsClient("https://chat.netcore.io", "B","C")
.setOnMessage(new ServerEventMessageCallback() {
@Override
public void execute(ServerEventMessage e) {
@@ -1130,7 +1109,7 @@ public void apply(ServerEventMessage e) {
}
};
- try (ServerEventsClient client1 = createServerEventsClient("http://chat.servicestack.net")
+ try (ServerEventsClient client1 = createServerEventsClient("https://chat.netcore.io")
.addListener("customEvent", handler)
.addListener("customEvent", new Action() {
@Override
@@ -1140,7 +1119,7 @@ public void apply(ServerEventMessage e) {
})
.start()
.waitTillConnected();
- ServerEventsClient client2 = createServerEventsClient("http://chat.servicestack.net")
+ ServerEventsClient client2 = createServerEventsClient("https://chat.netcore.io")
.start()
.waitTillConnected()) {
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestGlobalReceiver.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestGlobalReceiver.java
index 19fe2d88..26796172 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestGlobalReceiver.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestGlobalReceiver.java
@@ -1,11 +1,10 @@
package net.servicestack.android;
+import static net.servicestack.android.test.dtos.*;
import net.servicestack.client.JsonUtils;
import net.servicestack.client.sse.ServerEventMessage;
import net.servicestack.client.sse.ServerEventReceiver;
-import static chat.chatdtos.*;
-
/**
* Created by mythz on 2/12/2017.
*/
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestJavaScriptReceiver.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestJavaScriptReceiver.java
index 643f7ceb..85f239ea 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestJavaScriptReceiver.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestJavaScriptReceiver.java
@@ -1,12 +1,9 @@
package net.servicestack.android;
+import static net.servicestack.android.test.dtos.*;
import net.servicestack.client.sse.ServerEventMessage;
import net.servicestack.client.sse.ServerEventReceiver;
-import chat.chatdtos;
-
-import static chat.chatdtos.*;
-
/**
* Created by mythz on 2/12/2017.
*/
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestNamedReceiver.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestNamedReceiver.java
index 984cf1c0..e2074d9e 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestNamedReceiver.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/TestNamedReceiver.java
@@ -1,10 +1,10 @@
package net.servicestack.android;
+import static net.servicestack.android.test.dtos.*;
import net.servicestack.client.JsonUtils;
import net.servicestack.client.sse.ServerEventMessage;
import net.servicestack.client.sse.ServerEventReceiver;
-import static chat.chatdtos.*;
/**
* Created by mythz on 2/11/2017.
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/techstacks/TechStacksServiceTests.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTests.java
index 17b2a2cf..0a067992 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTests.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTests.java
@@ -38,7 +38,7 @@ public TechStacksServiceTests() {
}
- JsonServiceClient client = new JsonServiceClient("https://www.techstacks.io");
+ JsonServiceClient client = new JsonServiceClient("https://techstacks.io");
@Test
public void test_Can_GET_TechStacks_Overview(){
@@ -65,7 +65,7 @@ public void test_Can_GET_TechStacks_Overview_with_relative_url() {
@Test
public void test_Can_GET_TechStacks_Overview_with_absolute_url() {
- OverviewResponse response = client.get("https://www.techstacks.io/overview", OverviewResponse.class);
+ OverviewResponse response = client.get("https://techstacks.io/overview", OverviewResponse.class);
assertOverviewResponse(response);
}
@@ -150,7 +150,7 @@ public void test_Can_deserialize_Full_Option() {
@Test
public void test_does_handle_auth_failure() {
- JsonServiceClient techStacksClient = new JsonServiceClient("http://techstacks.io/");
+ JsonServiceClient techStacksClient = new JsonServiceClient("https://techstacks.io/");
int errorCode = 0;
try {
LockTechStack request = new LockTechStack();
@@ -197,16 +197,16 @@ public void test_Can_deserialize_Overview() throws IOException {
assertEquals("TechStacks Website", techstacks.getName());
assertEquals("ServiceStack", techstacks.getVendorName());
assertTrue(techstacks.description.startsWith("This Website! "));
- assertEquals("http://techstacks.io", techstacks.getAppUrl());
+ assertEquals("https://techstacks.io", techstacks.getAppUrl());
assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/screenshots/techstacks.png", techstacks.getScreenshotUrl());
- assertEquals(Utils.parseDate("2015-01-01T17:33:58.9892560"), techstacks.getCreated());
+ assertEquals(Utils.fromDateTime("2015-01-01T17:33:58.9892560"), techstacks.getCreated());
assertEquals("layoric", techstacks.getCreatedBy());
- assertEquals(Utils.parseDate("2015-01-12T23:34:12.4516410"), techstacks.getLastModified());
+ assertEquals(Utils.fromDateTime("2015-01-12T23:34:12.4516410"), techstacks.getLastModified());
assertEquals("layoric", techstacks.getLastModifiedBy());
assertTrue(techstacks.getIsLocked());
assertEquals("2", techstacks.getOwnerId());
assertEquals("techstacks-website", techstacks.getSlug());
- assertEquals(Utils.parseDate("2015-01-12T23:34:12.4516410"), techstacks.getLastStatusUpdate());
+ assertEquals(Utils.fromDateTime("2015-01-12T23:34:12.4516410"), techstacks.getLastStatusUpdate());
ArrayList techstackChoices = techstacks.getTechnologyChoices();
assertEquals(10, techstackChoices.size());
@@ -219,9 +219,9 @@ public void test_Can_deserialize_Overview() throws IOException {
assertEquals("https://servicestack.net", techChoice.getVendorUrl());
assertEquals("https://servicestack.net", techChoice.getProductUrl());
assertEquals("https://raw.githubusercontent.com/ServiceStack/Assets/master/img/livedemos/techstacks/servicestack-logo.png", techChoice.getLogoUrl());
- assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.getCreated());
+ assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.getCreated());
assertEquals("demisbellot", techChoice.getCreatedBy());
- assertEquals(Utils.parseDate("2014-12-28T08:49:20.9542550"), techChoice.getLastModified());
+ assertEquals(Utils.fromDateTime("2014-12-28T08:49:20.9542550"), techChoice.getLastModified());
assertEquals("demisbellot", techChoice.getLastModifiedBy());
assertEquals("1", techChoice.getOwnerId());
assertEquals("servicestack", techChoice.getSlug());
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTestsAsync.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTestsAsync.java
index cfe171bf..322b7eb2 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTestsAsync.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/TechStacksServiceTestsAsync.java
@@ -33,7 +33,7 @@ public TechStacksServiceTestsAsync() {
Log.Instance = new AndroidLogProvider("ZZZ");
}
- AndroidServiceClient client = new AndroidServiceClient("https://www.techstacks.io");
+ AndroidServiceClient client = new AndroidServiceClient("https://techstacks.io");
@Test
public void test_Can_GET_TechStacks_Overview() throws InterruptedException {
@@ -98,7 +98,7 @@ public void complete() {
public void test_Can_GET_TechStacks_Overview_with_absolute_url_Async() throws InterruptedException {
final CountDownLatch signal = new CountDownLatch(1);
- client.getAsync("http://techstacks.io/overview", OverviewResponse.class, new AsyncResult() {
+ client.getAsync("https://techstacks.io/overview", OverviewResponse.class, new AsyncResult() {
@Override
public void success(OverviewResponse response) {
assertOverviewResponse(response);
diff --git a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/dtos.java b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/dtos.java
index 94b85120..35bccedf 100644
--- a/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/dtos.java
+++ b/src/AndroidClient/android/src/androidTest/java/net/servicestack/android/techstacks/dtos.java
@@ -1,8 +1,8 @@
/* Options:
-Date: 2018-10-17 14:36:01
-Version: 5.10
+Date: 2021-03-01 09:48:32
+Version: 5.105
Tip: To override a DTO option, remove "//" prefix before updating
-BaseUrl: https://www.techstacks.io
+BaseUrl: https://techstacks.io
Package: net.servicestack.android.techstacks
//GlobalNamespace: dtos
@@ -11,31 +11,20 @@
//AddServiceStackTypes: True
//AddResponseStatus: False
//AddDescriptionAsComments: True
-//AddImplicitVersion:
-//IncludeTypes:
-//ExcludeTypes:
-//TreatTypesAsStrings:
+//AddImplicitVersion:
+//IncludeTypes:
+//ExcludeTypes:
+//TreatTypesAsStrings:
//DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.*
*/
package net.servicestack.android.techstacks;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.reflect.TypeToken;
-
-import net.servicestack.client.AutoQueryViewer;
-import net.servicestack.client.DataContract;
-import net.servicestack.client.DataMember;
-import net.servicestack.client.IPost;
-import net.servicestack.client.IReturn;
-import net.servicestack.client.IReturnVoid;
-import net.servicestack.client.ResponseStatus;
-import net.servicestack.client.Route;
-import net.servicestack.client.StringLength;
-
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
+import java.math.*;
+import java.util.*;
+import net.servicestack.client.*;
+import com.google.gson.annotations.*;
+import com.google.gson.reflect.*;
public class dtos
{
@@ -43,22 +32,22 @@ public class dtos
@Route("/ping")
public static class Ping
{
-
+
}
public static class DummyTypes
{
public ArrayList post = null;
-
+
public ArrayList getPost() { return post; }
public DummyTypes setPost(ArrayList value) { this.post = value; return this; }
}
@Route(Path="/orgs/{Id}", Verbs="GET")
- public static class GetOrganization implements IReturn
+ public static class GetOrganization implements IReturn, IGet
{
public Integer id = null;
-
+
public Integer getId() { return id; }
public GetOrganization setId(Integer value) { this.id = value; return this; }
private static Object responseType = GetOrganizationResponse.class;
@@ -66,10 +55,10 @@ public static class GetOrganization implements IReturn
}
@Route(Path="/organizations/{Slug}", Verbs="GET")
- public static class GetOrganizationBySlug implements IReturn
+ public static class GetOrganizationBySlug implements IReturn, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetOrganizationBySlug setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetOrganizationResponse.class;
@@ -77,10 +66,10 @@ public static class GetOrganizationBySlug implements IReturn
+ public static class GetOrganizationMembers implements IReturn, IGet
{
public Integer id = null;
-
+
public Integer getId() { return id; }
public GetOrganizationMembers setId(Integer value) { this.id = value; return this; }
private static Object responseType = GetOrganizationMembersResponse.class;
@@ -88,10 +77,10 @@ public static class GetOrganizationMembers implements IReturn
+ public static class GetOrganizationAdmin implements IReturn, IGet
{
public Integer id = null;
-
+
public Integer getId() { return id; }
public GetOrganizationAdmin setId(Integer value) { this.id = value; return this; }
private static Object responseType = GetOrganizationAdminResponse.class;
@@ -99,11 +88,11 @@ public static class GetOrganizationAdmin implements IReturn
+ public static class CreateOrganizationForTechnology implements IReturn, IPost
{
public Long technologyId = null;
public Long techStackId = null;
-
+
public Long getTechnologyId() { return technologyId; }
public CreateOrganizationForTechnology setTechnologyId(Long value) { this.technologyId = value; return this; }
public Long getTechStackId() { return techStackId; }
@@ -113,7 +102,7 @@ public static class CreateOrganizationForTechnology implements IReturn
+ public static class CreateOrganization implements IReturn, IPost
{
public String name = null;
public String slug = null;
@@ -121,7 +110,7 @@ public static class CreateOrganization implements IReturn
+ public static class UpdateOrganization implements IReturn, IPut
{
public Integer id = null;
public String slug = null;
@@ -160,7 +149,7 @@ public static class UpdateOrganization implements IReturn postTypes = null;
public ArrayList moderatorPostTypes = null;
public ArrayList technologyIds = null;
-
+
public Integer getId() { return id; }
public UpdateOrganization setId(Integer value) { this.id = value; return this; }
public String getSlug() { return slug; }
@@ -204,21 +193,21 @@ public static class UpdateOrganization implements IReturn
+ public static class AddOrganizationLabel implements IReturn, IPost
{
public Integer organizationId = null;
public String slug = null;
public String description = null;
public String color = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public AddOrganizationLabel setOrganizationId(Integer value) { this.organizationId = value; return this; }
public String getSlug() { return slug; }
@@ -248,13 +237,13 @@ public static class AddOrganizationLabel implements IReturn
+ public static class UpdateOrganizationLabel implements IReturn, IPut
{
public Integer organizationId = null;
public String slug = null;
public String description = null;
public String color = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public UpdateOrganizationLabel setOrganizationId(Integer value) { this.organizationId = value; return this; }
public String getSlug() { return slug; }
@@ -268,11 +257,11 @@ public static class UpdateOrganizationLabel implements IReturn
+ public static class AddOrganizationCategory implements IReturn, IPost
{
public Integer organizationId = null;
public String slug = null;
public String name = null;
public String description = null;
public ArrayList technologyIds = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public AddOrganizationCategory setOrganizationId(Integer value) { this.organizationId = value; return this; }
public String getSlug() { return slug; }
@@ -303,7 +292,7 @@ public static class AddOrganizationCategory implements IReturn
+ public static class UpdateOrganizationCategory implements IReturn, IPut
{
public Integer organizationId = null;
public Integer id = null;
@@ -311,7 +300,7 @@ public static class UpdateOrganizationCategory implements IReturn technologyIds = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public UpdateOrganizationCategory setOrganizationId(Integer value) { this.organizationId = value; return this; }
public Integer getId() { return id; }
@@ -329,11 +318,11 @@ public static class UpdateOrganizationCategory implements IReturn
+ public static class AddOrganizationMember implements IReturn, IPost
{
public Integer organizationId = null;
public String userName = null;
@@ -351,7 +340,7 @@ public static class AddOrganizationMember implements IReturn
+ public static class UpdateOrganizationMember implements IReturn, IPut
{
public Integer organizationId = null;
public Integer userId = null;
@@ -383,7 +372,7 @@ public static class UpdateOrganizationMember implements IReturn
+ public static class SetOrganizationMembers implements IReturn, IPost
{
public Integer organizationId = null;
public ArrayList githubUserNames = null;
@@ -429,7 +418,7 @@ public static class SetOrganizationMembers implements IReturn getGithubUserNames() { return githubUserNames; }
@@ -455,10 +444,10 @@ public static class SetOrganizationMembers implements IReturn
+ public static class GetOrganizationMemberInvites implements IReturn, IGet
{
public Integer organizationId = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public GetOrganizationMemberInvites setOrganizationId(Integer value) { this.organizationId = value; return this; }
private static Object responseType = GetOrganizationMemberInvitesResponse.class;
@@ -466,10 +455,10 @@ public static class GetOrganizationMemberInvites implements IReturn
+ public static class RequestOrganizationMemberInvite implements IReturn, IPost
{
public Integer organizationId = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public RequestOrganizationMemberInvite setOrganizationId(Integer value) { this.organizationId = value; return this; }
private static Object responseType = RequestOrganizationMemberInviteResponse.class;
@@ -477,13 +466,13 @@ public static class RequestOrganizationMemberInvite implements IReturn
+ public static class UpdateOrganizationMemberInvite implements IReturn, IPut
{
public Integer organizationId = null;
public String userName = null;
public Boolean approve = null;
public Boolean dismiss = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public UpdateOrganizationMemberInvite setOrganizationId(Integer value) { this.organizationId = value; return this; }
public String getUserName() { return userName; }
@@ -497,7 +486,7 @@ public static class UpdateOrganizationMemberInvite implements IReturn implements IReturn>
+ public static class QueryPosts extends QueryDb implements IReturn>, IGet
{
public ArrayList ids = null;
public Integer organizationId = null;
@@ -505,7 +494,7 @@ public static class QueryPosts extends QueryDb implements IReturn types = null;
public ArrayList anyTechnologyIds = null;
public ArrayList is = null;
-
+
public ArrayList getIds() { return ids; }
public QueryPosts setIds(ArrayList value) { this.ids = value; return this; }
public Integer getOrganizationId() { return organizationId; }
@@ -523,11 +512,11 @@ public static class QueryPosts extends QueryDb implements IReturn
+ public static class GetPost implements IReturn, IGet
{
public Long id = null;
public String include = null;
-
+
public Long getId() { return id; }
public GetPost setId(Long value) { this.id = value; return this; }
public String getInclude() { return include; }
@@ -537,7 +526,7 @@ public static class GetPost implements IReturn
}
@Route(Path="/posts", Verbs="POST")
- public static class CreatePost implements IReturn
+ public static class CreatePost implements IReturn, IPost
{
public Integer organizationId = null;
public PostType type = null;
@@ -556,7 +545,7 @@ public static class CreatePost implements IReturn
public Long refId = null;
public String refSource = null;
public String refUrn = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public CreatePost setOrganizationId(Integer value) { this.organizationId = value; return this; }
public PostType getType() { return type; }
@@ -596,7 +585,7 @@ public static class CreatePost implements IReturn
}
@Route(Path="/posts/{Id}", Verbs="PUT")
- public static class UpdatePost implements IReturn
+ public static class UpdatePost implements IReturn, IPut
{
public Long id = null;
public Integer organizationId = null;
@@ -613,7 +602,7 @@ public static class UpdatePost implements IReturn
public Date toDate = null;
public String metaType = null;
public String meta = null;
-
+
public Long getId() { return id; }
public UpdatePost setId(Long value) { this.id = value; return this; }
public Integer getOrganizationId() { return organizationId; }
@@ -649,10 +638,10 @@ public static class UpdatePost implements IReturn
}
@Route(Path="/posts/{Id}", Verbs="DELETE")
- public static class DeletePost implements IReturn
+ public static class DeletePost implements IReturn, IDelete
{
public Long id = null;
-
+
public Long getId() { return id; }
public DeletePost setId(Long value) { this.id = value; return this; }
private static Object responseType = DeletePostResponse.class;
@@ -660,12 +649,12 @@ public static class DeletePost implements IReturn
}
@Route(Path="/posts/{Id}/lock", Verbs="PUT")
- public static class LockPost implements IReturnVoid
+ public static class LockPost implements IReturnVoid, IPut
{
public Long id = null;
public Boolean lock = null;
public String reason = null;
-
+
public Long getId() { return id; }
public LockPost setId(Long value) { this.id = value; return this; }
public Boolean isLock() { return lock; }
@@ -675,12 +664,12 @@ public static class LockPost implements IReturnVoid
}
@Route(Path="/posts/{Id}/hide", Verbs="PUT")
- public static class HidePost implements IReturnVoid
+ public static class HidePost implements IReturnVoid, IPut
{
public Long id = null;
public Boolean hide = null;
public String reason = null;
-
+
public Long getId() { return id; }
public HidePost setId(Long value) { this.id = value; return this; }
public Boolean isHide() { return hide; }
@@ -690,12 +679,12 @@ public static class HidePost implements IReturnVoid
}
@Route(Path="/posts/{Id}/status/{Status}", Verbs="PUT")
- public static class ChangeStatusPost implements IReturnVoid
+ public static class ChangeStatusPost implements IReturnVoid, IPut
{
public Long id = null;
public String status = null;
public String reason = null;
-
+
public Long getId() { return id; }
public ChangeStatusPost setId(Long value) { this.id = value; return this; }
public String getStatus() { return status; }
@@ -705,12 +694,12 @@ public static class ChangeStatusPost implements IReturnVoid
}
@Route(Path="/posts/{PostId}/report/{Id}", Verbs="POST")
- public static class ActionPostReport implements IReturnVoid
+ public static class ActionPostReport implements IReturnVoid, IPost
{
public Long postId = null;
public Long id = null;
public ReportAction reportAction = null;
-
+
public Long getPostId() { return postId; }
public ActionPostReport setPostId(Long value) { this.postId = value; return this; }
public Long getId() { return id; }
@@ -720,12 +709,12 @@ public static class ActionPostReport implements IReturnVoid
}
@Route(Path="/posts/{PostId}/comments", Verbs="POST")
- public static class CreatePostComment implements IReturn
+ public static class CreatePostComment implements IReturn, IPost
{
public Long postId = null;
public Long replyId = null;
public String content = null;
-
+
public Long getPostId() { return postId; }
public CreatePostComment setPostId(Long value) { this.postId = value; return this; }
public Long getReplyId() { return replyId; }
@@ -737,12 +726,12 @@ public static class CreatePostComment implements IReturn
+ public static class UpdatePostComment implements IReturn, IPut
{
public Long id = null;
public Long postId = null;
public String content = null;
-
+
public Long getId() { return id; }
public UpdatePostComment setId(Long value) { this.id = value; return this; }
public Long getPostId() { return postId; }
@@ -754,11 +743,11 @@ public static class UpdatePostComment implements IReturn
+ public static class DeletePostComment implements IReturn, IDelete
{
public Long id = null;
public Long postId = null;
-
+
public Long getId() { return id; }
public DeletePostComment setId(Long value) { this.id = value; return this; }
public Long getPostId() { return postId; }
@@ -768,13 +757,13 @@ public static class DeletePostComment implements IReturn
+ public static class GetUserPostCommentVotes implements IReturn, IGet
{
public Long postId = null;
-
+
public Long getPostId() { return postId; }
public GetUserPostCommentVotes setPostId(Long value) { this.postId = value; return this; }
private static Object responseType = GetUserPostCommentVotesResponse.class;
public Object getResponseType() { return responseType; }
}
- @Route(Path="/posts/{PostId}/comments/{Id}/pin", Verbs="UPDATE")
- public static class PinPostComment implements IReturn
+ @Route(Path="/posts/{PostId}/comments/{Id}/pin", Verbs="PUT")
+ public static class PinPostComment implements IReturn, IPut
{
public Long id = null;
public Long postId = null;
public Boolean pin = null;
-
+
public Long getId() { return id; }
public PinPostComment setId(Long value) { this.id = value; return this; }
public Long getPostId() { return postId; }
@@ -814,10 +803,10 @@ public static class PinPostComment implements IReturn
}
@Route("/users/by-email")
- public static class GetUsersByEmails implements IReturn
+ public static class GetUsersByEmails implements IReturn, IGet
{
public ArrayList emails = null;
-
+
public ArrayList getEmails() { return emails; }
public GetUsersByEmails setEmails(ArrayList value) { this.emails = value; return this; }
private static Object responseType = GetUsersByEmailsResponse.class;
@@ -825,27 +814,27 @@ public static class GetUsersByEmails implements IReturn
+ public static class GetUserPostActivity implements IReturn, IGet
{
-
+
private static Object responseType = GetUserPostActivityResponse.class;
public Object getResponseType() { return responseType; }
}
@Route("/user/organizations")
- public static class GetUserOrganizations implements IReturn
+ public static class GetUserOrganizations implements IReturn, IGet
{
-
+
private static Object responseType = GetUserOrganizationsResponse.class;
public Object getResponseType() { return responseType; }
}
@Route(Path="/posts/{Id}/vote", Verbs="PUT")
- public static class UserPostVote implements IReturn
+ public static class UserPostVote implements IReturn, IPut
{
public Long id = null;
public Integer weight = null;
-
+
public Long getId() { return id; }
public UserPostVote setId(Long value) { this.id = value; return this; }
public Integer getWeight() { return weight; }
@@ -855,10 +844,10 @@ public static class UserPostVote implements IReturn
}
@Route(Path="/posts/{Id}/favorite", Verbs="PUT")
- public static class UserPostFavorite implements IReturn
+ public static class UserPostFavorite implements IReturn, IPut
{
public Long id = null;
-
+
public Long getId() { return id; }
public UserPostFavorite setId(Long value) { this.id = value; return this; }
private static Object responseType = UserPostFavoriteResponse.class;
@@ -866,12 +855,12 @@ public static class UserPostFavorite implements IReturn
+ public static class UserPostReport implements IReturn, IPut
{
public Long id = null;
public FlagType flagType = null;
public String reportNotes = null;
-
+
public Long getId() { return id; }
public UserPostReport setId(Long value) { this.id = value; return this; }
public FlagType getFlagType() { return flagType; }
@@ -883,12 +872,12 @@ public static class UserPostReport implements IReturn
}
@Route(Path="/posts/{PostId}/comments/{Id}", Verbs="GET")
- public static class UserPostCommentVote implements IReturn
+ public static class UserPostCommentVote implements IReturn, IGet
{
public Long id = null;
public Long postId = null;
public Integer weight = null;
-
+
public Long getId() { return id; }
public UserPostCommentVote setId(Long value) { this.id = value; return this; }
public Long getPostId() { return postId; }
@@ -900,13 +889,13 @@ public static class UserPostCommentVote implements IReturn
+ public static class UserPostCommentReport implements IReturn, IPut
{
public Long id = null;
public Long postId = null;
public FlagType flagType = null;
public String reportNotes = null;
-
+
public Long getId() { return id; }
public UserPostCommentReport setId(Long value) { this.id = value; return this; }
public Long getPostId() { return postId; }
@@ -920,19 +909,19 @@ public static class UserPostCommentReport implements IReturn
+ public static class GetPreRender implements IReturn, IGet
{
public String path = null;
-
+
public String getPath() { return path; }
public GetPreRender setPath(String value) { this.path = value; return this; }
private static Object responseType = String.class;
@@ -940,20 +929,20 @@ public static class GetPreRender implements IReturn
}
@Route("/my-session")
- public static class SessionInfo implements IReturn
+ public static class SessionInfo implements IReturn, IGet
{
-
+
private static Object responseType = SessionInfoResponse.class;
public Object getResponseType() { return responseType; }
}
@Route(Path="/orgs/{OrganizationId}/subscribe", Verbs="PUT")
- public static class SubscribeToOrganization implements IReturnVoid
+ public static class SubscribeToOrganization implements IReturnVoid, IPut
{
public Integer organizationId = null;
public ArrayList postTypes = null;
public Frequency frequency = null;
-
+
public Integer getOrganizationId() { return organizationId; }
public SubscribeToOrganization setOrganizationId(Integer value) { this.organizationId = value; return this; }
public ArrayList getPostTypes() { return postTypes; }
@@ -963,37 +952,37 @@ public static class SubscribeToOrganization implements IReturnVoid
}
@Route(Path="/posts/{PostId}/subscribe", Verbs="PUT")
- public static class SubscribeToPost implements IReturnVoid
+ public static class SubscribeToPost implements IReturnVoid, IPut
{
public Long postId = null;
-
+
public Long getPostId() { return postId; }
public SubscribeToPost setPostId(Long value) { this.postId = value; return this; }
}
@Route(Path="/orgs/{OrganizationId}/subscribe", Verbs="DELETE")
- public static class DeleteOrganizationSubscription implements IReturnVoid
+ public static class DeleteOrganizationSubscription implements IReturnVoid, IDelete
{
public Long organizationId = null;
-
+
public Long getOrganizationId() { return organizationId; }
public DeleteOrganizationSubscription setOrganizationId(Long value) { this.organizationId = value; return this; }
}
@Route(Path="/posts/{PostId}/subscribe", Verbs="DELETE")
- public static class DeletePostSubscription implements IReturnVoid
+ public static class DeletePostSubscription implements IReturnVoid, IDelete
{
public Long postId = null;
-
+
public Long getPostId() { return postId; }
public DeletePostSubscription setPostId(Long value) { this.postId = value; return this; }
}
@Route(Path="/technology/{Slug}/previous-versions", Verbs="GET")
- public static class GetTechnologyPreviousVersions implements IReturn
+ public static class GetTechnologyPreviousVersions implements IReturn, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetTechnologyPreviousVersions setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetTechnologyPreviousVersionsResponse.class;
@@ -1001,20 +990,20 @@ public static class GetTechnologyPreviousVersions implements IReturn
+ public static class GetAllTechnologies implements IReturn, IGet
{
-
+
private static Object responseType = GetAllTechnologiesResponse.class;
public Object getResponseType() { return responseType; }
}
@Route("/technology/search")
@AutoQueryViewer(DefaultSearchField="Tier", DefaultSearchText="Data", DefaultSearchType="=", Description="Explore different Technologies", IconUrl="octicon:database", Title="Find Technologies")
- public static class FindTechnologies extends QueryDb implements IReturn>
+ public static class FindTechnologies extends QueryDb implements IReturn>, IGet
{
public String name = null;
public String nameContains = null;
-
+
public String getName() { return name; }
public FindTechnologies setName(String value) { this.name = value; return this; }
public String getNameContains() { return nameContains; }
@@ -1024,18 +1013,18 @@ public static class FindTechnologies extends QueryDb implements IRet
}
@Route("/technology/query")
- public static class QueryTechnology extends QueryDb implements IReturn>
+ public static class QueryTechnology extends QueryDb implements IReturn>, IGet
{
-
+
private static Object responseType = new TypeToken>(){}.getType();
public Object getResponseType() { return responseType; }
}
@Route("/technology/{Slug}")
- public static class GetTechnology implements IReturn, IRegisterStats
+ public static class GetTechnology implements IReturn, IRegisterStats, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetTechnology setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetTechnologyResponse.class;
@@ -1043,10 +1032,10 @@ public static class GetTechnology implements IReturn, IRe
}
@Route("/technology/{Slug}/favorites")
- public static class GetTechnologyFavoriteDetails implements IReturn
+ public static class GetTechnologyFavoriteDetails implements IReturn, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetTechnologyFavoriteDetails setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetTechnologyFavoriteDetailsResponse.class;
@@ -1054,7 +1043,7 @@ public static class GetTechnologyFavoriteDetails implements IReturn
+ public static class CreateTechnology implements IReturn, IPost
{
public String name = null;
public String slug = null;
@@ -1065,7 +1054,7 @@ public static class CreateTechnology implements IReturn
+ public static class UpdateTechnology implements IReturn, IPut
{
public Long id = null;
public String name = null;
@@ -1100,7 +1089,7 @@ public static class UpdateTechnology implements IReturn
+ public static class DeleteTechnology implements IReturn, IDelete
{
public Long id = null;
-
+
public Long getId() { return id; }
public DeleteTechnology setId(Long value) { this.id = value; return this; }
private static Object responseType = DeleteTechnologyResponse.class;
@@ -1135,10 +1124,10 @@ public static class DeleteTechnology implements IReturn
+ public static class GetTechnologyStackPreviousVersions implements IReturn, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetTechnologyStackPreviousVersions setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetTechnologyStackPreviousVersionsResponse.class;
@@ -1146,12 +1135,12 @@ public static class GetTechnologyStackPreviousVersions implements IReturn
+ public static class GetPageStats implements IReturn, IGet
{
public String type = null;
public String slug = null;
public Integer id = null;
-
+
public String getType() { return type; }
public GetPageStats setType(String value) { this.type = value; return this; }
public String getSlug() { return slug; }
@@ -1163,18 +1152,18 @@ public static class GetPageStats implements IReturn
}
@Route("/cache/clear")
- public static class ClearCache implements IReturn
+ public static class ClearCache implements IReturn, IGet
{
-
+
private static Object responseType = String.class;
public Object getResponseType() { return responseType; }
}
@Route("/tasks/hourly")
- public static class HourlyTask implements IReturn
+ public static class HourlyTask implements IReturn, IGet
{
public Boolean force = null;
-
+
public Boolean isForce() { return force; }
public HourlyTask setForce(Boolean value) { this.force = value; return this; }
private static Object responseType = HourlyTaskResponse.class;
@@ -1183,10 +1172,10 @@ public static class HourlyTask implements IReturn
@Route("/techstacks/search")
@AutoQueryViewer(DefaultSearchField="Description", DefaultSearchText="ServiceStack", DefaultSearchType="Contains", Description="Explore different Technology Stacks", IconUrl="material-icons:cloud", Title="Find Technology Stacks")
- public static class FindTechStacks extends QueryDb implements IReturn>
+ public static class FindTechStacks extends QueryDb implements IReturn>, IGet
{
public String nameContains = null;
-
+
public String getNameContains() { return nameContains; }
public FindTechStacks setNameContains(String value) { this.nameContains = value; return this; }
private static Object responseType = new TypeToken>(){}.getType();
@@ -1194,18 +1183,18 @@ public static class FindTechStacks extends QueryDb implements I
}
@Route("/techstacks/query")
- public static class QueryTechStacks extends QueryDb implements IReturn>
+ public static class QueryTechStacks extends QueryDb implements IReturn>, IGet
{
-
+
private static Object responseType = new TypeToken>(){}.getType();
public Object getResponseType() { return responseType; }
}
@Route("/overview")
- public static class Overview implements IReturn
+ public static class Overview implements IReturn, IGet
{
public Boolean reload = null;
-
+
public Boolean isReload() { return reload; }
public Overview setReload(Boolean value) { this.reload = value; return this; }
private static Object responseType = OverviewResponse.class;
@@ -1213,10 +1202,10 @@ public static class Overview implements IReturn
}
@Route("/app-overview")
- public static class AppOverview implements IReturn
+ public static class AppOverview implements IReturn, IGet
{
public Boolean reload = null;
-
+
public Boolean isReload() { return reload; }
public AppOverview setReload(Boolean value) { this.reload = value; return this; }
private static Object responseType = AppOverviewResponse.class;
@@ -1224,18 +1213,18 @@ public static class AppOverview implements IReturn
}
@Route(Path="/techstacks", Verbs="GET")
- public static class GetAllTechnologyStacks implements IReturn
+ public static class GetAllTechnologyStacks implements IReturn, IGet
{
-
+
private static Object responseType = GetAllTechnologyStacksResponse.class;
public Object getResponseType() { return responseType; }
}
@Route(Path="/techstacks/{Slug}", Verbs="GET")
- public static class GetTechnologyStack implements IReturn, IRegisterStats
+ public static class GetTechnologyStack implements IReturn, IRegisterStats, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetTechnologyStack setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetTechnologyStackResponse.class;
@@ -1243,10 +1232,10 @@ public static class GetTechnologyStack implements IReturn
+ public static class GetTechnologyStackFavoriteDetails implements IReturn, IGet
{
public String slug = null;
-
+
public String getSlug() { return slug; }
public GetTechnologyStackFavoriteDetails setSlug(String value) { this.slug = value; return this; }
private static Object responseType = GetTechnologyStackFavoriteDetailsResponse.class;
@@ -1254,15 +1243,15 @@ public static class GetTechnologyStackFavoriteDetails implements IReturn
+ public static class GetConfig implements IReturn, IGet
{
-
+
private static Object responseType = GetConfigResponse.class;
public Object getResponseType() { return responseType; }
}
@Route(Path="/techstacks", Verbs="POST")
- public static class CreateTechnologyStack implements IReturn
+ public static class CreateTechnologyStack implements IReturn, IPost
{
public String name = null;
public String slug = null;
@@ -1273,7 +1262,7 @@ public static class CreateTechnologyStack implements IReturn technologyIds = null;
-
+
public String getName() { return name; }
public CreateTechnologyStack setName(String value) { this.name = value; return this; }
public String getSlug() { return slug; }
@@ -1297,7 +1286,7 @@ public static class CreateTechnologyStack implements IReturn
+ public static class UpdateTechnologyStack implements IReturn, IPut
{
public Long id = null;
public String name = null;
@@ -1308,7 +1297,7 @@ public static class UpdateTechnologyStack implements IReturn technologyIds = null;
-
+
public Long getId() { return id; }
public UpdateTechnologyStack setId(Long value) { this.id = value; return this; }
public String getName() { return name; }
@@ -1332,10 +1321,10 @@ public static class UpdateTechnologyStack implements IReturn
+ public static class DeleteTechnologyStack implements IReturn, IDelete
{
public Long id = null;
-
+
public Long getId() { return id; }
public DeleteTechnologyStack setId(Long value) { this.id = value; return this; }
private static Object responseType = DeleteTechnologyStackResponse.class;
@@ -1343,10 +1332,10 @@ public static class DeleteTechnologyStack implements IReturn
+ public static class GetFavoriteTechStack implements IReturn, IGet
{
public Integer technologyStackId = null;
-
+
public Integer getTechnologyStackId() { return technologyStackId; }
public GetFavoriteTechStack setTechnologyStackId(Integer value) { this.technologyStackId = value; return this; }
private static Object responseType = GetFavoriteTechStackResponse.class;
@@ -1354,10 +1343,10 @@ public static class GetFavoriteTechStack implements IReturn
+ public static class AddFavoriteTechStack implements IReturn, IPut
{
public Integer technologyStackId = null;
-
+
public Integer getTechnologyStackId() { return technologyStackId; }
public AddFavoriteTechStack setTechnologyStackId(Integer value) { this.technologyStackId = value; return this; }
private static Object responseType = FavoriteTechStackResponse.class;
@@ -1365,10 +1354,10 @@ public static class AddFavoriteTechStack implements IReturn
+ public static class RemoveFavoriteTechStack implements IReturn, IDelete
{
public Integer technologyStackId = null;
-
+
public Integer getTechnologyStackId() { return technologyStackId; }
public RemoveFavoriteTechStack setTechnologyStackId(Integer value) { this.technologyStackId = value; return this; }
private static Object responseType = FavoriteTechStackResponse.class;
@@ -1376,10 +1365,10 @@ public static class RemoveFavoriteTechStack implements IReturn
+ public static class GetFavoriteTechnologies implements IReturn, IGet
{
public Integer technologyId = null;
-
+
public Integer getTechnologyId() { return technologyId; }
public GetFavoriteTechnologies setTechnologyId(Integer value) { this.technologyId = value; return this; }
private static Object responseType = GetFavoriteTechnologiesResponse.class;
@@ -1387,10 +1376,10 @@ public static class GetFavoriteTechnologies implements IReturn
+ public static class AddFavoriteTechnology implements IReturn, IPut
{
public Integer technologyId = null;
-
+
public Integer getTechnologyId() { return technologyId; }
public AddFavoriteTechnology setTechnologyId(Integer value) { this.technologyId = value; return this; }
private static Object responseType = FavoriteTechnologyResponse.class;
@@ -1398,10 +1387,10 @@ public static class AddFavoriteTechnology implements IReturn
+ public static class RemoveFavoriteTechnology implements IReturn, IDelete
{
public Integer technologyId = null;
-
+
public Integer getTechnologyId() { return technologyId; }
public RemoveFavoriteTechnology setTechnologyId(Integer value) { this.technologyId = value; return this; }
private static Object responseType = FavoriteTechnologyResponse.class;
@@ -1409,18 +1398,18 @@ public static class RemoveFavoriteTechnology implements IReturn
+ public static class GetUserFeed implements IReturn, IGet
{
-
+
private static Object responseType = GetUserFeedResponse.class;
public Object getResponseType() { return responseType; }
}
@Route(Path="/users/karma", Verbs="GET")
- public static class GetUsersKarma implements IReturn
+ public static class GetUsersKarma implements IReturn, IGet
{
public ArrayList