public Msg ToMsg() { Msg msg = new Msg(); msg.CreatedDate = CreatedDate; msg.From = From; msg.Message = Message; msg.Timestamp = CreatedDate; return msg; }
public ConversationMessageViewModel(Msg message) { Text = message.Message; TimeStamp = DateTime.Parse(message.SentDate); Type = message.To == TinderSession.CurrentSession.CurrentUser.Id ? ConversationViewMessageType.Incoming : ConversationViewMessageType.Outgoing; }