Fix enum JsonClass generateAdapter = false

This commit is contained in:
Hugh Nimmo-Smith 2022-10-17 16:19:03 +01:00
parent 623277e31f
commit 3d37e0b2a5
5 changed files with 5 additions and 5 deletions

View file

@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = false)
enum class Outcome(val value: String) { enum class Outcome(val value: String) {
@Json(name = "success") @Json(name = "success")
SUCCESS("success"), SUCCESS("success"),

View file

@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = false)
internal enum class PayloadType(val value: String) { internal enum class PayloadType(val value: String) {
@Json(name = "m.login.start") @Json(name = "m.login.start")
START("m.login.start"), START("m.login.start"),

View file

@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = false)
enum class Protocol(val value: String) { enum class Protocol(val value: String) {
@Json(name = "login_token") @Json(name = "login_token")
LOGIN_TOKEN("login_token") LOGIN_TOKEN("login_token")

View file

@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = false)
enum class RendezvousIntent { enum class RendezvousIntent {
@Json(name = "login.start") LOGIN_ON_NEW_DEVICE, @Json(name = "login.start") LOGIN_ON_NEW_DEVICE,
@Json(name = "login.reciprocate") RECIPROCATE_LOGIN_ON_EXISTING_DEVICE @Json(name = "login.reciprocate") RECIPROCATE_LOGIN_ON_EXISTING_DEVICE

View file

@ -19,7 +19,7 @@ package org.matrix.android.sdk.api.rendezvous.model
import com.squareup.moshi.Json import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = false)
enum class RendezvousTransportType(val value: String) { enum class RendezvousTransportType(val value: String) {
@Json(name = "http.v1") MSC3886_SIMPLE_HTTP_V1("http.v1") @Json(name = "http.v1") MSC3886_SIMPLE_HTTP_V1("http.v1")
} }