コード例 #1
0
        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();
        }
コード例 #2
0
        public ConversationModel()
        {
            Id   = "";
            Peer = new PeerModel();

            Topic = "";

            NbMsgUnread = 0;

            LastMessage         = "";
            LastMessageDateTime = DateTime.Now;
        }
コード例 #3
0
 public ContactModel(String groupdDisplayName)
 {
     GroupName = groupdDisplayName;
     Peer      = new PeerModel();
 }
コード例 #4
0
 public MessageReplyModel()
 {
     Peer    = new PeerModel();
     Content = new MessageContentModel();
 }
コード例 #5
0
 public MessageElementModel()
 {
     Peer    = new PeerModel();
     Content = new MessageContentModel();
 }