-
- All Implemented Interfaces:
-
java.lang.Cloneable
public class User implements Cloneable
Created by mikeshou on 15/8/31.
-
-
Field Summary
Fields Modifier and Type Field Description private int
regFrom
private String
username
private String
sid
private String
uid
private String
service
private String
ecode
private String
nickName
private String
phoneCode
private String
partnerIdentity
private String
mobile
private int
userType
private int
productCount
private String
email
private Domain
domain
private String
headPic
private String
timezoneId
private String
userAlias
private int
dataVersion
private int
tempUnit
private String
snsNickname
private Map<String, Object>
extras
private User
publicUser
private String
publicSession
private UserToB
userToB
public final static Creator<User>
CREATOR
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
Modifier and Type Method Description int
getRegFrom()
Gets type of account registration. void
setRegFrom(int regFrom)
Sets the type of account registration. String
getUsername()
Gets username. void
setUsername(String username)
Sets username. String
getSid()
Gets session id. void
setSid(String sid)
Sets session id. String
getUid()
Gets user ID. void
setUid(String uid)
Sets user ID. String
getService()
Gets service. void
setService(String service)
Sets service. String
getEcode()
Gets encryption code. void
setEcode(String ecode)
Sets encryption code. String
getNickName()
Gets user nickname. void
setNickName(String nickName)
Sets user nickname. String
getPhoneCode()
Gets country code. void
setPhoneCode(String phoneCode)
Sets country code. String
getPartnerIdentity()
Gets partner identity. void
setPartnerIdentity(String partnerIdentity)
Sets partner identity. String
getMobile()
Gets mobile phone number. void
setMobile(String mobile)
Sets mobile phone number. int
getUserType()
Gets user type. void
setUserType(int userType)
Sets user type. int
getProductCount()
Gets product counts. void
setProductCount(int productCount)
Sets product counts. String
getEmail()
Gets email address. void
setEmail(String email)
Sets email address. Domain
getDomain()
Gets account domain Instance. void
setDomain(Domain domain)
Sets account domain Instance. String
getHeadPic()
Gets user avatar link address. void
setHeadPic(String headPic)
Sets user avatar link address. String
getTimezoneId()
Gets user time zone information. void
setTimezoneId(String timezoneId)
Sets user time zone information. String
getUserAlias()
Get user alias void
setUserAlias(String userAlias)
Set user alias int
getDataVersion()
Gets data version. void
setDataVersion(int dataVersion)
Sets data version. int
getTempUnit()
Gets temperature unit. void
setTempUnit(int tempUnit)
Sets temperature unit. String
getSnsNickname()
Gets the nickname of the third-party account. void
setSnsNickname(String snsNickname)
Sets the nickname of the third-party account. Map<String, Object>
getExtras()
Gets user extension information. void
setExtras(Map<String, Object> extras)
Sets user extension information. User
getPublicUser()
void
setPublicUser(User publicUser)
String
getPublicSession()
void
setPublicSession(String publicSession)
UserToB
getUserToB()
Get toB user void
setUserToB(UserToB userToB)
Set toB user Object
clone()
int
describeContents()
void
writeToParcel(Parcel dest, int flags)
-
-
Method Detail
-
getRegFrom
int getRegFrom()
Gets type of account registration.
-
setRegFrom
void setRegFrom(int regFrom)
Sets the type of account registration.
- Parameters:
regFrom
- account registration type
-
getUsername
String getUsername()
Gets username.
-
setUsername
void setUsername(String username)
Sets username.
- Parameters:
username
- the username
-
getSid
String getSid()
Gets session id.
-
setSid
void setSid(String sid)
Sets session id.
- Parameters:
sid
- the session id
-
getUid
String getUid()
Gets user ID.
-
setUid
void setUid(String uid)
Sets user ID.
- Parameters:
uid
- the user ID
-
getService
String getService()
Gets service.
-
setService
void setService(String service)
Sets service.
- Parameters:
service
- the service
-
getEcode
String getEcode()
Gets encryption code.
-
setEcode
void setEcode(String ecode)
Sets encryption code.
- Parameters:
ecode
- the encryption code
-
getNickName
String getNickName()
Gets user nickname.
-
setNickName
void setNickName(String nickName)
Sets user nickname.
- Parameters:
nickName
- the nickname
-
getPhoneCode
String getPhoneCode()
Gets country code.
-
setPhoneCode
void setPhoneCode(String phoneCode)
Sets country code.
- Parameters:
phoneCode
- the country code
-
getPartnerIdentity
String getPartnerIdentity()
Gets partner identity.
-
setPartnerIdentity
void setPartnerIdentity(String partnerIdentity)
Sets partner identity.
- Parameters:
partnerIdentity
- the partner identity
-
getMobile
String getMobile()
Gets mobile phone number.
-
setMobile
void setMobile(String mobile)
Sets mobile phone number.
- Parameters:
mobile
- the mobile phone number
-
getUserType
int getUserType()
Gets user type.
-
setUserType
void setUserType(int userType)
Sets user type.
- Parameters:
userType
- the user type like{0:User does not exist 1:Skip to the Supplementary Enterprise Information page}
-
getProductCount
int getProductCount()
Gets product counts.
-
setProductCount
void setProductCount(int productCount)
Sets product counts.
- Parameters:
productCount
- the product count
-
getEmail
String getEmail()
Gets email address.
-
setEmail
void setEmail(String email)
Sets email address.
- Parameters:
email
- the email address
-
setDomain
void setDomain(Domain domain)
Sets account domain Instance.
- Parameters:
domain
- the Domain
-
getHeadPic
String getHeadPic()
Gets user avatar link address.
-
setHeadPic
void setHeadPic(String headPic)
Sets user avatar link address.
- Parameters:
headPic
- the link address
-
getTimezoneId
String getTimezoneId()
Gets user time zone information.
-
setTimezoneId
void setTimezoneId(String timezoneId)
Sets user time zone information.
- Parameters:
timezoneId
- the timezone
-
getUserAlias
String getUserAlias()
Get user alias
-
setUserAlias
void setUserAlias(String userAlias)
Set user alias
-
getDataVersion
int getDataVersion()
Gets data version.
-
setDataVersion
void setDataVersion(int dataVersion)
Sets data version.
- Parameters:
dataVersion
- the data version
-
getTempUnit
int getTempUnit()
Gets temperature unit.
-
setTempUnit
void setTempUnit(int tempUnit)
Sets temperature unit.
- Parameters:
tempUnit
- the temperature unit like {1:°C, 2:°F}
-
getSnsNickname
String getSnsNickname()
Gets the nickname of the third-party account.
-
setSnsNickname
void setSnsNickname(String snsNickname)
Sets the nickname of the third-party account.
- Parameters:
snsNickname
- the third-party account nickname
-
getExtras
Map<String, Object> getExtras()
Gets user extension information.
-
setExtras
void setExtras(Map<String, Object> extras)
Sets user extension information.
- Parameters:
extras
- the extension information
-
getPublicUser
User getPublicUser()
-
setPublicUser
void setPublicUser(User publicUser)
-
getPublicSession
String getPublicSession()
-
setPublicSession
void setPublicSession(String publicSession)
-
getUserToB
UserToB getUserToB()
Get toB user
-
setUserToB
void setUserToB(UserToB userToB)
Set toB user
- Parameters:
userToB
- user toB
-
clone
Object clone()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-