mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
add FEDERATED ActorType
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
7e3d48f45f
commit
9fa560e97d
@ -12,6 +12,7 @@ import com.nextcloud.talk.models.json.participants.Participant
|
|||||||
import com.nextcloud.talk.models.json.participants.Participant.ActorType.CIRCLES
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.CIRCLES
|
||||||
import com.nextcloud.talk.models.json.participants.Participant.ActorType.DUMMY
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.DUMMY
|
||||||
import com.nextcloud.talk.models.json.participants.Participant.ActorType.EMAILS
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.EMAILS
|
||||||
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.FEDERATED
|
||||||
import com.nextcloud.talk.models.json.participants.Participant.ActorType.GROUPS
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.GROUPS
|
||||||
import com.nextcloud.talk.models.json.participants.Participant.ActorType.GUESTS
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.GUESTS
|
||||||
import com.nextcloud.talk.models.json.participants.Participant.ActorType.USERS
|
import com.nextcloud.talk.models.json.participants.Participant.ActorType.USERS
|
||||||
@ -24,6 +25,7 @@ class EnumActorTypeConverter : StringBasedTypeConverter<Participant.ActorType>()
|
|||||||
"guests" -> GUESTS
|
"guests" -> GUESTS
|
||||||
"users" -> USERS
|
"users" -> USERS
|
||||||
"circles" -> CIRCLES
|
"circles" -> CIRCLES
|
||||||
|
"federated_users" -> FEDERATED
|
||||||
else -> DUMMY
|
else -> DUMMY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ class EnumActorTypeConverter : StringBasedTypeConverter<Participant.ActorType>()
|
|||||||
GUESTS -> "guests"
|
GUESTS -> "guests"
|
||||||
USERS -> "users"
|
USERS -> "users"
|
||||||
CIRCLES -> "circles"
|
CIRCLES -> "circles"
|
||||||
|
FEDERATED -> "federated_users"
|
||||||
else -> ""
|
else -> ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,8 @@ data class Participant(
|
|||||||
GROUPS,
|
GROUPS,
|
||||||
GUESTS,
|
GUESTS,
|
||||||
USERS,
|
USERS,
|
||||||
CIRCLES
|
CIRCLES,
|
||||||
|
FEDERATED
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class ParticipantType {
|
enum class ParticipantType {
|
||||||
|
Loading…
Reference in New Issue
Block a user