示例#1
0
#pragma warning restore 0649

            public void OnResponse(global::Orbotix.Robot.Base.DeviceResponse p0)
            {
                if (Handler != null)
                {
                    Handler(sender, new DeviceResponseEventArgs(p0));
                }
            }
示例#2
0
            static void n_OnResponse_Lorbotix_robot_base_DeviceResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
            {
                IDeviceResponseListener __this = Java.Lang.Object.GetObject <IDeviceResponseListener> (native__this, JniHandleOwnership.DoNotTransfer);

                global::Orbotix.Robot.Base.DeviceResponse p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceResponse> (native_p0, JniHandleOwnership.DoNotTransfer);
                __this.OnResponse(p0);
            }
示例#3
0
        static void n_PostResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            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.DeviceResponse p1 = Java.Lang.Object.GetObject <global::Orbotix.Robot.Base.DeviceResponse> (native_p1, JniHandleOwnership.DoNotTransfer);
            __this.PostResponse(p0, p1);
        }
示例#4
0
 public void OnResponse(global::Orbotix.Robot.Base.DeviceResponse p0)
 {
     if (id_onResponse_Lorbotix_robot_base_DeviceResponse_ == IntPtr.Zero)
     {
         id_onResponse_Lorbotix_robot_base_DeviceResponse_ = JNIEnv.GetMethodID(class_ref, "onResponse", "(Lorbotix/robot/base/DeviceResponse;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onResponse_Lorbotix_robot_base_DeviceResponse_, new JValue(p0));
 }
示例#5
0
        protected virtual void PostResponse(global::Orbotix.Robot.Base.Robot p0, global::Orbotix.Robot.Base.DeviceResponse p1)
        {
            if (id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_ == IntPtr.Zero)
            {
                id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_ = JNIEnv.GetMethodID(class_ref, "postResponse", "(Lorbotix/robot/base/Robot;Lorbotix/robot/base/DeviceResponse;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_, new JValue(p0), new JValue(p1));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_postResponse_Lorbotix_robot_base_Robot_Lorbotix_robot_base_DeviceResponse_, new JValue(p0), new JValue(p1));
            }
        }
示例#6
0
        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);
        }
示例#7
0
 public DeviceResponseEventArgs(global::Orbotix.Robot.Base.DeviceResponse p0)
 {
     this.p0 = p0;
 }