mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
Fix enum JsonClass generateAdapter = false
This commit is contained in:
parent
623277e31f
commit
3d37e0b2a5
5 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
|
|||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
@JsonClass(generateAdapter = false)
|
||||
enum class Outcome(val value: String) {
|
||||
@Json(name = "success")
|
||||
SUCCESS("success"),
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
|
|||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
@JsonClass(generateAdapter = false)
|
||||
internal enum class PayloadType(val value: String) {
|
||||
@Json(name = "m.login.start")
|
||||
START("m.login.start"),
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
|
|||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
@JsonClass(generateAdapter = false)
|
||||
enum class Protocol(val value: String) {
|
||||
@Json(name = "login_token")
|
||||
LOGIN_TOKEN("login_token")
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
|
|||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
@JsonClass(generateAdapter = false)
|
||||
enum class RendezvousIntent {
|
||||
@Json(name = "login.start") LOGIN_ON_NEW_DEVICE,
|
||||
@Json(name = "login.reciprocate") RECIPROCATE_LOGIN_ON_EXISTING_DEVICE
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
|
|||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
@JsonClass(generateAdapter = false)
|
||||
enum class RendezvousTransportType(val value: String) {
|
||||
@Json(name = "http.v1") MSC3886_SIMPLE_HTTP_V1("http.v1")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue