override public void onRegState(OnRegStateParam prm) { AccountInfo ai = getInfo(); Console.WriteLine("***" + (ai.regIsActive? "": "Un") + "Register: code=" + prm.code); }
public virtual void onRegState(OnRegStateParam prm) { pjsua2PINVOKE.Account_onRegState(swigCPtr, OnRegStateParam.getCPtr(prm)); if (pjsua2PINVOKE.SWIGPendingException.Pending) { throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void onRegState(OnRegStateParam prm) { AccountInfo ai = getInfo(); var tt = prm; Console.WriteLine("prm:"); Console.WriteLine(JsonConvert.SerializeObject(prm)); Console.WriteLine("getInfo:"); Console.WriteLine(JsonConvert.SerializeObject(ai)); }
public override void onRegState(OnRegStateParam prm) { var ai = getInfo(); //Console.WriteLine("prm:"); //Console.WriteLine(JsonConvert.SerializeObject(prm)); //Console.WriteLine("getInfo:"); //Console.WriteLine(JsonConvert.SerializeObject(ai)); OnAccountRegState?.Invoke(this, ai, prm); }
/// <summary> /// Обрабатываем событие изменение статуса регистрации /// </summary> /// <param name="prm"></param> override public void onRegState(OnRegStateParam prm) { AccountInfo ai = getInfo(); isActive = ai.regIsActive; code = prm.code; if (onAccountRegState != null) { onAccountRegState(this); } }
public virtual void onRegState(OnRegStateParam prm) { if (SwigDerivedClassHasMethod("onRegState", swigMethodTypes2)) { pjsua2PINVOKE.Account_onRegStateSwigExplicitAccount(swigCPtr, OnRegStateParam.getCPtr(prm)); } else { pjsua2PINVOKE.Account_onRegState(swigCPtr, OnRegStateParam.getCPtr(prm)); } if (pjsua2PINVOKE.SWIGPendingException.Pending) { throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Notify application when registration status has changed. /// </summary> /// <param name="sender">The current sender.</param> /// <param name="e">The event parameter.</param> private void _voipManager_OnRegState(object sender, OnRegStateParam e) { // Send a notification to the call. Param.OnRegStateParam param = new Param.OnRegStateParam(); param.Info = e.RxData.Info; param.SrcAddress = e.RxData.SrcAddress; param.WholeMsg = e.RxData.WholeMsg; param.Code = e.Code; param.Expiration = e.Expiration; param.Reason = e.Reason; param.Status = e.Status; // Call the event handler. OnRegState?.Invoke(this, param); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(OnRegStateParam obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
public override void onRegState(OnRegStateParam prm) { base.onRegState(prm); }
/// <summary> /// Notify application when registration status has changed. /// </summary> /// <param name="sender">The current sender.</param> /// <param name="e">The event parameter.</param> private void _account_OnRegState(object sender, OnRegStateParam e) { OnRegState?.Invoke(this, e); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(OnRegStateParam obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public override void onRegState(OnRegStateParam prm) { base.onRegState(prm); //Console.WriteLine("Account registration state: " + prm.code + " : " + prm.reason); NotifyAccountState(prm.code, prm.reason); }
public virtual void onRegState(OnRegStateParam prm) { if (SwigDerivedClassHasMethod("onRegState", swigMethodTypes2)) pjsua2PINVOKE.Account_onRegStateSwigExplicitAccount(swigCPtr, OnRegStateParam.getCPtr(prm)); else pjsua2PINVOKE.Account_onRegState(swigCPtr, OnRegStateParam.getCPtr(prm)); if (pjsua2PINVOKE.SWIGPendingException.Pending) throw pjsua2PINVOKE.SWIGPendingException.Retrieve(); }
private void OnAccountRegState(object sender, AccountInfo ai, OnRegStateParam prm) { Messages += $"---------------------{DateTime.Now.ToString("T")}---------------------\r"; Messages += "prm:\r" + JsonConvert.SerializeObject(prm) + "\r"; Messages += "ai:\r" + JsonConvert.SerializeObject(ai) + "\r"; }