static void n_WriteToParcel_Landroid_os_Parcel_I(IntPtr jnienv, IntPtr native__this, IntPtr native_dest, int native_flags)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Parcel dest = global::Java.Lang.Object.GetObject <global::Android.OS.Parcel> (native_dest, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.ParcelableWriteFlags flags = (global::Android.OS.ParcelableWriteFlags)native_flags;
     __this.WriteToParcel(dest, flags);
 }
        static void n_SetName_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_name)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string name = JNIEnv.GetString(native_name, JniHandleOwnership.DoNotTransfer);

            __this.Name = name;
        }
Пример #3
0
        static IntPtr n_AddDimension_Lcom_alibaba_mtl_appmonitor_model_Dimension_(IntPtr jnienv, IntPtr native__this, IntPtr native_dimension)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __this    = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension    dimension = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> (native_dimension, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddDimension(dimension));

            return(__ret);
        }
Пример #4
0
        public virtual unsafe global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet AddDimension(global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension dimension)
        {
            if (id_addDimension_Lcom_alibaba_mtl_appmonitor_model_Dimension_ == IntPtr.Zero)
            {
                id_addDimension_Lcom_alibaba_mtl_appmonitor_model_Dimension_ = JNIEnv.GetMethodID(class_ref, "addDimension", "(Lcom/alibaba/mtl/appmonitor/model/Dimension;)Lcom/alibaba/mtl/appmonitor/model/DimensionSet;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(dimension);

                global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_addDimension_Lcom_alibaba_mtl_appmonitor_model_Dimension_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "addDimension", "(Lcom/alibaba/mtl/appmonitor/model/Dimension;)Lcom/alibaba/mtl/appmonitor/model/DimensionSet;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.DescribeContents());
 }
 static IntPtr n_GetName(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Dimension> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.Name));
 }