Beispiel #1
0
        public unsafe RealCommand(global::Com.Vivalnk.Sdk.Model.Device p0, global::Com.Vivalnk.Sdk.CommandRequest p1, global::Com.Vivalnk.Sdk.ICallback p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/vivalnk/sdk/model/Device;Lcom/vivalnk/sdk/CommandRequest;Lcom/vivalnk/sdk/Callback;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
        public static unsafe global::Com.Vivalnk.Sdk.Base.RealCommand CreateCommand(global::Com.Vivalnk.Sdk.Model.Device p0, global::Com.Vivalnk.Sdk.CommandRequest p1, global::Com.Vivalnk.Sdk.ICallback p2)
        {
            const string __id = "createCommand.(Lcom/vivalnk/sdk/model/Device;Lcom/vivalnk/sdk/CommandRequest;Lcom/vivalnk/sdk/Callback;)Lcom/vivalnk/sdk/base/RealCommand;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Vivalnk.Sdk.Base.RealCommand> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }