public static async Task <NCMBUser> Login(string userName, string password) { var user = new NCMBUser(); user.Set("userName", userName).Set("password", password); await user.Login(); return(user); }
public NCMBAcl SetUserAccess(string objectId, JObject obj) { var user = new NCMBUser(); user.Set("objectId", objectId); if ((bool)obj["read"] == true) { this.SetUserReadAccess(user, true); } if ((bool)obj["write"] == true) { this.SetUserWriteAccess(user, true); } return(this); }