User.java 7.52 KB
package com.bjivt.entity.showtime;

import java.beans.Transient;
import java.util.Date;

import com.bjivt.util.Base64Utils;

public class User {
    private Integer id;

    private String name;

    private String msisdn;

    private String captcha;

    private String avatar;

    private String email;

    private String signature;

    private Integer liveCount;

    private Integer likeCount;

    private Integer exp;

    private Integer fansCount;

    private Integer followerCount;

    private Integer chineseCoin;

    private Integer meCoinTotal;

    private Integer meCoinBalance;

    private Integer sentGiftCount;

    private Integer sentGiftMoneyCount;

    private Integer sentRedEnvelopCount;

    private Integer sentRedEnvelopMoneyCount;

    private String sex;

    private Integer age;

    private String hometown;

    private String profession;

    private String password;

    private String thirdPartyType;

    private String thirdPartyAccount;

    private Date createTime;

    private Date lastLoginTime;

    private String lastLoginIp;

    private Short chatAuth;

    private Short isStar;

    private String lastLoginLocation;

    private String active;
    
    private String queryName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
    	try {
    		if(name != null)
    			name = new String(Base64Utils.decode(name),"UTF-8");
		} catch (Exception e) {
			
		}
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMsisdn() {
        return msisdn;
    }

    public void setMsisdn(String msisdn) {
        this.msisdn = msisdn == null ? null : msisdn.trim();
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha == null ? null : captcha.trim();
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getSignature() {
    	try {
    		if(signature != null)
    			signature = new String(Base64Utils.decode(signature),"UTF-8");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature == null ? null : signature.trim();
    }

    public Integer getLiveCount() {
        return liveCount;
    }

    public void setLiveCount(Integer liveCount) {
        this.liveCount = liveCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getExp() {
        return exp;
    }

    public void setExp(Integer exp) {
        this.exp = exp;
    }

    public Integer getFansCount() {
        return fansCount;
    }

    public void setFansCount(Integer fansCount) {
        this.fansCount = fansCount;
    }

    public Integer getFollowerCount() {
        return followerCount;
    }

    public void setFollowerCount(Integer followerCount) {
        this.followerCount = followerCount;
    }

    public Integer getChineseCoin() {
        return chineseCoin;
    }

    public void setChineseCoin(Integer chineseCoin) {
        this.chineseCoin = chineseCoin;
    }

    public Integer getMeCoinTotal() {
        return meCoinTotal;
    }

    public void setMeCoinTotal(Integer meCoinTotal) {
        this.meCoinTotal = meCoinTotal;
    }

    public Integer getMeCoinBalance() {
        return meCoinBalance;
    }

    public void setMeCoinBalance(Integer meCoinBalance) {
        this.meCoinBalance = meCoinBalance;
    }

    public Integer getSentGiftCount() {
        return sentGiftCount;
    }

    public void setSentGiftCount(Integer sentGiftCount) {
        this.sentGiftCount = sentGiftCount;
    }

    public Integer getSentGiftMoneyCount() {
        return sentGiftMoneyCount;
    }

    public void setSentGiftMoneyCount(Integer sentGiftMoneyCount) {
        this.sentGiftMoneyCount = sentGiftMoneyCount;
    }

    public Integer getSentRedEnvelopCount() {
        return sentRedEnvelopCount;
    }

    public void setSentRedEnvelopCount(Integer sentRedEnvelopCount) {
        this.sentRedEnvelopCount = sentRedEnvelopCount;
    }

    public Integer getSentRedEnvelopMoneyCount() {
        return sentRedEnvelopMoneyCount;
    }

    public void setSentRedEnvelopMoneyCount(Integer sentRedEnvelopMoneyCount) {
        this.sentRedEnvelopMoneyCount = sentRedEnvelopMoneyCount;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown == null ? null : hometown.trim();
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession == null ? null : profession.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getThirdPartyType() {
        return thirdPartyType;
    }

    public void setThirdPartyType(String thirdPartyType) {
        this.thirdPartyType = thirdPartyType == null ? null : thirdPartyType.trim();
    }

    public String getThirdPartyAccount() {
        return thirdPartyAccount;
    }

    public void setThirdPartyAccount(String thirdPartyAccount) {
        this.thirdPartyAccount = thirdPartyAccount == null ? null : thirdPartyAccount.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp == null ? null : lastLoginIp.trim();
    }

    public Short getChatAuth() {
        return chatAuth;
    }

    public void setChatAuth(Short chatAuth) {
        this.chatAuth = chatAuth;
    }

    public Short getIsStar() {
        return isStar;
    }

    public void setIsStar(Short isStar) {
        this.isStar = isStar;
    }

    public String getLastLoginLocation() {
        return lastLoginLocation;
    }

    public void setLastLoginLocation(String lastLoginLocation) {
        this.lastLoginLocation = lastLoginLocation == null ? null : lastLoginLocation.trim();
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active == null ? null : active.trim();
    }

    @Transient
	public String getQueryName() {
		return queryName;
	}

	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}
    
    
    
}