解析emailVerified布尔值不从User对象解析

时间:2014-10-26 05:05:47

标签: parse-platform android-studio

我正在尝试确保在通过Parse登录我的应用之前已验证用户的电子邮件。出于某种原因,应该成为Parse User对象一部分的emailVerified布尔值无法解析。我得到了error: cannot find symbol variable emailVerified。我在这里做错了什么?

/* send data to Parse.com for verification */
    ParseUser.logInInBackground(usernametxt, passwordtxt,
        new LogInCallback() {
            public void done(ParseUser user, ParseException e) {
                            if (user != null) {
                                    if(user.emailVerified == true) {
                                    /* if user exists and is authenticated, notify user */
                                        Toast toast = Toast.makeText(getApplicationContext(),
                                                "Successfully Logged In", Toast.LENGTH_SHORT);
                                        toast.setGravity(Gravity.CENTER, 0, 0);
                                        toast.show();

                                        finish();
                                    }
                                }

0 个答案:

没有答案