public ContactModel(Contact contact) { Peer = new PeerModel(contact); Peer.DisplayPresence = true; Detail = contact.CompanyName; Rainbow.Model.Presence presence = Helper.SdkWrapper.GetAggregatedPresenceFromContactId(contact.Id); Presence = presence?.PresenceLevel; if (String.IsNullOrEmpty(contact.FirstName)) { FirstNameForSort = Peer.DisplayName.ToUpper(); } else { FirstNameForSort = contact.FirstName.ToUpper(); } if (String.IsNullOrEmpty(contact.LastName)) { LastNameForSort = Peer.DisplayName.ToUpper(); } else { LastNameForSort = contact.LastName.ToUpper(); } CompanyForSort = contact.CompanyName?.ToUpper(); }
public ConversationModel() { Id = ""; Peer = new PeerModel(); Topic = ""; NbMsgUnread = 0; LastMessage = ""; LastMessageDateTime = DateTime.Now; }
public ContactModel(String groupdDisplayName) { GroupName = groupdDisplayName; Peer = new PeerModel(); }
public MessageReplyModel() { Peer = new PeerModel(); Content = new MessageContentModel(); }
public MessageElementModel() { Peer = new PeerModel(); Content = new MessageContentModel(); }