예제 #1
0
        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);
        }
예제 #2
0
        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);
        }