Exemple #1
0
 public Integer getLastMessageNumber() {
   return ChatService.getLastMessageNumber();
 }
Exemple #2
0
 public Integer publish(String msg) {
   ChatService.publish(msg);
   return 1;
 }
Exemple #3
0
 public List<String> getMessagesSince(int last, int howMany) {
   // System.out.println("requesting " + howMany + " msgs, starting from " + lastMsg);
   List<String> msgs = ChatService.getMessagesSince(last, howMany);
   // System.out.println("Got " + msgs.size() + " msgs, will resume from " + lastMsg);
   return msgs;
 }