예제 #1
0
파일: ChatData.cs 프로젝트: Majkl1/ChatApp
 public ChatData(string userFrom, AppConfig onlineUsers, CommunicationWithDB db)
 {
     this.UserFrom    = userFrom;
     this.Usernames   = db.GetAllUsernames(userFrom);
     this.UserFromId  = db.GetUserId(userFrom);
     this.OnlineUsers = onlineUsers;
 }
예제 #2
0
 public UserChatData(string userFrom, string userTo, Services.AppConfig onlineUsers, CommunicationWithDB db) : base(userFrom, onlineUsers, db)
 {
     this.UserTo   = userTo;
     this.Messages = db.GetAllUserMessages(userFrom, userTo);
     this.UserToId = db.GetUserId(userTo);
 }