public void SetRoleWriteAccess(ParseRole role, bool value) { if (role == null) { throw new ArgumentNullException(nameof(role)); } string roleKey = $"{RoleKeyPrefix}{role.ObjectId}"; SetAccess(writeAccess, roleKey, value); }
public static ParseRole Create(string name, ParseACL acl) { ParseRole role = new ParseRole() { Name = name, ACL = acl }; return(role); }
public bool GetRoleWriteAccess(ParseRole role) { if (role == null) { throw new ArgumentNullException(nameof(role)); } string roleKey = $"{RoleKeyPrefix}{role.ObjectId}"; return(GetAccess(writeAccess, roleKey)); }