public vx_evt_user_to_user_message_t as_vx_evt_user_to_user_message() { global::System.IntPtr cPtr = VivoxCoreInstancePINVOKE.vx_evt_base_t_as_vx_evt_user_to_user_message(swigCPtr); vx_evt_user_to_user_message_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new vx_evt_user_to_user_message_t(cPtr, false); return(ret); }
private void HandleUserToUserMessage(vx_evt_base_t eventMessage) { vx_evt_user_to_user_message_t evt = eventMessage; if (evt.account_handle != _accountHandle) { return; } Debug.Assert(evt != null); _directedMessages.Enqueue(new DirectedTextMessage { ReceivedTime = DateTime.Now, Message = evt.message_body, Sender = new AccountId(evt.from_uri), ApplicationStanzaBody = evt.application_stanza_body, ApplicationStanzaNamespace = evt.application_stanza_namespace, Language = evt.language, LoginSession = this }); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vx_evt_user_to_user_message_t obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }