public class RoomMembershipClientImpl extends java.lang.Object implements RoomMembershipClient
| Constructor and Description |
|---|
RoomMembershipClientImpl(SymAuth symAuth,
SymphonyClientConfig config)
Init
|
RoomMembershipClientImpl(SymAuth symAuth,
SymphonyClientConfig config,
javax.ws.rs.client.Client httpClient)
If you need to override HttpClient.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMemberToRoom(java.lang.String roomStreamId,
long userId)
Call this method to add a member to a chat room.
|
org.symphonyoss.symphony.pod.model.MembershipList |
getRoomMembership(java.lang.String roomStreamId)
Provides room membership
|
void |
removeMemberFromRoom(java.lang.String roomStreamId,
long userId)
Call this method to remove a member from a chat room.
|
public RoomMembershipClientImpl(SymAuth symAuth, SymphonyClientConfig config)
symAuth - Authorization object holding session and key tokensconfig - Symphony client configpublic RoomMembershipClientImpl(SymAuth symAuth, SymphonyClientConfig config, javax.ws.rs.client.Client httpClient)
symAuth - Authorization object holding session and key tokensconfig - Symphony Client confighttpClient - The HttpClient to use when calling Symphony APIpublic org.symphonyoss.symphony.pod.model.MembershipList getRoomMembership(java.lang.String roomStreamId)
throws SymException
getRoomMembership in interface RoomMembershipClientroomStreamId - - stream-id of the chat room you want to add the member toMembershipListSymException - Exceptions from API calls into Symphonypublic void addMemberToRoom(java.lang.String roomStreamId,
long userId)
throws SymException
addMemberToRoom in interface RoomMembershipClientroomStreamId - - stream-id of the chat room you want to add the member touserId - userId for the user in SymphonySymException - throws an ApiException if there were any issues while invoking the endpoint,
IllegalArgumentException if the arguments were wrong, IllegalStateException if the
session-token is nullpublic void removeMemberFromRoom(java.lang.String roomStreamId,
long userId)
throws SymException
removeMemberFromRoom in interface RoomMembershipClientroomStreamId - - stream-id of the chat room you want to add the member to RoomuserId - userId for the user in SymphonySymException - throws an ApiException if there were any issues while invoking the endpoint,
IllegalArgumentException if the arguments were wrong, IllegalStateException if the
session-token is null