add FEDERATED ActorType

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-03-25 13:26:58 +01:00 committed by backportbot[bot]
parent d6bb746ac6
commit ee63c3dbc1
2 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,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
@ -39,6 +40,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
} }
} }
@ -54,6 +56,7 @@ class EnumActorTypeConverter : StringBasedTypeConverter<Participant.ActorType>()
GUESTS -> "guests" GUESTS -> "guests"
USERS -> "users" USERS -> "users"
CIRCLES -> "circles" CIRCLES -> "circles"
FEDERATED -> "federated_users"
else -> "" else -> ""
} }
} }

View file

@ -129,7 +129,8 @@ data class Participant(
GROUPS, GROUPS,
GUESTS, GUESTS,
USERS, USERS,
CIRCLES CIRCLES,
FEDERATED
} }
enum class ParticipantType { enum class ParticipantType {