public class RedisMessageHelper extends Object implements IMesssageHelper, Const
Constructor and Description |
---|
RedisMessageHelper() |
public ImBindListener getBindListener()
IMesssageHelper
getBindListener
in interface IMesssageHelper
public boolean isOnline(String userid)
IMesssageHelper
isOnline
in interface IMesssageHelper
public List<String> getGroupUsers(String group_id)
IMesssageHelper
getGroupUsers
in interface IMesssageHelper
public void writeMessage(String timelineTable, String timelineId, ChatBody chatBody)
IMesssageHelper
writeMessage
in interface IMesssageHelper
public void addGroupUser(String userid, String group_id)
IMesssageHelper
addGroupUser
in interface IMesssageHelper
public void removeGroupUser(String userid, String group_id)
IMesssageHelper
removeGroupUser
in interface IMesssageHelper
public UserMessageData getFriendsOfflineMessage(String userid, String from_userid)
IMesssageHelper
getFriendsOfflineMessage
in interface IMesssageHelper
public UserMessageData getFriendsOfflineMessage(String userid)
IMesssageHelper
getFriendsOfflineMessage
in interface IMesssageHelper
public UserMessageData getGroupOfflineMessage(String userid, String groupid)
IMesssageHelper
getGroupOfflineMessage
in interface IMesssageHelper
public UserMessageData getFriendHistoryMessage(String userid, String from_userid, Double beginTime, Double endTime, Integer offset, Integer count)
IMesssageHelper
getFriendHistoryMessage
in interface IMesssageHelper
beginTime
- 消息区间开始时间endTime
- 消息区间结束时间offset
- 分页偏移量count
- 数量public UserMessageData getGroupHistoryMessage(String userid, String groupid, Double beginTime, Double endTime, Integer offset, Integer count)
IMesssageHelper
getGroupHistoryMessage
in interface IMesssageHelper
beginTime
- 消息区间开始时间endTime
- 消息区间结束时间offset
- 分页偏移量count
- 数量public UserMessageData putGroupMessage(UserMessageData userMessage, List<ChatBody> messages)
userMessage
- messages
- public UserMessageData putFriendsMessage(UserMessageData userMessage, List<ChatBody> messages)
userMessage
- messages
- public UserMessageData putFriendsHistoryMessage(UserMessageData userMessage, List<ChatBody> messages, String friendId)
userMessage
- messages
- public Group getGroupUsers(String group_id, Integer type)
getGroupUsers
in interface IMesssageHelper
group_id
- type(0:所有在线用户,1:所有离线用户,2:所有用户[在线+离线])
- public User getUserByType(String userid, Integer type)
getUserByType
in interface IMesssageHelper
userid
- type
- public Group getFriendUsers(String user_id, String friend_group_id, Integer type)
getFriendUsers
in interface IMesssageHelper
friend_group_id
- type(0:所有在线用户,1:所有离线用户,2:所有用户[在线+离线])
- public void initUserStatus(User user)
user
- public List<Group> getAllFriendUsers(String user_id, Integer type)
getAllFriendUsers
in interface IMesssageHelper
user_id
- type(0:所有在线用户,1:所有离线用户,2:所有用户[在线+离线])
- public List<Group> getAllGroupUsers(String user_id, Integer type)
getAllGroupUsers
in interface IMesssageHelper
user_id
- type(0:所有在线用户,1:所有离线用户,2:所有用户[在线+离线])
- public List<String> getGroups(String user_id)
getGroups
in interface IMesssageHelper
user_id
- Copyright © 2018. All rights reserved.