mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Add explicit Json names
This commit is contained in:
parent
cdfb728a73
commit
6cc2a36ee1
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ import android.content.Context
|
|||
import android.content.pm.PackageManager
|
||||
import androidx.fragment.app.FragmentActivity
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
import im.vector.app.BuildConfig
|
||||
import im.vector.app.R
|
||||
|
@ -153,12 +154,12 @@ class UnifiedPushHelper @Inject constructor(
|
|||
|
||||
@JsonClass(generateAdapter = true)
|
||||
internal data class DiscoveryResponse(
|
||||
val unifiedpush: DiscoveryUnifiedPush = DiscoveryUnifiedPush()
|
||||
@Json(name = "unifiedpush") val unifiedpush: DiscoveryUnifiedPush = DiscoveryUnifiedPush()
|
||||
)
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
internal data class DiscoveryUnifiedPush(
|
||||
val gateway: String = ""
|
||||
@Json(name = "gateway") val gateway: String = ""
|
||||
)
|
||||
|
||||
suspend fun storeCustomOrDefaultGateway(
|
||||
|
|
Loading…
Reference in a new issue