mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Extract GossipingDefaultContent
to its own file
This commit is contained in:
parent
814ba43867
commit
0107836e1b
2 changed files with 27 additions and 10 deletions
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.matrix.android.sdk.internal.crypto.model.rest
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class GossipingDefaultContent(
|
||||
@Json(name = "action") override val action: String?,
|
||||
@Json(name = "requesting_device_id") override val requestingDeviceId: String?,
|
||||
@Json(name = "m.request_id") override val requestId: String? = null
|
||||
) : GossipingToDeviceObject
|
|
@ -13,10 +13,8 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.matrix.android.sdk.internal.crypto.model.rest
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
import com.squareup.moshi.JsonClass
|
||||
package org.matrix.android.sdk.internal.crypto.model.rest
|
||||
|
||||
/**
|
||||
* Interface representing an room key action request
|
||||
|
@ -35,10 +33,3 @@ interface GossipingToDeviceObject : SendToDeviceObject {
|
|||
const val ACTION_SHARE_CANCELLATION = "request_cancellation"
|
||||
}
|
||||
}
|
||||
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class GossipingDefaultContent(
|
||||
@Json(name = "action") override val action: String?,
|
||||
@Json(name = "requesting_device_id") override val requestingDeviceId: String?,
|
||||
@Json(name = "m.request_id") override val requestId: String? = null
|
||||
) : GossipingToDeviceObject
|
||||
|
|
Loading…
Reference in a new issue