package com.partynetwork.iparty.info;
import com.partynetwork.iparty.app.entities.CommonUser;
import android.os.Parcel;
import android.os.Parcelable;
public class ContactsInfo extends CommonUser implements Parcelable {
// 和当前用户的关系:0 未关注;1 已关注;2 i好友;3 去你妹;4 粉丝
private int relationship;
// 当前好友所在的分组Id
private int groupId;
// 当前好友所在组别
private String userGroup;
// 共同好友数量(当前关系为0时,需要返回共同好友)
private int commonUserNumber;
// 本次用户是否已经选择
private int isChoose;
/**
* @return userId
*/
public int getUserId() {
return userId;
}
/**
* @param userId
* 要设置的 userId
*/
public void setUserId(int userId) {
this.userId = userId;
}
/**
* @return userHeadUrl
*/
public String getUserHeadUrl() {
return userHeadUrl;
}
/**
* @param userHeadUrl
* 要设置的 userHeadUrl
*/
public void setUserHeadUrl(String userHeadUrl) {
this.userHeadUrl = userHeadUrl;
}
/**
* @return userName
*/
public String getUserName() {
return userName;
}
/**
* @param userName
* 要设置的 userName
*/
public void setUserName(String userName) {
this.userName = userName;
}
/**
* @return userSex
*/
public int getUserSex() {
return userSex;
}
/**
* @param userSex
* 要设置的 userSex
*/
public void setUserSex(int userSex) {
this.userSex = userSex;
}
/**
* @return userState
*/
public String getUserState() {
return userState;
}
/**
* @param userState
* 要设置的 userState
*/
public void setUserState(String userState) {
this.userState = userState;
}
/**
* @return userAge
*/
public int getUserAge() {
return userAge;
}
/**
* @param userAge
* 要设置的 userAge
*/
public void setUserAge(int userAge) {
this.userAge = userAge;
}
/**
* @return userCity
*/
public String getUserCity() {
return userCity;
}
/**
* @param userCity
* 要设置的 userCity
*/
public void setUserCity(String userCity) {
this.userCity = userCity;
}
/**
* @return relationship
*/
public int getRelationship() {
return relationship;
}
/**
* @param relationship
* 要设置的 relationship
*/
public void setRelationship(int relationship) {
this.relationship = relationship;
}
/**
* @return groupId
*/
public int getGroupId() {
return groupId;
}
/**
* @param groupId
* 要设置的 groupId
*/
public void setGroupId(int groupId) {
this.groupId = groupId;
}
/**
* @return userGroup
*/
public String getUserGroup() {
return userGroup;
}
/**
* @param userGroup
* 要设置的 userGroup
*/
public void setUserGroup(String userGroup) {
this.userGroup = userGroup;
}
/**
* @return commonUserNumber
*/
public int getCommonUserNumber() {
return commonUserNumber;
}
/**
* @param commonUserNumber
* 要设置的 commonUserNumber
*/
public void setCommonUserNumber(int commonUserNumber) {
this.commonUserNumber = commonUserNumber;
}
/**
* @return isChoose
*/
public int getIsChoose() {
return isChoose;
}
/**
* @param isChoose
* 要设置的 isChoose
*/
public void setIsChoose(int isChoose) {
this.isChoose = isChoose;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(userId);
dest.writeString(userHeadUrl);
dest.writeString(userName);
dest.writeInt(userSex);
dest.writeString(userState);
dest.writeInt(userAge);
dest.writeString(userCity);
dest.writeInt(relationship);
dest.writeInt(groupId);
dest.writeString(userGroup);
dest.writeInt(commonUserNumber);
dest.writeInt(isChoose);
}
public static final Parcelable.Creator<ContactsInfo> CREATOR = new Parcelable.Creator<ContactsInfo>() {
public ContactsInfo createFromParcel(Parcel in) {
return new ContactsInfo(in);
}
public ContactsInfo[] newArray(int size) {
return new ContactsInfo[size];
}
};
private ContactsInfo(Parcel in) {
userId = in.readInt();
userHeadUrl = in.readString();
userName = in.readString();
userSex = in.readInt();
userState = in.readString();
userAge = in.readInt();
userCity = in.readString();
relationship = in.readInt();
groupId = in.readInt();
userGroup = in.readString();
commonUserNumber = in.readInt();
isChoose = in.readInt();
}
public ContactsInfo() {
}
}