mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Remove redundant annotations
This commit is contained in:
parent
811d6d87ae
commit
f7e0a19833
6 changed files with 17 additions and 21 deletions
|
@ -56,10 +56,10 @@ class ECDHRendezvousChannel(override var transport: RendezvousTransport, theirPu
|
||||||
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
internal data class ECDHPayload(
|
internal data class ECDHPayload(
|
||||||
@Json val algorithm: SecureRendezvousChannelAlgorithm? = null,
|
val algorithm: SecureRendezvousChannelAlgorithm? = null,
|
||||||
@Json val key: String? = null,
|
val key: String? = null,
|
||||||
@Json val ciphertext: String? = null,
|
val ciphertext: String? = null,
|
||||||
@Json val iv: String? = null
|
val iv: String? = null
|
||||||
)
|
)
|
||||||
|
|
||||||
private val olmSASMutex = Mutex()
|
private val olmSASMutex = Mutex()
|
||||||
|
|
|
@ -16,12 +16,11 @@
|
||||||
|
|
||||||
package org.matrix.android.sdk.api.rendezvous.model
|
package org.matrix.android.sdk.api.rendezvous.model
|
||||||
|
|
||||||
import com.squareup.moshi.Json
|
|
||||||
import com.squareup.moshi.JsonClass
|
import com.squareup.moshi.JsonClass
|
||||||
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
data class ECDHRendezvous(
|
data class ECDHRendezvous(
|
||||||
@Json val transport: SimpleHttpRendezvousTransportDetails,
|
val transport: SimpleHttpRendezvousTransportDetails,
|
||||||
@Json val algorithm: SecureRendezvousChannelAlgorithm,
|
val algorithm: SecureRendezvousChannelAlgorithm,
|
||||||
@Json val key: String
|
val key: String
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,11 +16,10 @@
|
||||||
|
|
||||||
package org.matrix.android.sdk.api.rendezvous.model
|
package org.matrix.android.sdk.api.rendezvous.model
|
||||||
|
|
||||||
import com.squareup.moshi.Json
|
|
||||||
import com.squareup.moshi.JsonClass
|
import com.squareup.moshi.JsonClass
|
||||||
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
data class ECDHRendezvousCode(
|
data class ECDHRendezvousCode(
|
||||||
@Json val intent: RendezvousIntent,
|
val intent: RendezvousIntent,
|
||||||
@Json val rendezvous: ECDHRendezvous
|
val rendezvous: ECDHRendezvous
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,12 +21,12 @@ import com.squareup.moshi.JsonClass
|
||||||
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
internal data class Payload(
|
internal data class Payload(
|
||||||
@Json val type: PayloadType,
|
val type: PayloadType,
|
||||||
@Json val intent: RendezvousIntent? = null,
|
val intent: RendezvousIntent? = null,
|
||||||
@Json val outcome: Outcome? = null,
|
val outcome: Outcome? = null,
|
||||||
@Json val protocols: List<Protocol>? = null,
|
val protocols: List<Protocol>? = null,
|
||||||
@Json val protocol: Protocol? = null,
|
val protocol: Protocol? = null,
|
||||||
@Json val homeserver: String? = null,
|
val homeserver: String? = null,
|
||||||
@Json(name = "login_token") val loginToken: String? = null,
|
@Json(name = "login_token") val loginToken: String? = null,
|
||||||
@Json(name = "device_id") val deviceId: String? = null,
|
@Json(name = "device_id") val deviceId: String? = null,
|
||||||
@Json(name = "device_key") val deviceKey: String? = null,
|
@Json(name = "device_key") val deviceKey: String? = null,
|
||||||
|
|
|
@ -16,10 +16,9 @@
|
||||||
|
|
||||||
package org.matrix.android.sdk.api.rendezvous.model
|
package org.matrix.android.sdk.api.rendezvous.model
|
||||||
|
|
||||||
import com.squareup.moshi.Json
|
|
||||||
import com.squareup.moshi.JsonClass
|
import com.squareup.moshi.JsonClass
|
||||||
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
open class RendezvousTransportDetails(
|
open class RendezvousTransportDetails(
|
||||||
@Json val type: RendezvousTransportType
|
val type: RendezvousTransportType
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,10 +16,9 @@
|
||||||
|
|
||||||
package org.matrix.android.sdk.api.rendezvous.model
|
package org.matrix.android.sdk.api.rendezvous.model
|
||||||
|
|
||||||
import com.squareup.moshi.Json
|
|
||||||
import com.squareup.moshi.JsonClass
|
import com.squareup.moshi.JsonClass
|
||||||
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
data class SimpleHttpRendezvousTransportDetails(
|
data class SimpleHttpRendezvousTransportDetails(
|
||||||
@Json val uri: String
|
val uri: String
|
||||||
) : RendezvousTransportDetails(type = RendezvousTransportType.MSC3886_SIMPLE_HTTP_V1)
|
) : RendezvousTransportDetails(type = RendezvousTransportType.MSC3886_SIMPLE_HTTP_V1)
|
||||||
|
|
Loading…
Reference in a new issue