package com.partynetwork.iparty.info; import android.os.Parcel; import android.os.Parcelable; /** * iparty的消息实体 */ public class AssistantPartyInfo extends CommonIpartyInfo implements Parcelable { // 参加活动 public String joinTime; /** * @return ipartyId */ public int getIpartyId() { return ipartyId; } /** * @param ipartyId * 要设置的 ipartyId */ public void setIpartyId(int ipartyId) { this.ipartyId = ipartyId; } /** * @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 joinTime */ public String getJoinTime() { return joinTime; } /** * @param joinTime * 要设置的 joinTime */ public void setJoinTime(String joinTime) { this.joinTime = joinTime; } /** * @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.writeString(joinTime); // 当前活动进度 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<AssistantPartyInfo> CREATOR = new Parcelable.Creator<AssistantPartyInfo>() { public AssistantPartyInfo createFromParcel(Parcel in) { return new AssistantPartyInfo(in); } public AssistantPartyInfo[] newArray(int size) { return new AssistantPartyInfo[size]; } }; public AssistantPartyInfo(Parcel in) { ipartyId = in.readInt(); userId = in.readInt(); publishedNumber = in.readString(); publishedTime = in.readString(); publishedLocation = in.readString(); eventTitle = in.readString(); joinTime = in.readString(); eventProgressRate = in.readFloat(); eventAddress = in.readString(); eventModel = in.readInt(); eventStatus = in.readInt(); eventFrontCoverUrl = in.readString(); } public AssistantPartyInfo() { } }