Example #1
0
 protected new unsafe bool Handle(global::Com.Liveperson.Api.Response.Events.MessagingEventNotification p0)
 {
     if (id_handle_Lcom_liveperson_api_response_events_MessagingEventNotification_ == IntPtr.Zero)
     {
         id_handle_Lcom_liveperson_api_response_events_MessagingEventNotification_ = JNIEnv.GetMethodID(class_ref, "handle", "(Lcom/liveperson/api/response/events/MessagingEventNotification;)Z");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_handle_Lcom_liveperson_api_response_events_MessagingEventNotification_, __args);
         return(__ret);
     } finally {
     }
 }
Example #2
0
 protected unsafe global::Com.Liveperson.Api.Response.Events.MessagingEventNotification Parse(global::Org.Json.JSONObject p0)
 {
     if (id_parse_Lorg_json_JSONObject_ == IntPtr.Zero)
     {
         id_parse_Lorg_json_JSONObject_ = JNIEnv.GetMethodID(class_ref, "parse", "(Lorg/json/JSONObject;)Lcom/liveperson/api/response/events/MessagingEventNotification;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Liveperson.Api.Response.Events.MessagingEventNotification __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Api.Response.Events.MessagingEventNotification> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_parse_Lorg_json_JSONObject_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }