CookbookDetailEntity.java
6.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
package com.naji.xiaotao.cookbook.bean;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class CookbookDetailEntity implements Serializable, Parcelable {
private String id;
private String cid;
private String lid;
private String unit;
private String name;
private String price;
private String member_price;
private String first_name;
private String search_code;
private String give;
private String status;
private String order_o;
private String image;
private String clear_num;//0卖光了
private String cdate;
private int isSpec;//1 为有规格的菜品 为无规格菜品
private List<CookbookSize> spec;//菜品规格列表
private List<CookbookPractice> practice;//菜品做法列表
private List<String> labelList;//标签列表
private int num;//已点数量
private String titleName;
private boolean isTitle;//title标志位
private String tag;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCid() {
return cid;
}
public void setCid(String cid) {
this.cid = cid;
}
public String getLid() {
return lid;
}
public void setLid(String lid) {
this.lid = lid;
}
public String getUnit() {
return unit;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getMember_price() {
return member_price;
}
public void setMember_price(String member_price) {
this.member_price = member_price;
}
public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public String getSearch_code() {
return search_code;
}
public void setSearch_code(String search_code) {
this.search_code = search_code;
}
public String getGive() {
return give;
}
public void setGive(String give) {
this.give = give;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getOrder_o() {
return order_o;
}
public void setOrder_o(String order_o) {
this.order_o = order_o;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getClear_num() {
return clear_num;
}
public void setClear_num(String clear_num) {
this.clear_num = clear_num;
}
public String getCdate() {
return cdate;
}
public void setCdate(String cdate) {
this.cdate = cdate;
}
public int getIsSpec() {
return isSpec;
}
public void setIsSpec(int isSpec) {
this.isSpec = isSpec;
}
public List<CookbookSize> getSpec() {
return spec;
}
public void setSpec(List<CookbookSize> spec) {
this.spec = spec;
}
public List<CookbookPractice> getPractice() {
return practice;
}
public void setPractice(List<CookbookPractice> practice) {
this.practice = practice;
}
public List<String> getLabelList() {
return labelList;
}
public void setLabelList(List<String> labelList) {
this.labelList = labelList;
}
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public String getTitleName() {
return titleName;
}
public void setTitleName(String titleName) {
this.titleName = titleName;
}
public boolean isTitle() {
return isTitle;
}
public void setTitle(boolean title) {
isTitle = title;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.id);
dest.writeString(this.cid);
dest.writeString(this.lid);
dest.writeString(this.unit);
dest.writeString(this.name);
dest.writeString(this.price);
dest.writeString(this.member_price);
dest.writeString(this.first_name);
dest.writeString(this.search_code);
dest.writeString(this.give);
dest.writeString(this.status);
dest.writeString(this.order_o);
dest.writeString(this.image);
dest.writeString(this.clear_num);
dest.writeString(this.cdate);
dest.writeInt(this.isSpec);
dest.writeList(this.spec);
dest.writeList(this.practice);
dest.writeStringList(this.labelList);
dest.writeInt(this.num);
dest.writeString(this.titleName);
dest.writeByte(this.isTitle ? (byte) 1 : (byte) 0);
dest.writeString(this.tag);
}
public CookbookDetailEntity() {
}
protected CookbookDetailEntity(Parcel in) {
this.id = in.readString();
this.cid = in.readString();
this.lid = in.readString();
this.unit = in.readString();
this.name = in.readString();
this.price = in.readString();
this.member_price = in.readString();
this.first_name = in.readString();
this.search_code = in.readString();
this.give = in.readString();
this.status = in.readString();
this.order_o = in.readString();
this.image = in.readString();
this.clear_num = in.readString();
this.cdate = in.readString();
this.isSpec = in.readInt();
this.spec = new ArrayList<CookbookSize>();
in.readList(this.spec, CookbookSize.class.getClassLoader());
this.practice = new ArrayList<CookbookPractice>();
in.readList(this.practice, CookbookPractice.class.getClassLoader());
this.labelList = in.createStringArrayList();
this.num = in.readInt();
this.titleName = in.readString();
this.isTitle = in.readByte() != 0;
this.tag = in.readString();
}
public static final Creator<CookbookDetailEntity> CREATOR = new Creator<CookbookDetailEntity>() {
@Override
public CookbookDetailEntity createFromParcel(Parcel source) {
return new CookbookDetailEntity(source);
}
@Override
public CookbookDetailEntity[] newArray(int size) {
return new CookbookDetailEntity[size];
}
};
}