static bool n_UpdatePermissions_Lcom_algorithmia_data_DataAcl_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Algorithmia.Data.DataDirectory __this = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataDirectory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Algorithmia.Data.DataAcl p0 = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataAcl> (native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.UpdatePermissions(p0); return(__ret); }
public static unsafe global::Com.Algorithmia.Data.DataAcl FromAclResponse(global::System.Collections.Generic.IDictionary <string, global::System.Collections.Generic.IList <string> > p0) { if (id_fromAclResponse_Ljava_util_Map_ == IntPtr.Zero) { id_fromAclResponse_Ljava_util_Map_ = JNIEnv.GetStaticMethodID(class_ref, "fromAclResponse", "(Ljava/util/Map;)Lcom/algorithmia/data/DataAcl;"); } IntPtr native_p0 = global::Android.Runtime.JavaDictionary <string, global::System.Collections.Generic.IList <string> > .ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Com.Algorithmia.Data.DataAcl __ret = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataAcl> (JNIEnv.CallStaticObjectMethod(class_ref, id_fromAclResponse_Ljava_util_Map_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public virtual unsafe void Create(global::Com.Algorithmia.Data.DataAcl p0) { if (id_create_Lcom_algorithmia_data_DataAcl_ == IntPtr.Zero) { id_create_Lcom_algorithmia_data_DataAcl_ = JNIEnv.GetMethodID(class_ref, "create", "(Lcom/algorithmia/data/DataAcl;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_create_Lcom_algorithmia_data_DataAcl_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "create", "(Lcom/algorithmia/data/DataAcl;)V"), __args); } } finally { } }
public virtual unsafe bool UpdatePermissions(global::Com.Algorithmia.Data.DataAcl p0) { if (id_updatePermissions_Lcom_algorithmia_data_DataAcl_ == IntPtr.Zero) { id_updatePermissions_Lcom_algorithmia_data_DataAcl_ = JNIEnv.GetMethodID(class_ref, "updatePermissions", "(Lcom/algorithmia/data/DataAcl;)Z"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_updatePermissions_Lcom_algorithmia_data_DataAcl_, __args); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "updatePermissions", "(Lcom/algorithmia/data/DataAcl;)Z"), __args); } return(__ret); } finally { } }
static void n_Create_Lcom_algorithmia_data_DataAcl_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Algorithmia.Data.DataDirectory __this = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataDirectory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Algorithmia.Data.DataAcl p0 = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataAcl> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Create(p0); }
static IntPtr n_GetReadPermissions(IntPtr jnienv, IntPtr native__this) { global::Com.Algorithmia.Data.DataAcl __this = global::Java.Lang.Object.GetObject <global::Com.Algorithmia.Data.DataAcl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.ReadPermissions)); }