package com.partynetwork.iparty.info;
import android.os.Parcel;
import android.os.Parcelable;
public class IpartyFreeComboInfo extends IpartyComboInfo implements Parcelable {
// 性别要求0 男;1 女;2 其他;3不限
private int sex;
// 最小年龄要求
private int minAge;
// 最大年龄要求
private int maxAge;
// 是否需要照片0:需要;1 不需要
private int needPhoto;
// 备注
private String remark;
/**
* @return attendNum
*/
public int getAttendNum() {
return attendNum;
}
/**
* @param attendNum
* 要设置的 attendNum
*/
public void setAttendNum(int attendNum) {
this.attendNum = attendNum;
}
/**
* @return maxNum
*/
public int getMaxNum() {
return maxNum;
}
/**
* @param maxNum
* 要设置的 maxNum
*/
public void setMaxNum(int maxNum) {
this.maxNum = maxNum;
}
/**
* @return introduce
*/
public String getIntroduce() {
return introduce;
}
/**
* @param introduce
* 要设置的 introduce 文字介绍
*/
public void setIntroduce(String introduce) {
this.introduce = introduce;
}
/**
* @return sex
*/
public int getSex() {
return sex;
}
/**
* @param sex
* 要设置的 sex
*/
public void setSex(int sex) {
this.sex = sex;
}
/**
* @return minAge
*/
public int getMinAge() {
return minAge;
}
/**
* @param minAge
* 要设置的 minAge
*/
public void setMinAge(int minAge) {
this.minAge = minAge;
}
/**
* @return maxAge
*/
public int getMaxAge() {
return maxAge;
}
/**
* @param maxAge
* 要设置的 maxAge
*/
public void setMaxAge(int maxAge) {
this.maxAge = maxAge;
}
/**
* @return needPhoto
*/
public int getNeedPhoto() {
return needPhoto;
}
/**
* @param needPhoto
* 要设置的 needPhoto
*/
public void setNeedPhoto(int needPhoto) {
this.needPhoto = needPhoto;
}
/**
* @return remark
*/
public String getRemark() {
return remark;
}
/**
* @param remark
* 要设置的 remark
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* @return comboPhotoUrl
*/
public String getComboPhotoUrl() {
return comboPhotoUrl;
}
/**
* @param comboPhotoUrl
* 要设置的 comboPhotoUrl
*/
public void setComboPhotoUrl(String comboPhotoUrl) {
this.comboPhotoUrl = comboPhotoUrl;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(comboId);
dest.writeFloat(money);// 套餐金额
dest.writeInt(attendNum);// 参加人数
dest.writeInt(maxNum);// 最大可参加人数
dest.writeString(introduce);// 文字介绍
dest.writeString(comboPhotoUrl);// 图片若无则为空
dest.writeInt(sex);// 性别要求0 男;1 女;2 其他;3不限
dest.writeInt(minAge);// 最小年龄要求
dest.writeInt(maxAge);// 最大年龄要求
dest.writeInt(needPhoto);// 是否需要照片0:需要;1 不需要
dest.writeString(remark);// 备注
}
public static Parcelable.Creator<IpartyFreeComboInfo> CREATOR = new Parcelable.Creator<IpartyFreeComboInfo>() {
public IpartyFreeComboInfo createFromParcel(Parcel in) {
return new IpartyFreeComboInfo(in);
}
public IpartyFreeComboInfo[] newArray(int size) {
return new IpartyFreeComboInfo[size];
}
};
private IpartyFreeComboInfo(Parcel in) {
comboId = in.readInt();
money = in.readFloat();// 套餐金额
attendNum = in.readInt();// 参加人数
maxNum = in.readInt();// 最大可参加人数
introduce = in.readString();// 文字介绍
comboPhotoUrl = in.readString();// 图片若无则为空
sex = in.readInt();// 性别要求0 男;1 女;2 其他;3不限
minAge = in.readInt();// 最小年龄要求
maxAge = in.readInt();// 最大年龄要求
needPhoto = in.readInt();// 是否需要照片0:需要;1 不需要
remark = in.readString();// 备注
}
public IpartyFreeComboInfo() {
}
}