public virtual void onInstantMessage(OnInstantMessageParam prm) { pjsua2PINVOKE.Call_onInstantMessage(swigCPtr, OnInstantMessageParam.getCPtr(prm)); if (pjsua2PINVOKE.SWIGPendingException.Pending) { throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void onInstantMessage(OnInstantMessageParam prm) { if (SwigDerivedClassHasMethod("onInstantMessage", swigMethodTypes14)) { pjsua2PINVOKE.Call_onInstantMessageSwigExplicitCall(swigCPtr, OnInstantMessageParam.getCPtr(prm)); } else { pjsua2PINVOKE.Call_onInstantMessage(swigCPtr, OnInstantMessageParam.getCPtr(prm)); } if (pjsua2PINVOKE.SWIGPendingException.Pending) { throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Notify application on incoming instant message or pager (i.e. MESSAGE /// request) that was received outside call context. /// </summary> /// <param name="sender">The current sender.</param> /// <param name="e">The event parameter.</param> private void _voipManager_OnInstantMessage(object sender, OnInstantMessageParam e) { // Send a notification to the call. Param.OnInstantMessageParam param = new Param.OnInstantMessageParam(); param.Info = e.RxData.Info; param.SrcAddress = e.RxData.SrcAddress; param.WholeMsg = e.RxData.WholeMsg; param.ContactUri = e.ContactUri; param.ContentType = e.ContentType; param.FromUri = e.FromUri; param.MsgBody = e.MsgBody; param.ToUri = e.ToUri; FindContact(param); // Call the event handler. OnInstantMessage?.Invoke(this, param); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(OnInstantMessageParam obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
/// <summary> /// Notify application on incoming instant message or pager (i.e. MESSAGE /// request) that was received outside call context. /// </summary> /// <param name="sender">The current sender.</param> /// <param name="e">The event parameter.</param> private void _account_OnInstantMessage(object sender, OnInstantMessageParam e) { OnInstantMessage?.Invoke(this, e); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(OnInstantMessageParam obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
public virtual void onInstantMessage(OnInstantMessageParam prm) { if (SwigDerivedClassHasMethod("onInstantMessage", swigMethodTypes4)) pjsua2PINVOKE.Account_onInstantMessageSwigExplicitAccount(swigCPtr, OnInstantMessageParam.getCPtr(prm)); else pjsua2PINVOKE.Account_onInstantMessage(swigCPtr, OnInstantMessageParam.getCPtr(prm)); if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); }