CartCookbook.java
1.55 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
package com.naji.xiaotao.cart.entity;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
public class CartCookbook implements Parcelable {
private String class_name;
private List<CartCookbookDetail> list;
private int total;
public String getClass_name() {
return class_name;
}
public void setClass_name(String class_name) {
this.class_name = class_name;
}
public List<CartCookbookDetail> getList() {
return list;
}
public void setList(List<CartCookbookDetail> list) {
this.list = list;
}
public int getTotal() {
return total;
}
public void setTotal(int total) {
this.total = total;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.class_name);
dest.writeTypedList(this.list);
dest.writeInt(this.total);
}
public CartCookbook() {
}
protected CartCookbook(Parcel in) {
this.class_name = in.readString();
this.list = in.createTypedArrayList(CartCookbookDetail.CREATOR);
this.total = in.readInt();
}
public static final Creator<CartCookbook> CREATOR = new Creator<CartCookbook>() {
@Override
public CartCookbook createFromParcel(Parcel source) {
return new CartCookbook(source);
}
@Override
public CartCookbook[] newArray(int size) {
return new CartCookbook[size];
}
};
}