public vx_evt_buddy_presence_t as_vx_evt_buddy_presence() { global::System.IntPtr cPtr = VivoxCoreInstancePINVOKE.vx_evt_base_t_as_vx_evt_buddy_presence(swigCPtr); vx_evt_buddy_presence_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new vx_evt_buddy_presence_t(cPtr, false); return(ret); }
private void HandleBuddyPresenceEvt(vx_evt_base_t eventMessage) { vx_evt_buddy_presence_t evt = eventMessage; if (evt.account_handle != _accountHandle) { return; } var buddyAccount = new AccountId(evt.buddy_uri, evt.displayname); if (!_presenceSubscriptions.ContainsKey(buddyAccount)) { return; } var subscription = (PresenceSubscription)_presenceSubscriptions[buddyAccount]; subscription.UpdateLocation(evt.buddy_uri, (PresenceStatus)evt.presence, evt.custom_message); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vx_evt_buddy_presence_t obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }