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