Exemplo n.º 1
0
 private void UpdateContactPresence(String contactId)
 {
     InvokeOnMainThread(() =>
     {
         if (contactId != null)
         {
             // Get and display contact presence
             Presence presence = rainbowContacts.GetAggregatedPresenceFromContactId(contactId);
             if (presence == null) // It means the contact is offline
             {
                 presence = new Presence(PresenceLevel.Offline, "");
             }
             txtContactPresence.StringValue = Util.SerializePresence(presence);
         }
         else
         {
             txtContactPresence.StringValue = "No presence in this context";
         }
     });
 }
Exemplo n.º 2
0
 public override Rainbow.Model.Presence GetAggregatedPresenceFromContactId(String peerId)
 {
     return(RbContacts.GetAggregatedPresenceFromContactId(peerId));
 }