package com.partynetwork.iparty.info;
import android.os.Parcel;
import android.os.Parcelable;
/**
* iparty的消息实体
*/
public class CommonIpartyInfo implements Parcelable {
// ipartyId
public int ipartyId;
// 发布人Id
public int userId;
// 发布编号
public String publishedNumber;
// 发布时间
public String publishedTime;
// 发布地点
public String publishedLocation;
// 活动标题
public String eventTitle;
// 活动时间集合(包含至少一个时间)
public TimeInfo[] eventTime;
// 当前活动进度
public float eventProgressRate;
// 活动地点
public String eventAddress;
// 活动发布的类型:0 众筹;1 预定
public int eventModel;
// 活动当前状态:0 正在举办;1 成功举办;2 举办失败;3 预热中
public int eventStatus;
// 封面的图片
public String eventFrontCoverUrl;
/**
* @return ipartyId
*/
public int getIpartyId() {
return ipartyId;
}
/**
* @param ipartyId
* 要设置的 ipartyId
*/
public void setIpartyId(int ipartyId) {
this.ipartyId = ipartyId;
}
/**
* @return userId
*/
public int getUserId() {
return userId;
}
/**
* @param userId
* 要设置的 userId
*/
public void setUserId(int userId) {
this.userId = userId;
}
/**
* @return publishedNumber
*/
public String getPublishedNumber() {
return publishedNumber;
}
/**
* @param publishedNumber
* 要设置的 publishedNumber
*/
public void setPublishedNumber(String publishedNumber) {
this.publishedNumber = publishedNumber;
}
/**
* @return publishedTime
*/
public String getPublishedTime() {
return publishedTime;
}
/**
* @param publishedTime
* 要设置的 publishedTime
*/
public void setPublishedTime(String publishedTime) {
this.publishedTime = publishedTime;
}
/**
* @return publishedLocation
*/
public String getPublishedLocation() {
return publishedLocation;
}
/**
* @param publishedLocation
* 要设置的 publishedLocation
*/
public void setPublishedLocation(String publishedLocation) {
this.publishedLocation = publishedLocation;
}
/**
* @return eventTitle
*/
public String getEventTitle() {
return eventTitle;
}
/**
* @param eventTitle
* 要设置的 eventTitle
*/
public void setEventTitle(String eventTitle) {
this.eventTitle = eventTitle;
}
/**
* @return eventTime
*/
public TimeInfo[] getEventTime() {
return eventTime;
}
/**
* @param eventTime
* 要设置的 eventTime
*/
public void setEventTime(TimeInfo[] eventTime) {
this.eventTime = eventTime;
}
/**
* @return eventProgressRate
*/
public float getEventProgressRate() {
return eventProgressRate;
}
/**
* @param eventProgressRate
* 要设置的 eventProgressRate
*/
public void setEventProgressRate(float eventProgressRate) {
this.eventProgressRate = eventProgressRate;
}
/**
* @return eventAddress
*/
public String getEventAddress() {
return eventAddress;
}
/**
* @param eventAddress
* 要设置的 eventAddress
*/
public void setEventAddress(String eventAddress) {
this.eventAddress = eventAddress;
}
/**
* @return eventModel
*/
public int getEventModel() {
return eventModel;
}
/**
* @param eventModel
* 要设置的 eventModel
*/
public void setEventModel(int eventModel) {
this.eventModel = eventModel;
}
/**
* @return eventStatus
*/
public int getEventStatus() {
return eventStatus;
}
/**
* @param eventStatus
* 要设置的 eventStatus
*/
public void setEventStatus(int eventStatus) {
this.eventStatus = eventStatus;
}
/**
* @return eventFrontCoverUrl
*/
public String getEventFrontCoverUrl() {
return eventFrontCoverUrl;
}
/**
* @param eventFrontCoverUrl
* 要设置的 eventFrontCoverUrl
*/
public void setEventFrontCoverUrl(String eventFrontCoverUrl) {
this.eventFrontCoverUrl = eventFrontCoverUrl;
}
public int describeContents() {
return 0;
}
public void writeToParcel(Parcel dest, int flags) {
// ipartyId
dest.writeInt(ipartyId);
// 发布人Id
dest.writeInt(userId);
// 发布编号
dest.writeString(publishedNumber);
// 发布时间
dest.writeString(publishedTime);
// 发布地点
dest.writeString(publishedLocation);
// 活动标题
dest.writeString(eventTitle);
// 活动时间集合(包含至少一个时间)
dest.writeParcelableArray(eventTime, flags);
// 当前活动进度
dest.writeFloat(eventProgressRate);
// 活动地点
dest.writeString(eventAddress);
// 活动发布的类型:0 众筹;1 预定
dest.writeInt(eventModel);
// 活动当前状态:0 正在举办;1 成功举办;2 举办失败);3 预热中
dest.writeInt(eventStatus);
// 封面的图片下标
dest.writeString(eventFrontCoverUrl);
}
public static final Parcelable.Creator<CommonIpartyInfo> CREATOR = new Parcelable.Creator<CommonIpartyInfo>() {
public CommonIpartyInfo createFromParcel(Parcel in) {
return new CommonIpartyInfo(in);
}
public CommonIpartyInfo[] newArray(int size) {
return new CommonIpartyInfo[size];
}
};
public CommonIpartyInfo(Parcel in) {
ipartyId = in.readInt();
userId = in.readInt();
publishedNumber = in.readString();
publishedTime = in.readString();
publishedLocation = in.readString();
eventTitle = in.readString();
Parcelable[] parcel = in.readParcelableArray(TimeInfo.class
.getClassLoader());
if (parcel != null) {
eventTime = new TimeInfo[parcel.length];
for (int i = 0; i < parcel.length; i++) {
eventTime[i] = (TimeInfo) parcel[i];
}
}
eventProgressRate = in.readFloat();
eventAddress = in.readString();
eventModel = in.readInt();
eventStatus = in.readInt();
eventFrontCoverUrl = in.readString();
}
public CommonIpartyInfo() {
}
}