Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.5.7同步本地缓存的用户信息-无法保存到本地 #13

Open
liompei opened this issue Sep 13, 2017 · 3 comments
Open

V3.5.7同步本地缓存的用户信息-无法保存到本地 #13

liompei opened this issue Sep 13, 2017 · 3 comments

Comments

@liompei
Copy link

liompei commented Sep 13, 2017

调用BmobUser.fetchUserJsonInfo(FetchUserInfoListener)后拿到了一个String类型的更新信息,但无法将本地MyUser信息更新为最新用户信息,缺少相应接口或方法

@liompei liompei changed the title V3.5.7同步本地缓存的用户信息 V3.5.7同步本地缓存的用户信息-无法保存到本地 Sep 13, 2017
@Ni2014
Copy link
Contributor

Ni2014 commented Sep 14, 2017

有String类型你不能转为User的?

@liompei
Copy link
Author

liompei commented Sep 17, 2017

比如这样
//更新资料 public void updateUserData() { MyUser.fetchUserJsonInfo(new FetchUserInfoListener<MyUser>() { @Override public void done(MyUser myUser, BmobException e) { if (e == null) { Zx.d(s); //在这里如何把本地的MyUser更新到请求到的myUser呢 } else { Zx.e(e.getErrorCode() + e.getMessage()); Zx.show(e.getErrorCode() + e.getMessage()); } } }); }
又如何把网络的更新保存到本地呢

@liompei
Copy link
Author

liompei commented Sep 17, 2017

`MyUser.fetchUserInfo(new FetchUserInfoListener() {
@OverRide
public void done(MyUser myUser, BmobException e) {

        }
    });`

如何保存MyUser到本地呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants