Esempio n. 1
0
            public unsafe ClockResponseHandler(global::Com.Liveperson.Messaging.Network.Socket.General_requests.ClockRequest __self)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(__self);
                    if (((object)this).GetType() != typeof(ClockResponseHandler))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_liveperson_messaging_network_socket_general_requests_ClockRequest_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_liveperson_messaging_network_socket_general_requests_ClockRequest_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/messaging/network/socket/general_requests/ClockRequest;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_messaging_network_socket_general_requests_ClockRequest_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_messaging_network_socket_general_requests_ClockRequest_, __args);
                } finally {
                }
            }
Esempio n. 2
0
 static IntPtr n_GetResponseHandler(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Liveperson.Messaging.Network.Socket.General_requests.ClockRequest __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Messaging.Network.Socket.General_requests.ClockRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.ResponseHandler));
 }