diff --git a/AvataryugKotlinSDK/.gradle/8.0/checksums/checksums.lock b/AvataryugKotlinSDK/.gradle/8.0/checksums/checksums.lock
new file mode 100644
index 0000000..8c123bc
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/checksums/checksums.lock differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/checksums/md5-checksums.bin b/AvataryugKotlinSDK/.gradle/8.0/checksums/md5-checksums.bin
new file mode 100644
index 0000000..05c8976
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/checksums/md5-checksums.bin differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/checksums/sha1-checksums.bin b/AvataryugKotlinSDK/.gradle/8.0/checksums/sha1-checksums.bin
new file mode 100644
index 0000000..c54a570
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/checksums/sha1-checksums.bin differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock b/AvataryugKotlinSDK/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock
new file mode 100644
index 0000000..5d857d5
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/dependencies-accessors/gc.properties b/AvataryugKotlinSDK/.gradle/8.0/dependencies-accessors/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/AvataryugKotlinSDK/.gradle/8.0/executionHistory/executionHistory.lock b/AvataryugKotlinSDK/.gradle/8.0/executionHistory/executionHistory.lock
new file mode 100644
index 0000000..05fe3ee
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/executionHistory/executionHistory.lock differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/fileChanges/last-build.bin b/AvataryugKotlinSDK/.gradle/8.0/fileChanges/last-build.bin
new file mode 100644
index 0000000..f76dd23
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/fileChanges/last-build.bin differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/fileHashes/fileHashes.bin b/AvataryugKotlinSDK/.gradle/8.0/fileHashes/fileHashes.bin
new file mode 100644
index 0000000..549ce44
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/fileHashes/fileHashes.bin differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/fileHashes/fileHashes.lock b/AvataryugKotlinSDK/.gradle/8.0/fileHashes/fileHashes.lock
new file mode 100644
index 0000000..f476d86
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/fileHashes/fileHashes.lock differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/fileHashes/resourceHashesCache.bin b/AvataryugKotlinSDK/.gradle/8.0/fileHashes/resourceHashesCache.bin
new file mode 100644
index 0000000..e3ce423
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/8.0/fileHashes/resourceHashesCache.bin differ
diff --git a/AvataryugKotlinSDK/.gradle/8.0/gc.properties b/AvataryugKotlinSDK/.gradle/8.0/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/AvataryugKotlinSDK/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/AvataryugKotlinSDK/.gradle/buildOutputCleanup/buildOutputCleanup.lock
new file mode 100644
index 0000000..a1c41f6
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ
diff --git a/AvataryugKotlinSDK/.gradle/buildOutputCleanup/cache.properties b/AvataryugKotlinSDK/.gradle/buildOutputCleanup/cache.properties
new file mode 100644
index 0000000..7c85143
--- /dev/null
+++ b/AvataryugKotlinSDK/.gradle/buildOutputCleanup/cache.properties
@@ -0,0 +1,2 @@
+#Thu Feb 08 14:52:34 IST 2024
+gradle.version=8.0
diff --git a/AvataryugKotlinSDK/.gradle/buildOutputCleanup/outputFiles.bin b/AvataryugKotlinSDK/.gradle/buildOutputCleanup/outputFiles.bin
new file mode 100644
index 0000000..defac9a
Binary files /dev/null and b/AvataryugKotlinSDK/.gradle/buildOutputCleanup/outputFiles.bin differ
diff --git a/AvataryugKotlinSDK/.gradle/vcs-1/gc.properties b/AvataryugKotlinSDK/.gradle/vcs-1/gc.properties
new file mode 100644
index 0000000..e69de29
diff --git a/AvataryugKotlinSDK/.idea/.gitignore b/AvataryugKotlinSDK/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/AvataryugKotlinSDK/.idea/.name b/AvataryugKotlinSDK/.idea/.name
new file mode 100644
index 0000000..a5d43ae
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/.name
@@ -0,0 +1 @@
+MyKotlinAndroidSDK
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/.idea/compiler.xml b/AvataryugKotlinSDK/.idea/compiler.xml
new file mode 100644
index 0000000..b589d56
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/.idea/gradle.xml b/AvataryugKotlinSDK/.idea/gradle.xml
new file mode 100644
index 0000000..6d89050
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/gradle.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/.idea/kotlinc.xml b/AvataryugKotlinSDK/.idea/kotlinc.xml
new file mode 100644
index 0000000..e1eea1d
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/.idea/misc.xml b/AvataryugKotlinSDK/.idea/misc.xml
new file mode 100644
index 0000000..0ad17cb
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/misc.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/.idea/vcs.xml b/AvataryugKotlinSDK/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/AvataryugKotlinSDK/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/.gitignore b/AvataryugKotlinSDK/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/AvataryugKotlinSDK/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/build.gradle b/AvataryugKotlinSDK/app/build.gradle
new file mode 100644
index 0000000..130abe6
--- /dev/null
+++ b/AvataryugKotlinSDK/app/build.gradle
@@ -0,0 +1,88 @@
+plugins {
+ id 'com.android.application'
+ id 'org.jetbrains.kotlin.android'
+}
+
+android {
+ namespace 'com.example.mykotlinandroidsdk'
+ compileSdk 33
+
+ defaultConfig {
+ applicationId "com.example.mykotlinandroidsdk"
+ minSdk 24
+ targetSdk 33
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ vectorDrawables {
+ useSupportLibrary true
+ }
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+ buildFeatures {
+ compose true
+ }
+ composeOptions {
+ kotlinCompilerExtensionVersion '1.3.2'
+ }
+ packagingOptions {
+ resources {
+ excludes += '/META-INF/{AL2.0,LGPL2.1}'
+ exclude 'META-INF/DEPENDENCIES'
+ }
+ }
+}
+ext {
+ swagger_annotations_version = "1.6.6"
+ gson_version = "2.8.9"
+ httpmime_version = "4.5.13"
+ volley_version = "1.2.1"
+ junit_version = "4.13.2"
+ robolectric_version = "4.5.1"
+ concurrent_unit_version = "0.4.6"
+}
+dependencies {
+
+
+ implementation 'androidx.core:core-ktx:1.8.0'
+ implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
+ implementation 'androidx.activity:activity-compose:1.5.1'
+ implementation platform('androidx.compose:compose-bom:2022.10.00')
+ implementation 'androidx.compose.ui:ui'
+ implementation 'androidx.compose.ui:ui-graphics'
+ implementation 'androidx.compose.ui:ui-tooling-preview'
+ implementation 'androidx.compose.material3:material3'
+ implementation 'androidx.appcompat:appcompat:1.6.1'
+ implementation 'com.google.android.material:material:1.5.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+ testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.5'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
+ androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
+ androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
+ debugImplementation 'androidx.compose.ui:ui-tooling'
+ debugImplementation 'androidx.compose.ui:ui-test-manifest'
+ implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
+ implementation "com.google.code.gson:gson:$gson_version"
+ implementation "org.apache.httpcomponents:httpmime:$httpmime_version"
+ implementation "com.android.volley:volley:${volley_version}"
+ testImplementation "org.robolectric:robolectric:${robolectric_version}"
+ testImplementation "net.jodah:concurrentunit:${concurrent_unit_version}"
+ implementation "com.squareup.moshi:moshi-kotlin:1.13.0"
+ implementation "com.squareup.moshi:moshi-adapters:1.13.0"
+ implementation "com.squareup.okhttp3:okhttp:4.10.0"
+}
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/proguard-rules.pro b/AvataryugKotlinSDK/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/AvataryugKotlinSDK/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/src/androidTest/java/com/example/mykotlinandroidsdk/ExampleInstrumentedTest.kt b/AvataryugKotlinSDK/app/src/androidTest/java/com/example/mykotlinandroidsdk/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..63dc176
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/androidTest/java/com/example/mykotlinandroidsdk/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.example.mykotlinandroidsdk
+
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+
+import org.junit.Test
+import org.junit.runner.RunWith
+
+import org.junit.Assert.*
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+@RunWith(AndroidJUnit4::class)
+class ExampleInstrumentedTest {
+ @Test
+ fun useAppContext() {
+ // Context of the app under test.
+ val appContext = InstrumentationRegistry.getInstrumentation().targetContext
+ assertEquals("com.example.mykotlinandroidsdk", appContext.packageName)
+ }
+}
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/src/main/AndroidManifest.xml b/AvataryugKotlinSDK/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..64b48cb
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/AndroidManifest.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AdvertisingApi.kt b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AdvertisingApi.kt
new file mode 100644
index 0000000..21dfbbb
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AdvertisingApi.kt
@@ -0,0 +1,273 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+/**
+ * Represents a collection of functions to interact with the API endpoints.
+ */
+package com.Avataryug.client.Apis
+
+import Avataryug.Client.AvatarProjectSettings
+import com.Avataryug.client.Infrastructure.ApiClient
+import java.io.IOException
+import okhttp3.OkHttpClient
+import okhttp3.HttpUrl
+
+import com.Avataryug.client.Models.GetAdPlacementByIDResult
+import com.Avataryug.client.Models.GrantAdsRewardRequest
+import com.Avataryug.client.Models.GrantAdsRewardResult
+import com.Avataryug.client.Models.RecordAdsActivityRequest
+import com.Avataryug.client.Models.RecordAdsActivityResult
+
+import com.Avataryug.client.Infrastructure.ApiResponse
+import com.Avataryug.client.Infrastructure.ClientException
+import com.Avataryug.client.Infrastructure.ClientError
+import com.Avataryug.client.Infrastructure.ServerException
+import com.Avataryug.client.Infrastructure.ServerError
+import com.Avataryug.client.Infrastructure.MultiValueMap
+import com.Avataryug.client.Infrastructure.RequestConfig
+import com.Avataryug.client.Infrastructure.RequestMethod
+import com.Avataryug.client.Infrastructure.ResponseType
+import com.Avataryug.client.Infrastructure.Success
+
+class AdvertisingApi (basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ val id = AvatarProjectSettings.Project_Id
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "https://$id.avataryugapi.com/client")
+ }
+ }
+
+ /**
+ * Get Ad Placement By ID
+ * Returns a list of ad placements by ID
+ * @param placementID Unique identifier of the placement
+ * @return GetAdPlacementByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getAdPlacementByID(placementID: kotlin.String) : GetAdPlacementByIDResult {
+ val localVarResponse = getAdPlacementByIDWithHttpInfo(placementID = placementID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetAdPlacementByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Ad Placement By ID
+ * Returns a list of ad placements by ID
+ * @param placementID Unique identifier of the placement
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getAdPlacementByIDWithHttpInfo(placementID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getAdPlacementByIDRequestConfig(placementID = placementID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getAdPlacementByID
+ *
+ * @param placementID Unique identifier of the placement
+ * @return RequestConfig
+ */
+ fun getAdPlacementByIDRequestConfig(placementID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("PlacementID", listOf(placementID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetAdPlacementByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Grant Ads Reward
+ * Grants ads rewards into user wallet (if currency) or inventory (if items)
+ * @param grantAdsRewardRequest (optional)
+ * @return GrantAdsRewardResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun grantAdsReward(grantAdsRewardRequest: GrantAdsRewardRequest? = null) : GrantAdsRewardResult {
+ val localVarResponse = grantAdsRewardWithHttpInfo(grantAdsRewardRequest = grantAdsRewardRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GrantAdsRewardResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Grant Ads Reward
+ * Grants ads rewards into user wallet (if currency) or inventory (if items)
+ * @param grantAdsRewardRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun grantAdsRewardWithHttpInfo(grantAdsRewardRequest: GrantAdsRewardRequest?) : ApiResponse {
+ val localVariableConfig = grantAdsRewardRequestConfig(grantAdsRewardRequest = grantAdsRewardRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation grantAdsReward
+ *
+ * @param grantAdsRewardRequest (optional)
+ * @return RequestConfig
+ */
+ fun grantAdsRewardRequestConfig(grantAdsRewardRequest: GrantAdsRewardRequest?) : RequestConfig {
+ val localVariableBody = grantAdsRewardRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/GrantAdsReward",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Record Ads Activity
+ * Stores the Ads activity related data into our system for reporting
+ * @param recordAdsActivityRequest (optional)
+ * @return RecordAdsActivityResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun recordAdsActivity(recordAdsActivityRequest: RecordAdsActivityRequest? = null) : RecordAdsActivityResult {
+ val localVarResponse = recordAdsActivityWithHttpInfo(recordAdsActivityRequest = recordAdsActivityRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as RecordAdsActivityResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Record Ads Activity
+ * Stores the Ads activity related data into our system for reporting
+ * @param recordAdsActivityRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun recordAdsActivityWithHttpInfo(recordAdsActivityRequest: RecordAdsActivityRequest?) : ApiResponse {
+ val localVariableConfig = recordAdsActivityRequestConfig(recordAdsActivityRequest = recordAdsActivityRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation recordAdsActivity
+ *
+ * @param recordAdsActivityRequest (optional)
+ * @return RequestConfig
+ */
+ fun recordAdsActivityRequestConfig(recordAdsActivityRequest: RecordAdsActivityRequest?) : RequestConfig {
+ val localVariableBody = recordAdsActivityRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/RecordAdsActivity",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String =
+ HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0]
+}
diff --git a/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AuthenticationApi.kt b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AuthenticationApi.kt
new file mode 100644
index 0000000..67acf6a
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AuthenticationApi.kt
@@ -0,0 +1,643 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package com.Avataryug.client.Apis
+
+import Avataryug.Client.AvatarProjectSettings
+import com.Avataryug.client.Infrastructure.ApiClient
+import java.io.IOException
+import okhttp3.OkHttpClient
+import okhttp3.HttpUrl
+
+import com.Avataryug.client.Models.LoginWithAndroidDeviceIDRequest
+import com.Avataryug.client.Models.LoginWithAndroidDeviceIDResult
+import com.Avataryug.client.Models.LoginWithAppleRequest
+import com.Avataryug.client.Models.LoginWithAppleResult
+import com.Avataryug.client.Models.LoginWithCustomIDRequest
+import com.Avataryug.client.Models.LoginWithCustomIDResult
+import com.Avataryug.client.Models.LoginWithEmailAddressRequest
+import com.Avataryug.client.Models.LoginWithEmailAddressResult
+import com.Avataryug.client.Models.LoginWithFacebookRequest
+import com.Avataryug.client.Models.LoginWithFacebookResult
+import com.Avataryug.client.Models.LoginWithGoogleRequest
+import com.Avataryug.client.Models.LoginWithGoogleResult
+import com.Avataryug.client.Models.LoginWithIOSDeviceIDRequest
+import com.Avataryug.client.Models.LoginWithIOSDeviceIDResult
+import com.Avataryug.client.Models.RegisterUserRequest
+import com.Avataryug.client.Models.RegisterUserResult
+
+import com.Avataryug.client.Infrastructure.ApiResponse
+import com.Avataryug.client.Infrastructure.ClientException
+import com.Avataryug.client.Infrastructure.ClientError
+import com.Avataryug.client.Infrastructure.ServerException
+import com.Avataryug.client.Infrastructure.ServerError
+import com.Avataryug.client.Infrastructure.MultiValueMap
+import com.Avataryug.client.Infrastructure.RequestConfig
+import com.Avataryug.client.Infrastructure.RequestMethod
+import com.Avataryug.client.Infrastructure.ResponseType
+import com.Avataryug.client.Infrastructure.Success
+
+/**
+ * Represents a collection of functions to interact with the API endpoints
+ */
+
+class AuthenticationApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ val id = AvatarProjectSettings.Project_Id
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "https://$id.avataryugapi.com/client")
+ }
+ }
+
+ /**
+ * Login With Android Device ID
+ * Signs the user in using the Android device identifier, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithAndroidDeviceIDRequest (optional)
+ * @return LoginWithAndroidDeviceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithAndroidDeviceID(loginWithAndroidDeviceIDRequest: LoginWithAndroidDeviceIDRequest? = null) : LoginWithAndroidDeviceIDResult {
+ val localVarResponse = loginWithAndroidDeviceIDWithHttpInfo(loginWithAndroidDeviceIDRequest = loginWithAndroidDeviceIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithAndroidDeviceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With Android Device ID
+ * Signs the user in using the Android device identifier, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithAndroidDeviceIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithAndroidDeviceIDWithHttpInfo(loginWithAndroidDeviceIDRequest: LoginWithAndroidDeviceIDRequest?) : ApiResponse {
+ val localVariableConfig = loginWithAndroidDeviceIDRequestConfig(loginWithAndroidDeviceIDRequest = loginWithAndroidDeviceIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithAndroidDeviceID
+ *
+ * @param loginWithAndroidDeviceIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithAndroidDeviceIDRequestConfig(loginWithAndroidDeviceIDRequest: LoginWithAndroidDeviceIDRequest?) : RequestConfig {
+ val localVariableBody = loginWithAndroidDeviceIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithAndroidDeviceID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Login With Apple
+ * Signs in the user with a Sign in with Apple identity token.
+ * @param loginWithAppleRequest (optional)
+ * @return LoginWithAppleResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithApple(loginWithAppleRequest: LoginWithAppleRequest? = null) : LoginWithAppleResult {
+ val localVarResponse = loginWithAppleWithHttpInfo(loginWithAppleRequest = loginWithAppleRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithAppleResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With Apple
+ * Signs in the user with a Sign in with Apple identity token.
+ * @param loginWithAppleRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithAppleWithHttpInfo(loginWithAppleRequest: LoginWithAppleRequest?) : ApiResponse {
+ val localVariableConfig = loginWithAppleRequestConfig(loginWithAppleRequest = loginWithAppleRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithApple
+ *
+ * @param loginWithAppleRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithAppleRequestConfig(loginWithAppleRequest: LoginWithAppleRequest?) : RequestConfig {
+ val localVariableBody = loginWithAppleRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithApple",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Login With Custom ID
+ * Signs the user in using a custom unique identifier generated by the Project, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithCustomIDRequest (optional)
+ * @return LoginWithCustomIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithCustomID(loginWithCustomIDRequest: LoginWithCustomIDRequest? = null) : LoginWithCustomIDResult {
+ val localVarResponse = loginWithCustomIDWithHttpInfo(loginWithCustomIDRequest = loginWithCustomIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithCustomIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With Custom ID
+ * Signs the user in using a custom unique identifier generated by the Project, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithCustomIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithCustomIDWithHttpInfo(loginWithCustomIDRequest: LoginWithCustomIDRequest?) : ApiResponse {
+ val localVariableConfig = loginWithCustomIDRequestConfig(loginWithCustomIDRequest = loginWithCustomIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithCustomID
+ *
+ * @param loginWithCustomIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithCustomIDRequestConfig(loginWithCustomIDRequest: LoginWithCustomIDRequest?) : RequestConfig {
+ val localVariableBody = loginWithCustomIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithCustomID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Login With Email Address
+ * Signs the user into the AvatarYug account, returning a session identifier that can subsequently be used for API calls which require an authenticated user. Unlike most other login API calls, LoginWithEmailAddress does not permit the creation of new accounts via the CreateAccountFlag. E
+ * @param loginWithEmailAddressRequest (optional)
+ * @return LoginWithEmailAddressResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithEmailAddress(loginWithEmailAddressRequest: LoginWithEmailAddressRequest? = null) : LoginWithEmailAddressResult {
+ val localVarResponse = loginWithEmailAddressWithHttpInfo(loginWithEmailAddressRequest = loginWithEmailAddressRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithEmailAddressResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With Email Address
+ * Signs the user into the AvatarYug account, returning a session identifier that can subsequently be used for API calls which require an authenticated user. Unlike most other login API calls, LoginWithEmailAddress does not permit the creation of new accounts via the CreateAccountFlag. E
+ * @param loginWithEmailAddressRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithEmailAddressWithHttpInfo(loginWithEmailAddressRequest: LoginWithEmailAddressRequest?) : ApiResponse {
+ val localVariableConfig = loginWithEmailAddressRequestConfig(loginWithEmailAddressRequest = loginWithEmailAddressRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithEmailAddress
+ *
+ * @param loginWithEmailAddressRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithEmailAddressRequestConfig(loginWithEmailAddressRequest: LoginWithEmailAddressRequest?) : RequestConfig {
+ val localVariableBody = loginWithEmailAddressRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithEmailAddress",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Login With Facebook
+ * Signs the user in using a Facebook access token, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithFacebookRequest (optional)
+ * @return LoginWithFacebookResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithFacebook(loginWithFacebookRequest: LoginWithFacebookRequest? = null) : LoginWithFacebookResult {
+ val localVarResponse = loginWithFacebookWithHttpInfo(loginWithFacebookRequest = loginWithFacebookRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithFacebookResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With Facebook
+ * Signs the user in using a Facebook access token, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithFacebookRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithFacebookWithHttpInfo(loginWithFacebookRequest: LoginWithFacebookRequest?) : ApiResponse {
+ val localVariableConfig = loginWithFacebookRequestConfig(loginWithFacebookRequest = loginWithFacebookRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithFacebook
+ *
+ * @param loginWithFacebookRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithFacebookRequestConfig(loginWithFacebookRequest: LoginWithFacebookRequest?) : RequestConfig {
+ val localVariableBody = loginWithFacebookRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithFacebook",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Login With Google Account
+ * Signs the user in using their Google account credentials
+ * @param loginWithGoogleRequest (optional)
+ * @return LoginWithGoogleResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithGoogle(loginWithGoogleRequest: LoginWithGoogleRequest? = null) : LoginWithGoogleResult {
+ val localVarResponse = loginWithGoogleWithHttpInfo(loginWithGoogleRequest = loginWithGoogleRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithGoogleResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With Google Account
+ * Signs the user in using their Google account credentials
+ * @param loginWithGoogleRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithGoogleWithHttpInfo(loginWithGoogleRequest: LoginWithGoogleRequest?) : ApiResponse {
+ val localVariableConfig = loginWithGoogleRequestConfig(loginWithGoogleRequest = loginWithGoogleRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithGoogle
+ *
+ * @param loginWithGoogleRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithGoogleRequestConfig(loginWithGoogleRequest: LoginWithGoogleRequest?) : RequestConfig {
+ val localVariableBody = loginWithGoogleRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithGoogle",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Login With IOS Device ID
+ * Signs the user in using the vendor-specific iOS device identifier, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithIOSDeviceIDRequest (optional)
+ * @return LoginWithIOSDeviceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun loginWithIOSDeviceID(loginWithIOSDeviceIDRequest: LoginWithIOSDeviceIDRequest? = null) : LoginWithIOSDeviceIDResult {
+ val localVarResponse = loginWithIOSDeviceIDWithHttpInfo(loginWithIOSDeviceIDRequest = loginWithIOSDeviceIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LoginWithIOSDeviceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Login With IOS Device ID
+ * Signs the user in using the vendor-specific iOS device identifier, returning a session identifier that can subsequently be used for API calls which require an authenticated user
+ * @param loginWithIOSDeviceIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun loginWithIOSDeviceIDWithHttpInfo(loginWithIOSDeviceIDRequest: LoginWithIOSDeviceIDRequest?) : ApiResponse {
+ val localVariableConfig = loginWithIOSDeviceIDRequestConfig(loginWithIOSDeviceIDRequest = loginWithIOSDeviceIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation loginWithIOSDeviceID
+ *
+ * @param loginWithIOSDeviceIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun loginWithIOSDeviceIDRequestConfig(loginWithIOSDeviceIDRequest: LoginWithIOSDeviceIDRequest?) : RequestConfig {
+ val localVariableBody = loginWithIOSDeviceIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LoginWithIOSDeviceID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Register User
+ *
+ * @param registerUserRequest (optional)
+ * @return RegisterUserResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun registerUser(registerUserRequest: RegisterUserRequest? = null) : RegisterUserResult {
+ val localVarResponse = registerUserWithHttpInfo(registerUserRequest = registerUserRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as RegisterUserResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Register User
+ *
+ * @param registerUserRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun registerUserWithHttpInfo(registerUserRequest: RegisterUserRequest?) : ApiResponse {
+ val localVariableConfig = registerUserRequestConfig(registerUserRequest = registerUserRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation registerUser
+ *
+ * @param registerUserRequest (optional)
+ * @return RequestConfig
+ */
+ fun registerUserRequestConfig(registerUserRequest: RegisterUserRequest?) : RequestConfig {
+ val localVariableBody = registerUserRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/RegisterUser",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String =
+ HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0]
+}
\ No newline at end of file
diff --git a/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AvatarManagementApi.kt b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AvatarManagementApi.kt
new file mode 100644
index 0000000..5354819
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/AvatarManagementApi.kt
@@ -0,0 +1,943 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package com.Avataryug.client.Apis
+
+import Avataryug.Client.AvatarProjectSettings
+import com.Avataryug.client.Infrastructure.ApiClient
+import java.io.IOException
+import okhttp3.OkHttpClient
+import okhttp3.HttpUrl
+
+import com.Avataryug.client.Models.GenerateAvatarMeshRequest
+import com.Avataryug.client.Models.GenerateAvatarMeshResult
+import com.Avataryug.client.Models.GetAllBucketVerticesResult
+import com.Avataryug.client.Models.GetAvatarPresetByIDRequest
+import com.Avataryug.client.Models.GetAvatarPresetsResult
+import com.Avataryug.client.Models.GetClipsByIDResult
+import com.Avataryug.client.Models.GetClipsResult
+import com.Avataryug.client.Models.GetExpressionByIDResult
+import com.Avataryug.client.Models.GetExpressionsResult
+import com.Avataryug.client.Models.GrantAvatarPresetItemsToUserRequest
+import com.Avataryug.client.Models.GrantAvatarPresetItemsToUserResult
+import com.Avataryug.client.Models.GrantAvatarPresetToUserRequest
+import com.Avataryug.client.Models.GrantAvatarPresetToUserResult
+import com.Avataryug.client.Models.RenderAvatarImageRequest
+import com.Avataryug.client.Models.RenderAvatarImageResult
+import com.Avataryug.client.Models.SyncAvatarsRequest
+import com.Avataryug.client.Models.SyncAvatarsResult
+
+import com.Avataryug.client.Infrastructure.ApiResponse
+import com.Avataryug.client.Infrastructure.ClientException
+import com.Avataryug.client.Infrastructure.ClientError
+import com.Avataryug.client.Infrastructure.ServerException
+import com.Avataryug.client.Infrastructure.ServerError
+import com.Avataryug.client.Infrastructure.MultiValueMap
+import com.Avataryug.client.Infrastructure.RequestConfig
+import com.Avataryug.client.Infrastructure.RequestMethod
+import com.Avataryug.client.Infrastructure.ResponseType
+import com.Avataryug.client.Infrastructure.Success
+
+/**
+ * Represents a collection of functions to interact with the API endpoints
+ */
+class AvatarManagementApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ val id = AvatarProjectSettings.Project_Id
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "https://$id.avataryugapi.com/client")
+ }
+ }
+
+ /**
+ * Generate Avatar Mesh
+ * Generates the 3D mesh as per the configuration in the Config panel
+ * @param generateAvatarMeshRequest (optional)
+ * @return GenerateAvatarMeshResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun generateAvatarMesh(generateAvatarMeshRequest: GenerateAvatarMeshRequest? = null) : GenerateAvatarMeshResult {
+ val localVarResponse = generateAvatarMeshWithHttpInfo(generateAvatarMeshRequest = generateAvatarMeshRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GenerateAvatarMeshResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Generate Avatar Mesh
+ * Generates the 3D mesh as per the configuration in the Config panel
+ * @param generateAvatarMeshRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun generateAvatarMeshWithHttpInfo(generateAvatarMeshRequest: GenerateAvatarMeshRequest?) : ApiResponse {
+ val localVariableConfig = generateAvatarMeshRequestConfig(generateAvatarMeshRequest = generateAvatarMeshRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation generateAvatarMesh
+ *
+ * @param generateAvatarMeshRequest (optional)
+ * @return RequestConfig
+ */
+ fun generateAvatarMeshRequestConfig(generateAvatarMeshRequest: GenerateAvatarMeshRequest?) : RequestConfig {
+ val localVariableBody = generateAvatarMeshRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/GenerateAvatarMesh",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Avatar Presets
+ * Get all avatar presets
+ * @return GetAvatarPresetsResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getAvatarPresets(status: kotlin.Int, Gender: kotlin.Int) : GetAvatarPresetsResult {
+ val localVarResponse = getAvatarPresetsWithHttpInfo(status,Gender)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetAvatarPresetsResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Avatar Presets
+ * Get all avatar presets
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getAvatarPresetsWithHttpInfo(status: kotlin.Int, Gender: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getAvatarPresetsRequestConfig(status, Gender)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getAvatarPresets
+ *
+ * @return RequestConfig
+ */
+ fun getAvatarPresetsRequestConfig(status: kotlin.Int, Gender: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Status", listOf(status.toString()))
+ put("Gender", listOf(Gender.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetAvatarPresets",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Avatar Presets By ID
+ * Retrive Avatar preset by ID
+ * @param avatarPresetID Unique Identifier for the Avatar Preset which is being requested
+ * @return GetAvatarPresetByIDRequest
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getAvatarPresetsByID(avatarPresetID: kotlin.String) : GetAvatarPresetByIDRequest {
+ val localVarResponse = getAvatarPresetsByIDWithHttpInfo(avatarPresetID = avatarPresetID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetAvatarPresetByIDRequest
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Avatar Presets By ID
+ * Retrive Avatar preset by ID
+ * @param avatarPresetID Unique Identifier for the Avatar Preset which is being requested
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getAvatarPresetsByIDWithHttpInfo(avatarPresetID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getAvatarPresetsByIDRequestConfig(avatarPresetID = avatarPresetID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getAvatarPresetsByID
+ *
+ * @param avatarPresetID Unique Identifier for the Avatar Preset which is being requested
+ * @return RequestConfig
+ */
+ fun getAvatarPresetsByIDRequestConfig(avatarPresetID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("AvatarPresetID", listOf(avatarPresetID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetAvatarPresetsByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Clips
+ * Get all the clips by Active status
+ * @param status Status of the clips
+ * @return GetClipsResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getClips(status: kotlin.Int) : GetClipsResult {
+ val localVarResponse = getClipsWithHttpInfo(status = status)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetClipsResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Clips
+ * Get all the clips by Active status
+ * @param status Status of the clips
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getClipsWithHttpInfo(status: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getClipsRequestConfig(status = status)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getClips
+ *
+ * @param status Status of the clips
+ * @return RequestConfig
+ */
+ fun getClipsRequestConfig(status: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Status", listOf(status.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetClips",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Clips By ID
+ * Get the specified clip's details by providing ClipID
+ * @param clipID Unique Identifier for the clip
+ * @return GetClipsByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getClipsByID(clipID: kotlin.String) : GetClipsByIDResult {
+ val localVarResponse = getClipsByIDWithHttpInfo(clipID = clipID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetClipsByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Clips By ID
+ * Get the specified clip's details by providing ClipID
+ * @param clipID Unique Identifier for the clip
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getClipsByIDWithHttpInfo(clipID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getClipsByIDRequestConfig(clipID = clipID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getClipsByID
+ *
+ * @param clipID Unique Identifier for the clip
+ * @return RequestConfig
+ */
+ fun getClipsByIDRequestConfig(clipID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("ClipID", listOf(clipID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetClipsByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Expression By ID
+ * Get the specified expression details by providing ExpressionID
+ * @param expressionID Unique Identifier for the expression
+ * @return GetExpressionByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getExpressionByID(expressionID: kotlin.String) : GetExpressionByIDResult {
+ val localVarResponse = getExpressionByIDWithHttpInfo(expressionID = expressionID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetExpressionByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Expression By ID
+ * Get the specified expression details by providing ExpressionID
+ * @param expressionID Unique Identifier for the expression
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getExpressionByIDWithHttpInfo(expressionID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getExpressionByIDRequestConfig(expressionID = expressionID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getExpressionByID
+ *
+ * @param expressionID Unique Identifier for the expression
+ * @return RequestConfig
+ */
+ fun getExpressionByIDRequestConfig(expressionID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("ExpressionID", listOf(expressionID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetExpressionByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Expressions
+ * Get all the active expressions
+ * @param status Status of Expressions
+ * @return GetExpressionsResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getExpressions(status: kotlin.Int) : GetExpressionsResult {
+ val localVarResponse = getExpressionsWithHttpInfo(status = status)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetExpressionsResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Expressions
+ * Get all the active expressions
+ * @param status Status of Expressions
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getExpressionsWithHttpInfo(status: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getExpressionsRequestConfig(status = status)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getExpressions
+ *
+ * @param status Status of Expressions
+ * @return RequestConfig
+ */
+ fun getExpressionsRequestConfig(status: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Status", listOf(status.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetExpressions",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get All Bucket Vertices
+ * Get vertices for all buckets
+ * @param platform Name of the platform. I.e. Unreal, Unity
+ * @return GetAllBucketVerticesResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getGetallbucketvertices(platform: kotlin.String) : GetAllBucketVerticesResult {
+ val localVarResponse = getGetallbucketverticesWithHttpInfo(platform = platform)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetAllBucketVerticesResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get All Bucket Vertices
+ * Get vertices for all buckets
+ * @param platform Name of the platform. I.e. Unreal, Unity
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getGetallbucketverticesWithHttpInfo(platform: kotlin.String) : ApiResponse {
+ val localVariableConfig = getGetallbucketverticesRequestConfig(platform = platform)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getGetallbucketvertices
+ *
+ * @param platform Name of the platform. I.e. Unreal, Unity
+ * @return RequestConfig
+ */
+ fun getGetallbucketverticesRequestConfig(platform: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Platform", listOf(platform.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetAllBucketVertices",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Grant Avatar Preset Items To User
+ *
+ * @param grantAvatarPresetItemsToUserRequest Request payload (optional)
+ * @return GrantAvatarPresetItemsToUserResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun grantAvatarPresetItemsToUser(grantAvatarPresetItemsToUserRequest: GrantAvatarPresetItemsToUserRequest? = null) : GrantAvatarPresetItemsToUserResult {
+ val localVarResponse = grantAvatarPresetItemsToUserWithHttpInfo(grantAvatarPresetItemsToUserRequest = grantAvatarPresetItemsToUserRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GrantAvatarPresetItemsToUserResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Grant Avatar Preset Items To User
+ *
+ * @param grantAvatarPresetItemsToUserRequest Request payload (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun grantAvatarPresetItemsToUserWithHttpInfo(grantAvatarPresetItemsToUserRequest: GrantAvatarPresetItemsToUserRequest?) : ApiResponse {
+ val localVariableConfig = grantAvatarPresetItemsToUserRequestConfig(grantAvatarPresetItemsToUserRequest = grantAvatarPresetItemsToUserRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation grantAvatarPresetItemsToUser
+ *
+ * @param grantAvatarPresetItemsToUserRequest Request payload (optional)
+ * @return RequestConfig
+ */
+ fun grantAvatarPresetItemsToUserRequestConfig(grantAvatarPresetItemsToUserRequest: GrantAvatarPresetItemsToUserRequest?) : RequestConfig {
+ val localVariableBody = grantAvatarPresetItemsToUserRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/GrantAvatarPresetItemsToUser",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Grant Avatar Preset To User
+ *
+ * @param grantAvatarPresetToUserRequest (optional)
+ * @return GrantAvatarPresetToUserResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun grantAvatarPresetToUser(grantAvatarPresetToUserRequest: GrantAvatarPresetToUserRequest? = null) : GrantAvatarPresetToUserResult {
+ val localVarResponse = grantAvatarPresetToUserWithHttpInfo(grantAvatarPresetToUserRequest = grantAvatarPresetToUserRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GrantAvatarPresetToUserResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Grant Avatar Preset To User
+ *
+ * @param grantAvatarPresetToUserRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun grantAvatarPresetToUserWithHttpInfo(grantAvatarPresetToUserRequest: GrantAvatarPresetToUserRequest?) : ApiResponse {
+ val localVariableConfig = grantAvatarPresetToUserRequestConfig(grantAvatarPresetToUserRequest = grantAvatarPresetToUserRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation grantAvatarPresetToUser
+ *
+ * @param grantAvatarPresetToUserRequest (optional)
+ * @return RequestConfig
+ */
+ fun grantAvatarPresetToUserRequestConfig(grantAvatarPresetToUserRequest: GrantAvatarPresetToUserRequest?) : RequestConfig {
+ val localVariableBody = grantAvatarPresetToUserRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/GrantAvatarPresetToUser",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Render Avatar Image
+ *
+ * @param renderAvatarImageRequest (optional)
+ * @return RenderAvatarImageResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun renderAvatarImage(renderAvatarImageRequest: RenderAvatarImageRequest? = null) : RenderAvatarImageResult {
+ val localVarResponse = renderAvatarImageWithHttpInfo(renderAvatarImageRequest = renderAvatarImageRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as RenderAvatarImageResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Render Avatar Image
+ *
+ * @param renderAvatarImageRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun renderAvatarImageWithHttpInfo(renderAvatarImageRequest: RenderAvatarImageRequest?) : ApiResponse {
+ val localVariableConfig = renderAvatarImageRequestConfig(renderAvatarImageRequest = renderAvatarImageRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation renderAvatarImage
+ *
+ * @param renderAvatarImageRequest (optional)
+ * @return RequestConfig
+ */
+ fun renderAvatarImageRequestConfig(renderAvatarImageRequest: RenderAvatarImageRequest?) : RequestConfig {
+ val localVariableBody = renderAvatarImageRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/RenderAvatarImage",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Sync Avatars
+ * Creates missing avatars into the mentioned platform for the user
+ * @param syncAvatarsRequest (optional)
+ * @return SyncAvatarsResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun syncAvatars(syncAvatarsRequest: SyncAvatarsRequest? = null) : SyncAvatarsResult {
+ val localVarResponse = syncAvatarsWithHttpInfo(syncAvatarsRequest = syncAvatarsRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as SyncAvatarsResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Sync Avatars
+ * Creates missing avatars into the mentioned platform for the user
+ * @param syncAvatarsRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun syncAvatarsWithHttpInfo(syncAvatarsRequest: SyncAvatarsRequest?) : ApiResponse {
+ val localVariableConfig = syncAvatarsRequestConfig(syncAvatarsRequest = syncAvatarsRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation syncAvatars
+ *
+ * @param syncAvatarsRequest (optional)
+ * @return RequestConfig
+ */
+ fun syncAvatarsRequestConfig(syncAvatarsRequest: SyncAvatarsRequest?) : RequestConfig {
+ val localVariableBody = syncAvatarsRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/SyncAvatars",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String =
+ HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0]
+}
diff --git a/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/DefaultApi.kt b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/DefaultApi.kt
new file mode 100644
index 0000000..1d06926
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/DefaultApi.kt
@@ -0,0 +1,116 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package com.Avataryug.client.Apis
+
+import Avataryug.Client.AvatarProjectSettings
+import com.Avataryug.client.Infrastructure.ApiClient
+import java.io.IOException
+import okhttp3.OkHttpClient
+import okhttp3.HttpUrl
+
+import com.Avataryug.client.Models.GetUserIDfromSessionTicket
+
+import com.Avataryug.client.Infrastructure.ApiResponse
+import com.Avataryug.client.Infrastructure.ClientException
+import com.Avataryug.client.Infrastructure.ClientError
+import com.Avataryug.client.Infrastructure.ServerException
+import com.Avataryug.client.Infrastructure.ServerError
+import com.Avataryug.client.Infrastructure.MultiValueMap
+import com.Avataryug.client.Infrastructure.RequestConfig
+import com.Avataryug.client.Infrastructure.RequestMethod
+import com.Avataryug.client.Infrastructure.ResponseType
+import com.Avataryug.client.Infrastructure.Success
+
+class DefaultApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ val id = AvatarProjectSettings.Project_Id
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "https://$id.avataryugapi.com/client")
+ }
+ }
+
+ /**
+ * Get UserID from Session Ticket
+ * This API gives UserID from the session icket
+ * @return GetUserIDfromSessionTicket
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getUserIDfromSessionTicket() : GetUserIDfromSessionTicket {
+ val localVarResponse = getUserIDfromSessionTicketWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetUserIDfromSessionTicket
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get UserID from Session Ticket
+ * This API gives UserID from the session icket
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getUserIDfromSessionTicketWithHttpInfo() : ApiResponse {
+ val localVariableConfig = getUserIDfromSessionTicketRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getUserIDfromSessionTicket
+ *
+ * @return RequestConfig
+ */
+ fun getUserIDfromSessionTicketRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetUserIDfromSessionTicket",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String =
+ HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0]
+}
diff --git a/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/EconomyApi.kt b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/EconomyApi.kt
new file mode 100644
index 0000000..e8d4215
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/EconomyApi.kt
@@ -0,0 +1,658 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package com.Avataryug.client.Apis
+
+import Avataryug.Client.AvatarProjectSettings
+import com.Avataryug.client.Infrastructure.ApiClient
+import java.io.IOException
+import okhttp3.OkHttpClient
+import okhttp3.HttpUrl
+
+import com.Avataryug.client.Models.GetEconomyBundleByIDResult
+import com.Avataryug.client.Models.GetEconomyBundlesResult
+import com.Avataryug.client.Models.GetEconomyContainerByIDResult
+import com.Avataryug.client.Models.GetEconomyContainersResult
+import com.Avataryug.client.Models.GetEconomyItemsByIDResult
+import com.Avataryug.client.Models.GetEconomyItemsResult
+import com.Avataryug.client.Models.GetEconomyStoresResult
+import com.Avataryug.client.Models.GetStoreItemsByIDResult
+
+import com.Avataryug.client.Infrastructure.ApiResponse
+import com.Avataryug.client.Infrastructure.ClientException
+import com.Avataryug.client.Infrastructure.ClientError
+import com.Avataryug.client.Infrastructure.ServerException
+import com.Avataryug.client.Infrastructure.ServerError
+import com.Avataryug.client.Infrastructure.MultiValueMap
+import com.Avataryug.client.Infrastructure.RequestConfig
+import com.Avataryug.client.Infrastructure.RequestMethod
+import com.Avataryug.client.Infrastructure.ResponseType
+import com.Avataryug.client.Infrastructure.Success
+
+/**
+ * Represents a collection of functions to interact with the API endpoints
+ */
+class EconomyApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ val id = AvatarProjectSettings.Project_Id
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "https://$id.avataryugapi.com/client")
+ }
+ }
+
+ /**
+ * Get Economy Bundles by ID
+ * Get Economy Bundles by ID
+ * @param bundleID Unqiue identifier for the bundle which is being requested.
+ * @return GetEconomyBundleByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyBundleByID(bundleID: kotlin.String) : GetEconomyBundleByIDResult {
+ val localVarResponse = getEconomyBundleByIDWithHttpInfo(bundleID = bundleID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyBundleByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Bundles by ID
+ * Get Economy Bundles by ID
+ * @param bundleID Unqiue identifier for the bundle which is being requested.
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyBundleByIDWithHttpInfo(bundleID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getEconomyBundleByIDRequestConfig(bundleID = bundleID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyBundleByID
+ *
+ * @param bundleID Unqiue identifier for the bundle which is being requested.
+ * @return RequestConfig
+ */
+ fun getEconomyBundleByIDRequestConfig(bundleID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("BundleID", listOf(bundleID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyBundleByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Economy Bundles
+ * Get Economy Bundles
+ * @param status Status of the Bundles
+ * @return GetEconomyBundlesResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyBundles(status: kotlin.Int) : GetEconomyBundlesResult {
+ val localVarResponse = getEconomyBundlesWithHttpInfo(status = status)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyBundlesResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Bundles
+ * Get Economy Bundles
+ * @param status Status of the Bundles
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyBundlesWithHttpInfo(status: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getEconomyBundlesRequestConfig(status = status)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyBundles
+ *
+ * @param status Status of the Bundles
+ * @return RequestConfig
+ */
+ fun getEconomyBundlesRequestConfig(status: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Status", listOf(status.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyBundles",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Economy Container by ID
+ * Get Economy Container by ID
+ * @param containerID Unqiue identifier for the container which is being requested.
+ * @return GetEconomyContainerByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyContainerByID(containerID: kotlin.String) : GetEconomyContainerByIDResult {
+ val localVarResponse = getEconomyContainerByIDWithHttpInfo(containerID = containerID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyContainerByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Container by ID
+ * Get Economy Container by ID
+ * @param containerID Unqiue identifier for the container which is being requested.
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyContainerByIDWithHttpInfo(containerID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getEconomyContainerByIDRequestConfig(containerID = containerID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyContainerByID
+ *
+ * @param containerID Unqiue identifier for the container which is being requested.
+ * @return RequestConfig
+ */
+ fun getEconomyContainerByIDRequestConfig(containerID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("ContainerID", listOf(containerID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyContainerByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Economy Containers
+ * Get Economy Containers
+ * @param status Status of the Containers
+ * @return GetEconomyContainersResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyContainers(status: kotlin.Int) : GetEconomyContainersResult {
+ val localVarResponse = getEconomyContainersWithHttpInfo(status = status)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyContainersResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Containers
+ * Get Economy Containers
+ * @param status Status of the Containers
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyContainersWithHttpInfo(status: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getEconomyContainersRequestConfig(status = status)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyContainers
+ *
+ * @param status Status of the Containers
+ * @return RequestConfig
+ */
+ fun getEconomyContainersRequestConfig(status: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Status", listOf(status.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyContainers",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Economy Items
+ * Get Economy Items
+ * @param category Category of the Item
+ * @param status Status of the Item
+ * @param gender Gender type of the item
+ * @return GetEconomyItemsResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyItems(category: kotlin.String, status: kotlin.Int, gender: kotlin.Int) : GetEconomyItemsResult {
+ val localVarResponse = getEconomyItemsWithHttpInfo(category = category, status = status, gender = gender)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyItemsResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Items
+ * Get Economy Items
+ * @param category Category of the Item
+ * @param status Status of the Item
+ * @param gender Gender type of the item
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyItemsWithHttpInfo(category: kotlin.String, status: kotlin.Int, gender: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getEconomyItemsRequestConfig(category = category, status = status, gender = gender)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyItems
+ *
+ * @param category Category of the Item
+ * @param status Status of the Item
+ * @param gender Gender type of the item
+ * @return RequestConfig
+ */
+ fun getEconomyItemsRequestConfig(category: kotlin.String, status: kotlin.Int, gender: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Category", listOf(category.toString()))
+ put("Status", listOf(status.toString()))
+ put("Gender", listOf(gender.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyItems",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Economy Item by ID
+ * Get Economy Item by ID
+ * @param itemID Unqiue identifier for the item which is being requested.
+ * @return GetEconomyItemsByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyItemsByID(itemID: kotlin.String) : GetEconomyItemsByIDResult {
+ val localVarResponse = getEconomyItemsByIDWithHttpInfo(itemID = itemID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyItemsByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Item by ID
+ * Get Economy Item by ID
+ * @param itemID Unqiue identifier for the item which is being requested.
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyItemsByIDWithHttpInfo(itemID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getEconomyItemsByIDRequestConfig(itemID = itemID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyItemsByID
+ *
+ * @param itemID Unqiue identifier for the item which is being requested.
+ * @return RequestConfig
+ */
+ fun getEconomyItemsByIDRequestConfig(itemID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("ItemID", listOf(itemID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyItemsByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Economy Stores
+ * Get Economy Stores
+ * @param status Status of the Stores
+ * @return GetEconomyStoresResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getEconomyStores(status: kotlin.Int) : GetEconomyStoresResult {
+ val localVarResponse = getEconomyStoresWithHttpInfo(status = status)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetEconomyStoresResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Economy Stores
+ * Get Economy Stores
+ * @param status Status of the Stores
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getEconomyStoresWithHttpInfo(status: kotlin.Int) : ApiResponse {
+ val localVariableConfig = getEconomyStoresRequestConfig(status = status)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getEconomyStores
+ *
+ * @param status Status of the Stores
+ * @return RequestConfig
+ */
+ fun getEconomyStoresRequestConfig(status: kotlin.Int) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("Status", listOf(status.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetEconomyStores",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get Store Items by ID
+ * Retrieves the set of items defined for the specified store, including all prices defined
+ * @param storeID Unqiue identifier for the store which is being requested.
+ * @return GetStoreItemsByIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getStoreItemsByID(storeID: kotlin.String) : GetStoreItemsByIDResult {
+ val localVarResponse = getStoreItemsByIDWithHttpInfo(storeID = storeID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetStoreItemsByIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get Store Items by ID
+ * Retrieves the set of items defined for the specified store, including all prices defined
+ * @param storeID Unqiue identifier for the store which is being requested.
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getStoreItemsByIDWithHttpInfo(storeID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getStoreItemsByIDRequestConfig(storeID = storeID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getStoreItemsByID
+ *
+ * @param storeID Unqiue identifier for the store which is being requested.
+ * @return RequestConfig
+ */
+ fun getStoreItemsByIDRequestConfig(storeID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("StoreID", listOf(storeID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetStoreItemsByID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String =
+ HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0]
+}
diff --git a/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/UserAccountManagementApi.kt b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/UserAccountManagementApi.kt
new file mode 100644
index 0000000..16c09ec
--- /dev/null
+++ b/AvataryugKotlinSDK/app/src/main/java/Avataryug/Client/Api/UserAccountManagementApi.kt
@@ -0,0 +1,1930 @@
+/**
+ *
+ * Please note:
+ * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit this file manually.
+ *
+ */
+
+@file:Suppress(
+ "ArrayInDataClass",
+ "EnumEntryName",
+ "RemoveRedundantQualifierName",
+ "UnusedImport"
+)
+
+package com.Avataryug.client.Apis
+
+import Avataryug.Client.AvatarProjectSettings
+import com.Avataryug.client.Infrastructure.ApiClient
+import java.io.IOException
+import okhttp3.OkHttpClient
+import okhttp3.HttpUrl
+
+import com.Avataryug.client.Models.AddEmailPasswordRequest
+import com.Avataryug.client.Models.AddEmailPasswordResult
+import com.Avataryug.client.Models.AddGenericServiceIDRequest
+import com.Avataryug.client.Models.AddGenericServiceIDResult
+import com.Avataryug.client.Models.ChangePasswordRequest
+import com.Avataryug.client.Models.ChangePasswordResult
+import com.Avataryug.client.Models.DeleteUserResult
+import com.Avataryug.client.Models.GetUserAccountInfoResult
+import com.Avataryug.client.Models.GetUserProfileResult
+import com.Avataryug.client.Models.LinkAndroidDeviceIDRequest
+import com.Avataryug.client.Models.LinkAndroidDeviceIDResult
+import com.Avataryug.client.Models.LinkAppleRequest
+import com.Avataryug.client.Models.LinkAppleResult
+import com.Avataryug.client.Models.LinkCustomIDRequest
+import com.Avataryug.client.Models.LinkCustomIDResult
+import com.Avataryug.client.Models.LinkFacebookAccountRequest
+import com.Avataryug.client.Models.LinkFacebookAccountResult
+import com.Avataryug.client.Models.LinkGoogleAccountRequest
+import com.Avataryug.client.Models.LinkGoogleAccountResult
+import com.Avataryug.client.Models.LinkIOSDeviceIDRequest
+import com.Avataryug.client.Models.LinkIOSDeviceIDResult
+import com.Avataryug.client.Models.RemoveGenericServiceIDResult
+import com.Avataryug.client.Models.SendAccountRecoveryEmailRequset
+import com.Avataryug.client.Models.SendAccountRecoveryEmailResult
+import com.Avataryug.client.Models.SendAccountVerificationEmailRequest
+import com.Avataryug.client.Models.SendAccountVerificationEmailResult
+import com.Avataryug.client.Models.UnlinkAndroidDeviceIDResult
+import com.Avataryug.client.Models.UnlinkAppleResult
+import com.Avataryug.client.Models.UnlinkCustomIDResult
+import com.Avataryug.client.Models.UnlinkFacebookAccountResult
+import com.Avataryug.client.Models.UnlinkGoogleAccountResult
+import com.Avataryug.client.Models.UnlinkIOSDeviceIDResult
+import com.Avataryug.client.Models.UpdateDefaultAvatarIDRequest
+import com.Avataryug.client.Models.UpdateDefaultAvatarIDResult
+import com.Avataryug.client.Models.UpdateEmailPasswordRequest
+import com.Avataryug.client.Models.UpdateEmailPasswordResult
+import com.Avataryug.client.Models.UpdateUserDemographicsRequest
+import com.Avataryug.client.Models.UpdateUserDemographicsResult
+import com.Avataryug.client.Models.UpdateUserProjectDisplayNameRequest
+import com.Avataryug.client.Models.UpdateUserProjectDisplayNameResult
+import com.Avataryug.client.Models.VerifyUserWithEmailRequest
+import com.Avataryug.client.Models.VerifyUserWithEmailResult
+
+import com.Avataryug.client.Infrastructure.ApiResponse
+import com.Avataryug.client.Infrastructure.ClientException
+import com.Avataryug.client.Infrastructure.ClientError
+import com.Avataryug.client.Infrastructure.ServerException
+import com.Avataryug.client.Infrastructure.ServerError
+import com.Avataryug.client.Infrastructure.MultiValueMap
+import com.Avataryug.client.Infrastructure.RequestConfig
+import com.Avataryug.client.Infrastructure.RequestMethod
+import com.Avataryug.client.Infrastructure.ResponseType
+import com.Avataryug.client.Infrastructure.Success
+
+/**
+ * Represents a collection of functions to interact with the API endpoints
+ */
+class UserAccountManagementApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) {
+ companion object {
+ @JvmStatic
+ val defaultBasePath: String by lazy {
+ val id = AvatarProjectSettings.Project_Id
+ System.getProperties().getProperty(ApiClient.baseUrlKey, "https://$id.avataryugapi.com/client")
+ }
+ }
+
+ /**
+ * Add Email Password
+ * Adds AvatarYug email/password auth to an existing account created via an anonymous auth method, e.g. automatic device ID login.
+ * @param addEmailPasswordRequest (optional)
+ * @return AddEmailPasswordResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun addEmailPassword(addEmailPasswordRequest: AddEmailPasswordRequest? = null) : AddEmailPasswordResult {
+ val localVarResponse = addEmailPasswordWithHttpInfo(addEmailPasswordRequest = addEmailPasswordRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as AddEmailPasswordResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Add Email Password
+ * Adds AvatarYug email/password auth to an existing account created via an anonymous auth method, e.g. automatic device ID login.
+ * @param addEmailPasswordRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun addEmailPasswordWithHttpInfo(addEmailPasswordRequest: AddEmailPasswordRequest?) : ApiResponse {
+ val localVariableConfig = addEmailPasswordRequestConfig(addEmailPasswordRequest = addEmailPasswordRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation addEmailPassword
+ *
+ * @param addEmailPasswordRequest (optional)
+ * @return RequestConfig
+ */
+ fun addEmailPasswordRequestConfig(addEmailPasswordRequest: AddEmailPasswordRequest?) : RequestConfig {
+ val localVariableBody = addEmailPasswordRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/AddEmailPassword",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Add Generic Service ID
+ * Adds the specified generic service identifier to the user's AvatarYug account. This is designed to allow for a AvatarYug ID lookup of any arbitrary service identifier a Project wants to add. This identifier should never be used as authentication credentials, as the intent is that it is easily accessible by other users.
+ * @param addGenericServiceIDRequest (optional)
+ * @return AddGenericServiceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun addGenericServiceID(addGenericServiceIDRequest: AddGenericServiceIDRequest? = null) : AddGenericServiceIDResult {
+ val localVarResponse = addGenericServiceIDWithHttpInfo(addGenericServiceIDRequest = addGenericServiceIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as AddGenericServiceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Add Generic Service ID
+ * Adds the specified generic service identifier to the user's AvatarYug account. This is designed to allow for a AvatarYug ID lookup of any arbitrary service identifier a Project wants to add. This identifier should never be used as authentication credentials, as the intent is that it is easily accessible by other users.
+ * @param addGenericServiceIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun addGenericServiceIDWithHttpInfo(addGenericServiceIDRequest: AddGenericServiceIDRequest?) : ApiResponse {
+ val localVariableConfig = addGenericServiceIDRequestConfig(addGenericServiceIDRequest = addGenericServiceIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation addGenericServiceID
+ *
+ * @param addGenericServiceIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun addGenericServiceIDRequestConfig(addGenericServiceIDRequest: AddGenericServiceIDRequest?) : RequestConfig {
+ val localVariableBody = addGenericServiceIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/AddGenericServiceID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Change Password
+ *
+ * @param changePasswordRequest (optional)
+ * @return ChangePasswordResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun changePassword(changePasswordRequest: ChangePasswordRequest? = null) : ChangePasswordResult {
+ val localVarResponse = changePasswordWithHttpInfo(changePasswordRequest = changePasswordRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as ChangePasswordResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Change Password
+ *
+ * @param changePasswordRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun changePasswordWithHttpInfo(changePasswordRequest: ChangePasswordRequest?) : ApiResponse {
+ val localVariableConfig = changePasswordRequestConfig(changePasswordRequest = changePasswordRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation changePassword
+ *
+ * @param changePasswordRequest (optional)
+ * @return RequestConfig
+ */
+ fun changePasswordRequestConfig(changePasswordRequest: ChangePasswordRequest?) : RequestConfig {
+ val localVariableBody = changePasswordRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/ChangePassword",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Delete User
+ * Delete User Account from Avataryug platform.
+ * @return DeleteUserResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun deleteUser() : DeleteUserResult {
+ val localVarResponse = deleteUserWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as DeleteUserResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Delete User
+ * Delete User Account from Avataryug platform.
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun deleteUserWithHttpInfo() : ApiResponse {
+ val localVariableConfig = deleteUserRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation deleteUser
+ *
+ * @return RequestConfig
+ */
+ fun deleteUserRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.DELETE,
+ path = "/DeleteUser",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get User Account Info
+ * Get user's complete account information
+ * @return GetUserAccountInfoResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getUserAccountInfo() : GetUserAccountInfoResult {
+ val localVarResponse = getUserAccountInfoWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetUserAccountInfoResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get User Account Info
+ * Get user's complete account information
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getUserAccountInfoWithHttpInfo() : ApiResponse {
+ val localVariableConfig = getUserAccountInfoRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getUserAccountInfo
+ *
+ * @return RequestConfig
+ */
+ fun getUserAccountInfoRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetUserAccountInfo",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Get User Profile
+ * Get Public data for the User
+ * @param userID Unique AvatarYug assigned ID of the user on whom the operation will be performed
+ * @return GetUserProfileResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun getUserProfile(userID: kotlin.String) : GetUserProfileResult {
+ val localVarResponse = getUserProfileWithHttpInfo(userID = userID)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as GetUserProfileResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Get User Profile
+ * Get Public data for the User
+ * @param userID Unique AvatarYug assigned ID of the user on whom the operation will be performed
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun getUserProfileWithHttpInfo(userID: kotlin.String) : ApiResponse {
+ val localVariableConfig = getUserProfileRequestConfig(userID = userID)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation getUserProfile
+ *
+ * @param userID Unique AvatarYug assigned ID of the user on whom the operation will be performed
+ * @return RequestConfig
+ */
+ fun getUserProfileRequestConfig(userID: kotlin.String) : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf>()
+ .apply {
+ put("UserID", listOf(userID.toString()))
+ }
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.GET,
+ path = "/GetUserProfile",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Link Android Device ID
+ * Links the Android device identifier to the user's AvatarYug account
+ * @param linkAndroidDeviceIDRequest (optional)
+ * @return LinkAndroidDeviceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun linkAndroidDeviceID(linkAndroidDeviceIDRequest: LinkAndroidDeviceIDRequest? = null) : LinkAndroidDeviceIDResult {
+ val localVarResponse = linkAndroidDeviceIDWithHttpInfo(linkAndroidDeviceIDRequest = linkAndroidDeviceIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LinkAndroidDeviceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Link Android Device ID
+ * Links the Android device identifier to the user's AvatarYug account
+ * @param linkAndroidDeviceIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun linkAndroidDeviceIDWithHttpInfo(linkAndroidDeviceIDRequest: LinkAndroidDeviceIDRequest?) : ApiResponse {
+ val localVariableConfig = linkAndroidDeviceIDRequestConfig(linkAndroidDeviceIDRequest = linkAndroidDeviceIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation linkAndroidDeviceID
+ *
+ * @param linkAndroidDeviceIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun linkAndroidDeviceIDRequestConfig(linkAndroidDeviceIDRequest: LinkAndroidDeviceIDRequest?) : RequestConfig {
+ val localVariableBody = linkAndroidDeviceIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LinkAndroidDeviceID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Link Apple
+ * Links the Apple account associated with the token to the user's AvatarYug account.
+ * @param linkAppleRequest (optional)
+ * @return LinkAppleResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun linkApple(linkAppleRequest: LinkAppleRequest? = null) : LinkAppleResult {
+ val localVarResponse = linkAppleWithHttpInfo(linkAppleRequest = linkAppleRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LinkAppleResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Link Apple
+ * Links the Apple account associated with the token to the user's AvatarYug account.
+ * @param linkAppleRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun linkAppleWithHttpInfo(linkAppleRequest: LinkAppleRequest?) : ApiResponse {
+ val localVariableConfig = linkAppleRequestConfig(linkAppleRequest = linkAppleRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation linkApple
+ *
+ * @param linkAppleRequest (optional)
+ * @return RequestConfig
+ */
+ fun linkAppleRequestConfig(linkAppleRequest: LinkAppleRequest?) : RequestConfig {
+ val localVariableBody = linkAppleRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LinkApple",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Link Custom ID
+ * Links the custom identifier, generated by the Project, to the user's AvatarYug account
+ * @param linkCustomIDRequest (optional)
+ * @return LinkCustomIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun linkCustomID(linkCustomIDRequest: LinkCustomIDRequest? = null) : LinkCustomIDResult {
+ val localVarResponse = linkCustomIDWithHttpInfo(linkCustomIDRequest = linkCustomIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LinkCustomIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Link Custom ID
+ * Links the custom identifier, generated by the Project, to the user's AvatarYug account
+ * @param linkCustomIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun linkCustomIDWithHttpInfo(linkCustomIDRequest: LinkCustomIDRequest?) : ApiResponse {
+ val localVariableConfig = linkCustomIDRequestConfig(linkCustomIDRequest = linkCustomIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation linkCustomID
+ *
+ * @param linkCustomIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun linkCustomIDRequestConfig(linkCustomIDRequest: LinkCustomIDRequest?) : RequestConfig {
+ val localVariableBody = linkCustomIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LinkCustomID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Link Facebook Account
+ * Links the Facebook account associated with the provided Facebook access token to the user's AvatarYug account
+ * @param linkFacebookAccountRequest (optional)
+ * @return LinkFacebookAccountResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun linkFacebookAccount(linkFacebookAccountRequest: LinkFacebookAccountRequest? = null) : LinkFacebookAccountResult {
+ val localVarResponse = linkFacebookAccountWithHttpInfo(linkFacebookAccountRequest = linkFacebookAccountRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LinkFacebookAccountResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Link Facebook Account
+ * Links the Facebook account associated with the provided Facebook access token to the user's AvatarYug account
+ * @param linkFacebookAccountRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun linkFacebookAccountWithHttpInfo(linkFacebookAccountRequest: LinkFacebookAccountRequest?) : ApiResponse {
+ val localVariableConfig = linkFacebookAccountRequestConfig(linkFacebookAccountRequest = linkFacebookAccountRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation linkFacebookAccount
+ *
+ * @param linkFacebookAccountRequest (optional)
+ * @return RequestConfig
+ */
+ fun linkFacebookAccountRequestConfig(linkFacebookAccountRequest: LinkFacebookAccountRequest?) : RequestConfig {
+ val localVariableBody = linkFacebookAccountRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LinkFacebookAccount",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Link Google Account
+ * Links the currently signed-in user account to their Google account, using their Google account credentials
+ * @param linkGoogleAccountRequest Linked Google account to user's account successfully (optional)
+ * @return LinkGoogleAccountResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun linkGoogleAccount(linkGoogleAccountRequest: LinkGoogleAccountRequest? = null) : LinkGoogleAccountResult {
+ val localVarResponse = linkGoogleAccountWithHttpInfo(linkGoogleAccountRequest = linkGoogleAccountRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LinkGoogleAccountResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Link Google Account
+ * Links the currently signed-in user account to their Google account, using their Google account credentials
+ * @param linkGoogleAccountRequest Linked Google account to user's account successfully (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun linkGoogleAccountWithHttpInfo(linkGoogleAccountRequest: LinkGoogleAccountRequest?) : ApiResponse {
+ val localVariableConfig = linkGoogleAccountRequestConfig(linkGoogleAccountRequest = linkGoogleAccountRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation linkGoogleAccount
+ *
+ * @param linkGoogleAccountRequest Linked Google account to user's account successfully (optional)
+ * @return RequestConfig
+ */
+ fun linkGoogleAccountRequestConfig(linkGoogleAccountRequest: LinkGoogleAccountRequest?) : RequestConfig {
+ val localVariableBody = linkGoogleAccountRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LinkGoogleAccount",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Link IOS Device ID
+ * Links the vendor-specific iOS device identifier to the user's AvatarYug account
+ * @param linkIOSDeviceIDRequest (optional)
+ * @return LinkIOSDeviceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun linkIOSDeviceID(linkIOSDeviceIDRequest: LinkIOSDeviceIDRequest? = null) : LinkIOSDeviceIDResult {
+ val localVarResponse = linkIOSDeviceIDWithHttpInfo(linkIOSDeviceIDRequest = linkIOSDeviceIDRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as LinkIOSDeviceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Link IOS Device ID
+ * Links the vendor-specific iOS device identifier to the user's AvatarYug account
+ * @param linkIOSDeviceIDRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun linkIOSDeviceIDWithHttpInfo(linkIOSDeviceIDRequest: LinkIOSDeviceIDRequest?) : ApiResponse {
+ val localVariableConfig = linkIOSDeviceIDRequestConfig(linkIOSDeviceIDRequest = linkIOSDeviceIDRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation linkIOSDeviceID
+ *
+ * @param linkIOSDeviceIDRequest (optional)
+ * @return RequestConfig
+ */
+ fun linkIOSDeviceIDRequestConfig(linkIOSDeviceIDRequest: LinkIOSDeviceIDRequest?) : RequestConfig {
+ val localVariableBody = linkIOSDeviceIDRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/LinkIOSDeviceID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Remove Generic Service ID
+ * Removes the generic service identifier from the user's AvatarYug account.
+ * @return RemoveGenericServiceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun removeGenericServiceID() : RemoveGenericServiceIDResult {
+ val localVarResponse = removeGenericServiceIDWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as RemoveGenericServiceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Remove Generic Service ID
+ * Removes the generic service identifier from the user's AvatarYug account.
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun removeGenericServiceIDWithHttpInfo() : ApiResponse {
+ val localVariableConfig = removeGenericServiceIDRequestConfig()
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation removeGenericServiceID
+ *
+ * @return RequestConfig
+ */
+ fun removeGenericServiceIDRequestConfig() : RequestConfig {
+ val localVariableBody = null
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/RemoveGenericServiceID",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Send Account Recovery Email
+ *
+ * @param sendAccountRecoveryEmailRequset (optional)
+ * @return SendAccountRecoveryEmailResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun sendAccountRecoveryEmail(sendAccountRecoveryEmailRequset: SendAccountRecoveryEmailRequset? = null) : SendAccountRecoveryEmailResult {
+ val localVarResponse = sendAccountRecoveryEmailWithHttpInfo(sendAccountRecoveryEmailRequset = sendAccountRecoveryEmailRequset)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as SendAccountRecoveryEmailResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Send Account Recovery Email
+ *
+ * @param sendAccountRecoveryEmailRequset (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun sendAccountRecoveryEmailWithHttpInfo(sendAccountRecoveryEmailRequset: SendAccountRecoveryEmailRequset?) : ApiResponse {
+ val localVariableConfig = sendAccountRecoveryEmailRequestConfig(sendAccountRecoveryEmailRequset = sendAccountRecoveryEmailRequset)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation sendAccountRecoveryEmail
+ *
+ * @param sendAccountRecoveryEmailRequset (optional)
+ * @return RequestConfig
+ */
+ fun sendAccountRecoveryEmailRequestConfig(sendAccountRecoveryEmailRequset: SendAccountRecoveryEmailRequset?) : RequestConfig {
+ val localVariableBody = sendAccountRecoveryEmailRequset
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/SendAccountRecoveryEmail",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Send Account Verification Email
+ * Send Verification Email to verify the email address
+ * @param sendAccountVerificationEmailRequest (optional)
+ * @return SendAccountVerificationEmailResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun sendAccountVerificationEmail(sendAccountVerificationEmailRequest: SendAccountVerificationEmailRequest? = null) : SendAccountVerificationEmailResult {
+ val localVarResponse = sendAccountVerificationEmailWithHttpInfo(sendAccountVerificationEmailRequest = sendAccountVerificationEmailRequest)
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as SendAccountVerificationEmailResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Send Account Verification Email
+ * Send Verification Email to verify the email address
+ * @param sendAccountVerificationEmailRequest (optional)
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun sendAccountVerificationEmailWithHttpInfo(sendAccountVerificationEmailRequest: SendAccountVerificationEmailRequest?) : ApiResponse {
+ val localVariableConfig = sendAccountVerificationEmailRequestConfig(sendAccountVerificationEmailRequest = sendAccountVerificationEmailRequest)
+
+ return request(
+ localVariableConfig
+ )
+ }
+
+ /**
+ * To obtain the request config of the operation sendAccountVerificationEmail
+ *
+ * @param sendAccountVerificationEmailRequest (optional)
+ * @return RequestConfig
+ */
+ fun sendAccountVerificationEmailRequestConfig(sendAccountVerificationEmailRequest: SendAccountVerificationEmailRequest?) : RequestConfig {
+ val localVariableBody = sendAccountVerificationEmailRequest
+ val localVariableQuery: MultiValueMap = mutableMapOf()
+ val localVariableHeaders: MutableMap = mutableMapOf()
+ localVariableHeaders["Content-Type"] = "application/json"
+ localVariableHeaders["Accept"] = "application/json"
+
+ return RequestConfig(
+ method = RequestMethod.POST,
+ path = "/SendAccountVerificationEmail",
+ query = localVariableQuery,
+ headers = localVariableHeaders,
+ requiresAuthentication = true,
+ body = localVariableBody
+ )
+ }
+
+ /**
+ * Unlink Android Device ID
+ * Unlinks the related Android device identifier from the user's AvatarYug account
+ * @return UnlinkAndroidDeviceIDResult
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ * @throws UnsupportedOperationException If the API returns an informational or redirection response
+ * @throws ClientException If the API returns a client error response
+ * @throws ServerException If the API returns a server error response
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
+ fun unlinkAndroidDeviceID() : UnlinkAndroidDeviceIDResult {
+ val localVarResponse = unlinkAndroidDeviceIDWithHttpInfo()
+
+ return when (localVarResponse.responseType) {
+ ResponseType.Success -> (localVarResponse as Success<*>).data as UnlinkAndroidDeviceIDResult
+ ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.")
+ ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.")
+ ResponseType.ClientError -> {
+ val localVarError = localVarResponse as ClientError<*>
+ throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ ResponseType.ServerError -> {
+ val localVarError = localVarResponse as ServerError<*>
+ throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse)
+ }
+ }
+ }
+
+ /**
+ * Unlink Android Device ID
+ * Unlinks the related Android device identifier from the user's AvatarYug account
+ * @return ApiResponse
+ * @throws IllegalStateException If the request is not correctly configured
+ * @throws IOException Rethrows the OkHttp execute method exception
+ */
+ @Suppress("UNCHECKED_CAST")
+ @Throws(IllegalStateException::class, IOException::class)
+ fun unlinkAndroidDeviceIDWithHttpInfo() : ApiResponse {
+ val localVariableConfig = unlinkAndroidDeviceIDRequestConfig()
+
+ return request