コード例 #1
0
        public void SetRoleWriteAccess(ParseRole role, bool value)
        {
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role));
            }
            string roleKey = $"{RoleKeyPrefix}{role.ObjectId}";

            SetAccess(writeAccess, roleKey, value);
        }
コード例 #2
0
        public static ParseRole Create(string name, ParseACL acl)
        {
            ParseRole role = new ParseRole()
            {
                Name = name,
                ACL  = acl
            };

            return(role);
        }
コード例 #3
0
        public bool GetRoleWriteAccess(ParseRole role)
        {
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role));
            }
            string roleKey = $"{RoleKeyPrefix}{role.ObjectId}";

            return(GetAccess(writeAccess, roleKey));
        }