public PingResponse(global::Orbotix.Robot.Base.DeviceCommand p0, sbyte p1, byte[] p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } IntPtr native_p2 = JNIEnv.NewArray(p2);; if (GetType() != typeof(PingResponse)) { SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Lorbotix/robot/base/DeviceCommand;B[B)V", new JValue(p0), new JValue(p1), new JValue(native_p2)), JniHandleOwnership.TransferLocalRef); if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } return; } if (id_ctor_Lorbotix_robot_base_DeviceCommand_BarrayB == IntPtr.Zero) { id_ctor_Lorbotix_robot_base_DeviceCommand_BarrayB = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorbotix/robot/base/DeviceCommand;B[B)V"); } SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lorbotix_robot_base_DeviceCommand_BarrayB, new JValue(p0), new JValue(p1), new JValue(native_p2)), JniHandleOwnership.TransferLocalRef); if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } }
static void n_DoCommand_Lorbotix_robot_base_DeviceCommand_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1) { Robot __this = Java.Lang.Object.GetObject <Robot> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.DeviceCommand p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceCommand> (native_p0, JniHandleOwnership.DoNotTransfer); __this.DoCommand(p0, p1); }
public void DoCommand(global::Orbotix.Robot.Base.DeviceCommand p0, long p1) { if (id_doCommand_Lorbotix_robot_base_DeviceCommand_J == IntPtr.Zero) { id_doCommand_Lorbotix_robot_base_DeviceCommand_J = JNIEnv.GetMethodID(class_ref, "doCommand", "(Lorbotix/robot/base/DeviceCommand;J)V"); } JNIEnv.CallVoidMethod(Handle, id_doCommand_Lorbotix_robot_base_DeviceCommand_J, new JValue(p0), new JValue(p1)); }
static void n_PostCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_J(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, long p2) { DeviceMessenger __this = Java.Lang.Object.GetObject <DeviceMessenger> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.Robot p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.Robot> (native_p0, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.Base.DeviceCommand p1 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceCommand> (native_p1, JniHandleOwnership.DoNotTransfer); __this.PostCommand(p0, p1, p2); }
public virtual void DoCommand(global::Orbotix.Robot.Base.DeviceCommand p0, long p1) { if (id_doCommand_Lorbotix_robot_base_DeviceCommand_J == IntPtr.Zero) { id_doCommand_Lorbotix_robot_base_DeviceCommand_J = JNIEnv.GetMethodID(class_ref, "doCommand", "(Lorbotix/robot/base/DeviceCommand;J)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_doCommand_Lorbotix_robot_base_DeviceCommand_J, new JValue(p0), new JValue(p1)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_doCommand_Lorbotix_robot_base_DeviceCommand_J, new JValue(p0), new JValue(p1)); } }
public virtual void PostCommand(global::Orbotix.Robot.Base.Robot p0, global::Orbotix.Robot.Base.DeviceCommand p1) { if (id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_ == IntPtr.Zero) { id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_ = JNIEnv.GetMethodID(class_ref, "postCommand", "(Lorbotix/robot/base/Robot;Lorbotix/robot/base/DeviceCommand;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_, new JValue(p0), new JValue(p1)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_postCommand_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceCommand_, new JValue(p0), new JValue(p1)); } }
protected static global::Orbotix.Robot.Base.DeviceResponse Create(global::Orbotix.Robot.Base.DeviceCommand p0, sbyte p1, byte[] p2) { if (id_create_Lorbotix_robot_base_DeviceCommand_BarrayB == IntPtr.Zero) { id_create_Lorbotix_robot_base_DeviceCommand_BarrayB = JNIEnv.GetStaticMethodID(class_ref, "create", "(Lorbotix/robot/base/DeviceCommand;B[B)Lorbotix/robot/base/DeviceResponse;"); } IntPtr native_p2 = JNIEnv.NewArray(p2); global::Orbotix.Robot.Base.DeviceResponse __ret = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceResponse> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Lorbotix_robot_base_DeviceCommand_BarrayB, new JValue(p0), new JValue(p1), new JValue(native_p2)), JniHandleOwnership.TransferLocalRef); if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } return(__ret); }