public class IMService extends java.lang.Object implements IInstantMessaging
Constructor and Description |
---|
IMService(BmContext context,
org.elasticsearch.client.Client es) |
Modifier and Type | Method and Description |
---|---|
java.util.List<IMMessage> |
getLastMessagesBetween(java.lang.String user1,
java.lang.String user2,
java.lang.Integer messagesCount) |
java.lang.String |
getRoster(java.lang.String jabberId) |
boolean |
isActiveUser(java.lang.String uid) |
void |
sendGroupChatHistory(java.lang.String sender,
java.lang.String groupChatId,
java.util.List<java.lang.String> recipients) |
void |
setRoster(java.lang.String jabberId,
java.lang.String data) |
public IMService(BmContext context, org.elasticsearch.client.Client es)
public void setRoster(java.lang.String jabberId, java.lang.String data) throws ServerFault
setRoster
in interface IInstantMessaging
ServerFault
public java.lang.String getRoster(java.lang.String jabberId) throws ServerFault
getRoster
in interface IInstantMessaging
ServerFault
public java.util.List<IMMessage> getLastMessagesBetween(java.lang.String user1, java.lang.String user2, java.lang.Integer messagesCount) throws ServerFault
getLastMessagesBetween
in interface IInstantMessaging
ServerFault
public void sendGroupChatHistory(java.lang.String sender, java.lang.String groupChatId, java.util.List<java.lang.String> recipients) throws ServerFault
sendGroupChatHistory
in interface IInstantMessaging
ServerFault
public boolean isActiveUser(java.lang.String uid) throws ServerFault
isActiveUser
in interface IInstantMessaging
ServerFault
Copyright © 2021. All Rights Reserved.