public void AddMessage(ConversationMessageModel message)
 {
     if (!Messages.Contains(message))
     {
         Messages.Add(message);
     }
 }
Beispiel #2
0
 public ConversationPhoneMessageModel(ConversationMessageModel message, PhoneNumberModel authorPhoneNumber, PhoneNumberModel recipientPhoneNumber, string callDescription, bool callAnswered)
 {
     AuthorId             = message.AuthorId;
     AuthorFrom           = message.AuthorFrom;
     AuthorPhoneNumber    = authorPhoneNumber;
     RecipientPhoneNumber = recipientPhoneNumber;
     InitialDate          = message.InitialDate;
     Received             = message.Received;
     CallDescription      = callDescription;
     CallAnswered         = callAnswered;
     PreviewImage         = message.PreviewImage;
 }
Beispiel #3
0
 public ConversationEmailMessageModel(ConversationMessageModel message, string messageSubject, string messageContent)
 {
     AuthorId       = message.AuthorId;
     ConversationId = message.ConversationId;
     AuthorFrom     = message.AuthorFrom;
     InitialDate    = message.InitialDate;
     Received       = message.Received;
     PreviewImage   = message.PreviewImage;
     MessageContent = messageContent;
     MessageSubject = messageSubject;
     AttachmentsIds = message.AttachmentsIds;
 }
Beispiel #4
0
 public ConversationPhoneMessageModel(ConversationMessageModel message, string recipientPhoneNumberId, string messageDescription, bool answered)
 {
     AuthorId               = message.AuthorId;
     ConversationId         = message.ConversationId;
     AuthorFrom             = message.AuthorFrom;
     RecipientPhoneNumberId = recipientPhoneNumberId;
     InitialDate            = message.InitialDate;
     Received               = message.Received;
     PreviewImage           = message.PreviewImage;
     CallDescription        = messageDescription;
     CallAnswered           = answered;
     AttachmentsIds         = message.AttachmentsIds;
 }