Add link to Widget doc

This commit is contained in:
Benoit Marty 2020-06-17 15:37:35 +02:00
parent 2c34fe2dc3
commit fa204eca3b
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass import com.squareup.moshi.JsonClass
import im.vector.matrix.android.api.util.JsonDict import im.vector.matrix.android.api.util.JsonDict
/**
* Ref: https://github.com/matrix-org/matrix-doc/issues/1236
*/
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class WidgetContent( data class WidgetContent(
@Json(name = "creatorUserId") val creatorUserId: String? = null, @Json(name = "creatorUserId") val creatorUserId: String? = null,

View File

@ -16,6 +16,9 @@
package im.vector.matrix.android.api.session.widgets.model package im.vector.matrix.android.api.session.widgets.model
/**
* Ref: https://github.com/matrix-org/matrix-doc/issues/1236
*/
sealed class WidgetType(open val preferred: String, open val legacy: String = preferred) { sealed class WidgetType(open val preferred: String, open val legacy: String = preferred) {
object Jitsi : WidgetType("m.jitsi", "jitsi") object Jitsi : WidgetType("m.jitsi", "jitsi")
object TradingView : WidgetType("m.tradingview") object TradingView : WidgetType("m.tradingview")