如果我延长从的parseObject或任何物体ParseUser,它每次返回我空它包含的每个变量。例如:返回null数据的一切
public class User extends ParseUser {
private boolean emailVerified;
private String facebookID;
private int fiveHundredID;
private String fiveHundredUsername;
private String firstName;
private String lastName;
private String canonicalFirstName;
private String canonicalLastName;
private Date birthday;
private Photo profilePicture;
private int followeeCount;
private int followerCount;
}
然后我打电话User.fetchInBackground(),它不填写除了OBJECTID,电子邮件和其他变量,包含仅在ParseUser类的任何变量。当然,我已经在App类像初始化解析:
Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
Parse.enableLocalDatastore(getApplicationContext());
Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
.applicationId(Const.X_PARSE_APPLICATION_ID)
.clientKey(Const.X_PARSE_REST_API_KEY)
.server(Const.PARSE_SERVER_URL)
.enableLocalDataStore()
//.addNetworkInterceptor(new JsonInterceptor())
.build());
ParseObject.registerSubclass(User.class);
林不使用任何proguard的,因为即时通讯测试上的Debug版本。任何帮助?另外,当我启用LocalDataStore时,它会存储我的当前用户。但是当我调用fetchInBackground()时,它会返回与本地数据存储相同的数据。另外当我调用unpinInBackground()之后,我会调用fetchInBackground(),它仍然会返回存储在数据库中的本地数据。
任何帮助?
非常感谢
你添加注释的模型? –