static void n_ChangeStateAndPassEvent_Lcom_liveperson_infra_statemachine_interfaces_IState_Lcom_liveperson_infra_statemachine_interfaces_IEvent_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Liveperson.Infra.Statemachine.BaseStateMachine __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.BaseStateMachine> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Statemachine.Interfaces.IState p0 = (global::Com.Liveperson.Infra.Statemachine.Interfaces.IState)global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.Interfaces.IState> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p1 = (global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent)global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent> (native_p1, JniHandleOwnership.DoNotTransfer); __this.ChangeStateAndPassEvent(p0, p1); }
static IntPtr n_PostDelayEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1) { global::Com.Liveperson.Infra.Statemachine.Interfaces.IStateMachine __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.Interfaces.IStateMachine> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p0 = (global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent)global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.PostDelayEvent(p0, p1)); return(__ret); }
public unsafe void PostEvent(global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p0) { if (id_postEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_ == IntPtr.Zero) { id_postEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_ = JNIEnv.GetMethodID(class_ref, "postEvent", "(Lcom/liveperson/infra/statemachine/interfaces/IEvent;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_postEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_, __args); }
public unsafe global::Java.Lang.IRunnable PostDelayEvent(global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p0, long p1) { if (id_postDelayEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J == IntPtr.Zero) { id_postDelayEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J = JNIEnv.GetMethodID(class_ref, "postDelayEvent", "(Lcom/liveperson/infra/statemachine/interfaces/IEvent;J)Ljava/lang/Runnable;"); } JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); global::Java.Lang.IRunnable __ret = global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_postDelayEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
protected virtual unsafe void HandleDefaultEvent(global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p0) { if (id_handleDefaultEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_ == IntPtr.Zero) { id_handleDefaultEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_ = JNIEnv.GetMethodID(class_ref, "handleDefaultEvent", "(Lcom/liveperson/infra/statemachine/interfaces/IEvent;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (((object)this).GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_handleDefaultEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handleDefaultEvent", "(Lcom/liveperson/infra/statemachine/interfaces/IEvent;)V"), __args); } } finally { } }
public virtual unsafe global::Java.Lang.IRunnable Schedule(global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p0, long p1) { if (id_schedule_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J == IntPtr.Zero) { id_schedule_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J = JNIEnv.GetMethodID(class_ref, "schedule", "(Lcom/liveperson/infra/statemachine/interfaces/IEvent;J)Ljava/lang/Runnable;"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); global::Java.Lang.IRunnable __ret; if (((object)this).GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_schedule_Lcom_liveperson_infra_statemachine_interfaces_IEvent_J, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "schedule", "(Lcom/liveperson/infra/statemachine/interfaces/IEvent;J)Ljava/lang/Runnable;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static void n_PostEvent_Lcom_liveperson_infra_statemachine_interfaces_IEvent_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Liveperson.Infra.Statemachine.Interfaces.IStateMachine __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.Interfaces.IStateMachine> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent p0 = (global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent)global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Statemachine.Interfaces.IEvent> (native_p0, JniHandleOwnership.DoNotTransfer); __this.PostEvent(p0); }