static void n_OnFail_Ljava_lang_Object_Lcom_aliyun_alink_linksdk_alcs_api_utils_ErrorInfo_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Client.IDeviceHandler __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Client.IDeviceHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo p1 = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnFail(p0, p1);
 }
Пример #2
0
        static void n_SetErrorMsg_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_errorMsg)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string errorMsg = JNIEnv.GetString(native_errorMsg, JniHandleOwnership.DoNotTransfer);

            __this.ErrorMsg = errorMsg;
        }
        public unsafe void OnFail(global::Java.Lang.Object p0, global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo p1)
        {
            if (id_onFail_Ljava_lang_Object_Lcom_aliyun_alink_linksdk_alcs_api_utils_ErrorInfo_ == IntPtr.Zero)
            {
                id_onFail_Ljava_lang_Object_Lcom_aliyun_alink_linksdk_alcs_api_utils_ErrorInfo_ = JNIEnv.GetMethodID(class_ref, "onFail", "(Ljava/lang/Object;Lcom/aliyun/alink/linksdk/alcs/api/utils/ErrorInfo;)V");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onFail_Ljava_lang_Object_Lcom_aliyun_alink_linksdk_alcs_api_utils_ErrorInfo_, __args);
        }
Пример #4
0
 static IntPtr n_GetErrorMsg(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.ErrorMsg));
 }
Пример #5
0
 static void n_SetErrorCode_I(IntPtr jnienv, IntPtr native__this, int errorCode)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.ErrorCode = errorCode;
 }
Пример #6
0
 static int n_GetErrorCode(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Utils.ErrorInfo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ErrorCode);
 }