mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +01:00
add endpoints and add isSensitive parameter
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
07dc25d3bf
commit
c337d5087b
@ -185,6 +185,18 @@ interface NcApiCoroutines {
|
||||
@Url url: String
|
||||
): GenericOverall
|
||||
|
||||
@POST
|
||||
suspend fun markConversationAsSensitive(
|
||||
@Header("Authorization") authorization:String,
|
||||
@Url url:String
|
||||
): GenericOverall
|
||||
|
||||
@DELETE
|
||||
suspend fun markConversationAsInsensitive(
|
||||
@Header("Authorization") authorization:String,
|
||||
@Url url:String
|
||||
): GenericOverall
|
||||
|
||||
@FormUrlEncoded
|
||||
@POST
|
||||
suspend fun notificationCalls(
|
||||
|
@ -61,7 +61,8 @@ fun ConversationModel.asEntity() =
|
||||
recordingConsentRequired = recordingConsentRequired,
|
||||
remoteServer = remoteServer,
|
||||
remoteToken = remoteToken,
|
||||
hasArchived = hasArchived
|
||||
hasArchived = hasArchived,
|
||||
isSensitive = isSensitive
|
||||
)
|
||||
|
||||
fun ConversationEntity.asModel() =
|
||||
@ -113,7 +114,8 @@ fun ConversationEntity.asModel() =
|
||||
recordingConsentRequired = recordingConsentRequired,
|
||||
remoteServer = remoteServer,
|
||||
remoteToken = remoteToken,
|
||||
hasArchived = hasArchived
|
||||
hasArchived = hasArchived,
|
||||
isSensitive = isSensitive
|
||||
)
|
||||
|
||||
fun Conversation.asEntity(accountId: Long) =
|
||||
@ -164,5 +166,6 @@ fun Conversation.asEntity(accountId: Long) =
|
||||
recordingConsentRequired = recordingConsentRequired,
|
||||
remoteServer = remoteServer,
|
||||
remoteToken = remoteToken,
|
||||
hasArchived = hasArchived
|
||||
hasArchived = hasArchived,
|
||||
isSensitive = isSensitive
|
||||
)
|
||||
|
@ -94,7 +94,8 @@ data class ConversationEntity(
|
||||
@ColumnInfo(name = "unreadMention") var unreadMention: Boolean = false,
|
||||
@ColumnInfo(name = "unreadMentionDirect") var unreadMentionDirect: Boolean,
|
||||
@ColumnInfo(name = "unreadMessages") var unreadMessages: Int = 0,
|
||||
@ColumnInfo(name = "hasArchived") var hasArchived: Boolean = false
|
||||
@ColumnInfo(name = "hasArchived") var hasArchived: Boolean = false,
|
||||
@ColumnInfo(name = "isSensitive") var isSensitive:Boolean = false
|
||||
// missing/not needed: attendeeId
|
||||
// missing/not needed: attendeePin
|
||||
// missing/not needed: attendeePermissions
|
||||
|
@ -61,9 +61,11 @@ class ConversationModel(
|
||||
var remoteServer: String? = null,
|
||||
var remoteToken: String? = null,
|
||||
var hasArchived: Boolean = false,
|
||||
var isSensitive: Boolean = false,
|
||||
|
||||
// attributes that don't come from API. This should be changed?!
|
||||
var password: String? = null
|
||||
var password: String? = null,
|
||||
|
||||
) {
|
||||
|
||||
companion object {
|
||||
@ -125,7 +127,8 @@ class ConversationModel(
|
||||
recordingConsentRequired = conversation.recordingConsentRequired,
|
||||
remoteServer = conversation.remoteServer,
|
||||
remoteToken = conversation.remoteToken,
|
||||
hasArchived = conversation.hasArchived
|
||||
hasArchived = conversation.hasArchived,
|
||||
isSensitive = conversation.isSensitive
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -165,5 +165,8 @@ data class Conversation(
|
||||
var remoteToken: String? = "",
|
||||
|
||||
@JsonField(name = ["isArchived"])
|
||||
var hasArchived: Boolean = false
|
||||
var hasArchived: Boolean = false,
|
||||
|
||||
@JsonField(name = ["isSensitive"])
|
||||
var isSensitive: Boolean = false
|
||||
) : Parcelable
|
||||
|
Loading…
Reference in New Issue
Block a user