Ejemplo n.º 1
0
 static void n_Done_Lcom_parse_ParseGeoPoint_Lcom_parse_ParseException_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Parse.LocationCallback __this = global::Java.Lang.Object.GetObject <global::Com.Parse.LocationCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Parse.ParseGeoPoint    p0     = global::Java.Lang.Object.GetObject <global::Com.Parse.ParseGeoPoint> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Parse.ParseException   p1     = global::Java.Lang.Object.GetObject <global::Com.Parse.ParseException> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.Done(p0, p1);
 }
Ejemplo n.º 2
0
 public override void Done(global::Com.Parse.ParseGeoPoint p0, global::Com.Parse.ParseException p1)
 {
     if (id_done_Lcom_parse_ParseGeoPoint_Lcom_parse_ParseException_ == IntPtr.Zero)
     {
         id_done_Lcom_parse_ParseGeoPoint_Lcom_parse_ParseException_ = JNIEnv.GetMethodID(class_ref, "done", "(Lcom/parse/ParseGeoPoint;Lcom/parse/ParseException;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_done_Lcom_parse_ParseGeoPoint_Lcom_parse_ParseException_, new JValue(p0), new JValue(p1));
 }
        static double n_DistanceInRadiansTo_Lcom_parse_ParseGeoPoint_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Parse.ParseGeoPoint __this = global::Java.Lang.Object.GetObject <global::Com.Parse.ParseGeoPoint> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Parse.ParseGeoPoint p0     = global::Java.Lang.Object.GetObject <global::Com.Parse.ParseGeoPoint> (native_p0, JniHandleOwnership.DoNotTransfer);
            double __ret = __this.DistanceInRadiansTo(p0);

            return(__ret);
        }
        public virtual double DistanceInRadiansTo(global::Com.Parse.ParseGeoPoint p0)
        {
            if (id_distanceInRadiansTo_Lcom_parse_ParseGeoPoint_ == IntPtr.Zero)
            {
                id_distanceInRadiansTo_Lcom_parse_ParseGeoPoint_ = JNIEnv.GetMethodID(class_ref, "distanceInRadiansTo", "(Lcom/parse/ParseGeoPoint;)D");
            }

            double __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallDoubleMethod(Handle, id_distanceInRadiansTo_Lcom_parse_ParseGeoPoint_, new JValue(p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualDoubleMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "distanceInRadiansTo", "(Lcom/parse/ParseGeoPoint;)D"), new JValue(p0));
            }
            return(__ret);
        }
Ejemplo n.º 5
0
 public abstract void Done(global::Com.Parse.ParseGeoPoint p0, global::Com.Parse.ParseException p1);
 static double n_GetLatitude(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Parse.ParseGeoPoint __this = global::Java.Lang.Object.GetObject <global::Com.Parse.ParseGeoPoint> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Latitude);
 }
 static void n_SetLongitude_D(IntPtr jnienv, IntPtr native__this, double p0)
 {
     global::Com.Parse.ParseGeoPoint __this = global::Java.Lang.Object.GetObject <global::Com.Parse.ParseGeoPoint> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Longitude = p0;
 }