private void Client_StatusChanged(object sender, Sharp.Xmpp.Im.StatusEventArgs e) { var existingUser = GetByJid(e.Jid); if (existingUser != null) { existingUser.Status = (ChatUserStatus)Enum.Parse(typeof(ChatUserStatus), e.Status.Availability.ToString()); } }
/// <summary> /// On the Event an unsubscription message has arrived /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <summary> /// Method to handle on Presence events from Jid/Resource /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void xmppClient_OnPresence(object sender, StatusEventArgs e) { uiDispatcher.multiDebug(string.Format("OnPresence from {0} (1)", e.Jid) + e.ToString()); }