/FileExtraction/Java_unseen/tianyuan168326_nono-android/app/src/main/java/com/seki/noteasklite/DataUtil/AppUserInfo.java
package com.seki.noteasklite.DataUtil;

/**
 * Created by yuan on 2015/7/31.
 */
public class AppUserInfo {
    public AppUserInfo()
    {
        this.userRealName = new String();
        this.userHeadPicURL =  new String();
        this.userSchool =  new String();
        this.userUniversity =  new String();
        this. userToken = new String();
        this.userId = new String("0");
        this. username = new String();
        this.userpassword = new String();
        this.quickAskToken = new String();
        this.logStateEnum = LogStateEnum.OFFLINE;
        this.userAbstract = new String();
        this.userSex = new String();
    }
    public void setSex(String sex){
        this.userSex = sex;
    }
    public AppUserInfo(String userRealName,
                       String userHeadPicURL,
                       String userSchool,
                       String userUniversity,
                       String userToken,
                       String userId,
                       String username,
                       String userpassword,
                       LogStateEnum logStateEnum,
                       String quickAskToken,
                       String userAbstract)
    {
        this.userRealName = userRealName;
        this.userHeadPicURL = userHeadPicURL;
        this.userSchool = userSchool;
        this.userUniversity = userUniversity;
        this.userToken = userToken;
        this.userId = userId;
        this.username = username;
        this.userpassword = userpassword;
        this.logStateEnum = logStateEnum;
        this.quickAskToken = quickAskToken;
        this.userAbstract = userAbstract;
    }
    public String userRealName;
    public String userHeadPicURL;
    public String userSchool;
    public String userUniversity;
    public String userToken;
    public String userId;
    public  String userSex;
    public String username;
    public String userpassword;
    public  LogStateEnum logStateEnum ;
    public String quickAskToken;
    public String userAbstract;
    public String wonderFull;
    public void reset(){
        this.userRealName = new String();
        this.userHeadPicURL =  new String();
        this.userSchool =  new String();
        this.userUniversity =  new String();
        this. userToken = new String();
        this.userId = new String("0");
        this. username = new String();
        this.userpassword = new String();
        this.quickAskToken = new String();
        this.logStateEnum = LogStateEnum.OFFLINE;
        this.userAbstract = new String();
        this.userSex = new String();
    }
    public void fuckHeadImgae(){
        if(userHeadPicURL.endsWith("-head-head")){
            userHeadPicURL= userHeadPicURL.substring(0, userHeadPicURL.length()-"-head".length());
        }else if( userHeadPicURL.endsWith("-head")){
        }else if(! userHeadPicURL.contains("q.qlogo.cn")){
            userHeadPicURL= userHeadPicURL+"-head";
        }
    }
}
