public GroupMessageDto(Models.DBModels.Message message)
 {
     Text      = message.Text;
     GroupGuid = message.Group.GroupGuid;
     User      = new UserFoundDto(message.Sender);
     Time      = message.Time.ToString("yyyy-MM-ddTHH:mm:ssZ");
 }
Beispiel #2
0
 public GroupFoundWithMessageDto(Models.DBModels.Group group, Models.DBModels.Message message, int participants = 0) : base(group)
 {
     LastMessage  = message != null ? new GroupMessageDto(message) : new GroupMessageDto();
     Participants = participants;
 }