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"; } }); }
public override Rainbow.Model.Presence GetAggregatedPresenceFromContactId(String peerId) { return(RbContacts.GetAggregatedPresenceFromContactId(peerId)); }