コード例 #1
0
        static int n_CompareTo_Lcom_amazon_clouddrive_model_UsageDetail_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Amazon.Clouddrive.Model.UsageDetail __this = global::Java.Lang.Object.GetObject <global::Com.Amazon.Clouddrive.Model.UsageDetail> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Amazon.Clouddrive.Model.UsageDetail p0     = global::Java.Lang.Object.GetObject <global::Com.Amazon.Clouddrive.Model.UsageDetail> (native_p0, JniHandleOwnership.DoNotTransfer);
            int __ret = __this.CompareTo(p0);

            return(__ret);
        }
コード例 #2
0
        public virtual unsafe int CompareTo(global::Com.Amazon.Clouddrive.Model.UsageDetail p0)
        {
            if (id_compareTo_Lcom_amazon_clouddrive_model_UsageDetail_ == IntPtr.Zero)
            {
                id_compareTo_Lcom_amazon_clouddrive_model_UsageDetail_ = JNIEnv.GetMethodID(class_ref, "compareTo", "(Lcom/amazon/clouddrive/model/UsageDetail;)I");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                int __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallIntMethod(Handle, id_compareTo_Lcom_amazon_clouddrive_model_UsageDetail_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualIntMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "compareTo", "(Lcom/amazon/clouddrive/model/UsageDetail;)I"), __args);
                }
                return(__ret);
            } finally {
            }
        }
コード例 #3
0
 static void n_SetBytes_J(IntPtr jnienv, IntPtr native__this, long p0)
 {
     global::Com.Amazon.Clouddrive.Model.UsageDetail __this = global::Java.Lang.Object.GetObject <global::Com.Amazon.Clouddrive.Model.UsageDetail> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Bytes = p0;
 }
コード例 #4
0
 static long n_GetBytes(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Amazon.Clouddrive.Model.UsageDetail __this = global::Java.Lang.Object.GetObject <global::Com.Amazon.Clouddrive.Model.UsageDetail> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Bytes);
 }
コード例 #5
0
 static void n_SetBillable_Lcom_amazon_clouddrive_model_UsageDetail_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Amazon.Clouddrive.Model.UsageSummary __this = global::Java.Lang.Object.GetObject <global::Com.Amazon.Clouddrive.Model.UsageSummary> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Amazon.Clouddrive.Model.UsageDetail  p0     = global::Java.Lang.Object.GetObject <global::Com.Amazon.Clouddrive.Model.UsageDetail> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Billable = p0;
 }