Example #1
0
 public List <String> selectChatUsers(String userID)
 {
     DAL.chattingDAO ctd = new DAL.chattingDAO();
     return(ctd.selectChatUsers(userID));
 }
Example #2
0
 public int updateRead(String myID, String otherID)
 {
     DAL.chattingDAO ctd = new DAL.chattingDAO();
     return(ctd.updateRead(myID, otherID));
 }
Example #3
0
 public String selectNewMessage(String myID, String otherID, DateTime lastTime)
 {
     DAL.chattingDAO ctd = new DAL.chattingDAO();
     return(ctd.selectNewMessage(myID, otherID, lastTime));
 }
Example #4
0
 public int addMessage(String myID, String otherID, String content)
 {
     DAL.chattingDAO ctd = new DAL.chattingDAO();
     return(ctd.sendMessage(myID, otherID, content));
 }
Example #5
0
 public List <Model.Chat> selectMessage(String myID, String otherID)
 {
     DAL.chattingDAO ctd = new DAL.chattingDAO();
     return(ctd.selectAllMessage(myID, otherID));
 }
Example #6
0
 public Model.Chat selectRecentMessage(String myID, String otherID)
 {
     DAL.chattingDAO ctd = new DAL.chattingDAO();
     return(ctd.selectRecentMessage(myID, otherID));
 }