public static ParseRole Create(string name, ParseACL acl) { ParseRole role = new ParseRole() { Name = name, ACL = acl }; return(role); }
public static ParseACL CreateWithOwner(ParseUser owner) { if (owner == null) { throw new ArgumentNullException(nameof(owner)); } ParseACL acl = new ParseACL(); acl.SetUserReadAccess(owner, true); acl.SetUserWriteAccess(owner, true); return(acl); }