mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-07 04:49:41 +01:00
add endpoints
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
131723317b
commit
fe8f19be1b
@ -34,6 +34,8 @@ import com.nextcloud.talk.models.json.signaling.SignalingOverall;
|
||||
import com.nextcloud.talk.models.json.signaling.settings.SignalingSettingsOverall;
|
||||
import com.nextcloud.talk.models.json.status.StatusOverall;
|
||||
import com.nextcloud.talk.models.json.unifiedsearch.UnifiedSearchOverall;
|
||||
import com.nextcloud.talk.models.json.usercircles.UserCirclesOverall;
|
||||
import com.nextcloud.talk.models.json.usergroups.UserGroupsOverall;
|
||||
import com.nextcloud.talk.models.json.userprofile.UserProfileFieldsOverall;
|
||||
import com.nextcloud.talk.models.json.userprofile.UserProfileOverall;
|
||||
import com.nextcloud.talk.polls.repositories.model.PollOverall;
|
||||
@ -646,4 +648,12 @@ public interface NcApi {
|
||||
@DELETE
|
||||
Observable<GenericOverall> rejectInvitation(@Header("Authorization") String authorization,
|
||||
@Url String url);
|
||||
|
||||
@GET
|
||||
Observable<UserGroupsOverall> getUserGroups (@Header("Authorization") String authorization,
|
||||
@Url String url);
|
||||
|
||||
@GET
|
||||
Observable<UserCirclesOverall> getUserCircles(@Header("Authorization") String authorization,
|
||||
@Url String url);
|
||||
}
|
@ -363,6 +363,14 @@ object ApiUtils {
|
||||
return "$baseUrl$OCS_API_VERSION/cloud/users/$userId"
|
||||
}
|
||||
|
||||
fun getUrlForUserGroups(baseUrl: String, userId: String): String {
|
||||
return "$baseUrl$OCS_API_VERSION/cloud/users/$userId/groups"
|
||||
}
|
||||
|
||||
fun getUrlForUserCircles(baseUrl: String): String {
|
||||
return "$baseUrl$OCS_API_VERSION/apps/circles/probecircles"
|
||||
}
|
||||
|
||||
fun getUrlForUserSettings(baseUrl: String): String {
|
||||
// FIXME Introduce API version
|
||||
return "$baseUrl$OCS_API_VERSION$SPREED_API_VERSION/settings/user"
|
||||
|
@ -110,6 +110,7 @@ class MessageUtils(val context: Context) {
|
||||
for (key in messageParameters.keys) {
|
||||
val individualHashMap = message.messageParameters?.get(key)
|
||||
if (individualHashMap != null) {
|
||||
|
||||
when (individualHashMap["type"]) {
|
||||
"user", "guest", "call", "user-group", "email", "circle" -> {
|
||||
val chip = if (individualHashMap["id"]?.equals(message.activeUser?.userId) == true) {
|
||||
|
Loading…
Reference in New Issue
Block a user