Ejemplo n.º 1
0
 public ChatGroupUser(Guid ChatGroupUserID, ChatGroup ChatGroup, User User)
 {
     this.ChatGroupId     = ChatGroup.ChatGroupId;
     this.ChatGroupUserID = ChatGroupUserID;
     this.UserId          = User.UserId;
     this.ChatGroup       = ChatGroup;
     this.User            = User;
 }
Ejemplo n.º 2
0
 public ChatGroupMessage(User SendUser, ChatGroup ChatGroup, SendMessage sendMessage, DateTime SendStamp)
 {
     ChatGroupMessageId = sendMessage.MessageId;
     this.SenderUser    = SendUser;
     this.SenderId      = SendUser.UserId;
     this.ChatGroupId   = ChatGroup.ChatGroupId;
     this.ChatGroup     = ChatGroup;
     this.Message       = sendMessage.Message;
     this.SendStamp     = SendStamp;
     Users = new List <ChatGroupMessageReceiverUser>();
     foreach (var user in ChatGroup.Users)
     {
         Users.Add(new ChatGroupMessageReceiverUser(this, user));
     }
 }