static void n_OnRecRequest_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPContext_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPRequest_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.IAlcsCoAPResHandler __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.IAlcsCoAPResHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPContext     p0     = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPContext> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest     p1     = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnRecRequest(p0, p1);
 }
        static void n_SetScheme_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_scheme)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string scheme = JNIEnv.GetString(native_scheme, JniHandleOwnership.DoNotTransfer);

            __this.Scheme = scheme;
        }
        static IntPtr n_SetURI_Ljava_net_URI_(IntPtr jnienv, IntPtr native__this, IntPtr native_uri)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Net.URI uri = global::Java.Lang.Object.GetObject <global::Java.Net.URI> (native_uri, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret             = JNIEnv.ToLocalJniHandle(__this.SetURI(uri));

            return(__ret);
        }
        static IntPtr n_SetSenderIdentity_Ljava_security_Principal_(IntPtr jnienv, IntPtr native__this, IntPtr native_senderIdentity)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Security.IPrincipal senderIdentity = (global::Java.Security.IPrincipal)global::Java.Lang.Object.GetObject <global::Java.Security.IPrincipal> (native_senderIdentity, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetSenderIdentity(senderIdentity));

            return(__ret);
        }
        static IntPtr n_SetUserContext_Ljava_util_Map_(IntPtr jnienv, IntPtr native__this, IntPtr native_userContext)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var userContext = global::Android.Runtime.JavaDictionary <string, string> .FromJniHandle(native_userContext, JniHandleOwnership.DoNotTransfer);

            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetUserContext(userContext));

            return(__ret);
        }
        static long n_SendRequestSecure_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPRequest_Lcom_aliyun_alink_linksdk_alcs_coap_IAlcsCoAPReqHandler_(IntPtr jnienv, IntPtr native__this, IntPtr native_request, IntPtr native_requestCallback)
        {
            global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServer    __this          = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest     request         = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (native_request, JniHandleOwnership.DoNotTransfer);
            global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.IAlcsCoAPReqHandler requestCallback = (global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.IAlcsCoAPReqHandler)global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.IAlcsCoAPReqHandler> (native_requestCallback, JniHandleOwnership.DoNotTransfer);
            long __ret = __this.SendRequestSecure(request, requestCallback);

            return(__ret);
        }
        public virtual unsafe long SendRequestSecure(global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest request, global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.IAlcsCoAPReqHandler requestCallback)
        {
            const string __id = "sendRequestSecure.(Lcom/aliyun/alink/linksdk/alcs/coap/AlcsCoAPRequest;Lcom/aliyun/alink/linksdk/alcs/coap/IAlcsCoAPReqHandler;)J";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue((requestCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)requestCallback).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualInt64Method(__id, this, __args);
                return(__rm);
            } finally {
            }
        }
 static void n_SetRequestCode_I(IntPtr jnienv, IntPtr native__this, int code)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SetRequestCode(code);
 }
 static IntPtr n_GetUserContext(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(__this.UserContext));
 }
 static IntPtr n_GetURI(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.URI));
 }
 static IntPtr n_GetSenderIdentity(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.SenderIdentity));
 }
 static int n_GetRawCode(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.RawCode);
 }
        public unsafe void OnRecRequest(global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPContext p0, global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest p1)
        {
            if (id_onRecRequest_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPContext_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPRequest_ == IntPtr.Zero)
            {
                id_onRecRequest_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPContext_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPRequest_ = JNIEnv.GetMethodID(class_ref, "onRecRequest", "(Lcom/aliyun/alink/linksdk/alcs/coap/AlcsCoAPContext;Lcom/aliyun/alink/linksdk/alcs/coap/AlcsCoAPRequest;)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_onRecRequest_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPContext_Lcom_aliyun_alink_linksdk_alcs_coap_AlcsCoAPRequest_, __args);
        }
Esempio n. 14
0
        public static unsafe global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPResponse CreateResponse(global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPRequest request, global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPConstant.ResponseCode code)
        {
            const string __id = "createResponse.(Lcom/aliyun/alink/linksdk/alcs/coap/AlcsCoAPRequest;Lcom/aliyun/alink/linksdk/alcs/coap/AlcsCoAPConstant$ResponseCode;)Lcom/aliyun/alink/linksdk/alcs/coap/AlcsCoAPResponse;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                __args [1] = new JniArgumentValue((code == null) ? IntPtr.Zero : ((global::Java.Lang.Object)code).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Coap.AlcsCoAPResponse> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }