public class IMService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IMService.IMItem |
Modifier and Type | Field and Description |
---|---|
static String |
ALL_SITES |
static String |
ALL_USERS |
Modifier and Type | Method and Description |
---|---|
void |
appendMessage(String fromSite,
String fromUser,
String receiverSite,
String receiverUser,
String message) |
void |
fillMessageList(String site,
String username,
Date lastDate,
List<IMService.IMItem> list) |
Long |
fillMessageList(String site,
String username,
Long currentId,
List<IMService.IMItem> list) |
static IMService |
getInstance(javax.servlet.http.HttpSession session) |
Long |
getLastReadMessageId(String site,
String username) |
int |
getMessagesSize() |
String |
getUserColor(String site,
String username) |
void |
setLastReadMessageId(String site,
String username,
Long lastReadMessageId) |
public static final String ALL_SITES
public static final String ALL_USERS
public static IMService getInstance(javax.servlet.http.HttpSession session)
public void appendMessage(String fromSite, String fromUser, String receiverSite, String receiverUser, String message)
public int getMessagesSize()
public void fillMessageList(String site, String username, Date lastDate, List<IMService.IMItem> list)
public Long fillMessageList(String site, String username, Long currentId, List<IMService.IMItem> list)
Copyright © 2012-2018. All Rights Reserved.