// Path: app/src/main/java/com/tyq/jiemian/bean/User.java
// public class User extends BmobUser {
// 
//     private String nickName;
//     private String sex;
//     private String signature;
// 
//     public String getSex() {
//         return sex;
//     }
// 
//     public void setSex(String sex) {
//         this.sex = sex;
//     }
// 
//     public String getSignature() {
//         return signature;
//     }
// 
//     public void setSignature(String signature) {
//         this.signature = signature;
//     }
// 
//     public String getNickName() {
//         return nickName;
//     }
// 
//     public void setNickName(String nickName) {
//         this.nickName = nickName;
//     }
// }


import android.content.Context;
import android.util.Log;
import com.tyq.jiemian.bean.User;
import cn.bmob.v3.BmobUser;
import cn.bmob.v3.listener.SaveListener;
import cn.bmob.v3.listener.UpdateListener;
package com.tyq.jiemian.utils;




/**
 * Created by tyq on 2015/11/25.
 */
public class UserProxy {


    public interface LoginAndRegisterInterface{
        void onSuccess();
        void onFailure(String msg);
    }
    public interface UpdateInfoInterface{
        void onSuccess();
        void onFailure(String msg);
    }

    public UpdateInfoInterface updateInfoInterface;

    public static void register(Context context,String username,String password, final LoginAndRegisterInterface loginAndRegisterInterface){
// Path: app/src/main/java/com/tyq/jiemian/bean/User.java
// public class User extends BmobUser {
// 
//     private String nickName;
//     private String sex;
//     private String signature;
// 
//     public String getSex() {
//         return sex;
//     }
// 
//     public void setSex(String sex) {
//         this.sex = sex;
//     }
// 
//     public String getSignature() {
//         return signature;
//     }
// 
//     public void setSignature(String signature) {
//         this.signature = signature;
//     }
// 
//     public String getNickName() {
//         return nickName;
//     }
// 
//     public void setNickName(String nickName) {
//         this.nickName = nickName;
//     }
// }


// Path: app/src/main/java/com/tyq/jiemian/utils/UserProxy.java
import android.content.Context;
import android.util.Log;
import com.tyq.jiemian.bean.User;
import cn.bmob.v3.BmobUser;
import cn.bmob.v3.listener.SaveListener;
import cn.bmob.v3.listener.UpdateListener;

package com.tyq.jiemian.utils;




/**
 * Created by tyq on 2015/11/25.
 */
public class UserProxy {


    public interface LoginAndRegisterInterface{
        void onSuccess();
        void onFailure(String msg);
    }
    public interface UpdateInfoInterface{
        void onSuccess();
        void onFailure(String msg);
    }

    public UpdateInfoInterface updateInfoInterface;

    public static void register(Context context,String username,String password, final LoginAndRegisterInterface loginAndRegisterInterface){
        User user  = new User();