Subversion Repositories SmartDukaan

Rev

Rev 9280 | Rev 9312 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9218 amit.gupta 1
package in.shop2020.metamodel.util;
2
 
3
import java.util.List;
4
 
5
public class ContentPojo {
6
 
7
	public ContentPojo(String title, List<String> keySpecs,
8
			List<SpecificationGroup> detailedSpecs, String warranty) {
9
		super();
10
		this.title = title;
11
		this.keySpecs = keySpecs;
12
		this.detailedSpecs = detailedSpecs;
13
		this.warranty = warranty;
14
	}
15
 
16
	public ContentPojo(Long id) {
17
		this.id = id;
18
	}
19
	//Content
20
	private long id;
21
	private String title;
9280 amit.gupta 22
	private String url;
9218 amit.gupta 23
	private List<String> keySpecs;
24
	private List<SpecificationGroup> detailedSpecs;
9280 amit.gupta 25
	private List<ExpertReviewPojo> expertReviews;
9218 amit.gupta 26
	private String warranty;
9280 amit.gupta 27
	private Double minEmi;
9297 amit.gupta 28
 
29
	//To be set at runtime
30
	private List<ProductPojo> reocmmendedAccessories;
9218 amit.gupta 31
	public String getDefaultImageUrl() {
32
		return defaultImageUrl;
33
	}
34
 
35
	public void setDefaultImageUrl(String defaultImageUrl) {
36
		this.defaultImageUrl = defaultImageUrl;
37
	}
38
 
39
	public String getIconImageUrl() {
40
		return iconImageUrl;
41
	}
42
 
43
	public void setIconImageUrl(String iconImageUrl) {
44
		this.iconImageUrl = iconImageUrl;
45
	}
46
 
47
	private String defaultImageUrl;
48
	private String iconImageUrl;
49
	private String thumbnailImageUrl;
9280 amit.gupta 50
	private List<MediaPojo> images;
51
	private List<MediaPojo> videos;
9218 amit.gupta 52
	private List<String> packageContents;
53
 
54
	//Catalog
55
	private double price;
56
	private double mrp;
57
	private String offerText;
58
	//private EmiPojo bankEmis;
59
	private List<ItemPojo> items;
60
 
61
	public String getTitle() {
62
		return title;
63
	}
64
	public void setTitle(String title) {
65
		this.title = title;
66
	}
67
	public List<String> getKeySpecs() {
68
		return keySpecs;
69
	}
70
	public void setKeySpecs(List<String> keySpecs) {
71
		this.keySpecs = keySpecs;
72
	}
73
	public List<SpecificationGroup> getDetailedSpecs() {
74
		return detailedSpecs;
75
	}
76
	public void setDetailedSpecs(List<SpecificationGroup> detailedSpecs) {
77
		this.detailedSpecs = detailedSpecs;
78
	}
79
	public String getWarranty() {
80
		return warranty;
81
	}
82
	public void setWarranty(String warranty) {
83
		this.warranty = warranty;
84
	}
9280 amit.gupta 85
	public List<MediaPojo> getImages() {
9218 amit.gupta 86
		return images;
87
	}
9280 amit.gupta 88
	public void setImages(List<MediaPojo> images) {
9218 amit.gupta 89
		this.images = images;
90
	}
91
	public void setId(long id) {
92
		this.id = id;
93
	}
94
	public long getId() {
95
		return id;
96
	}
97
 
98
	public double getMrp() {
99
		return mrp;
100
	}
101
	public void setMrp(double mrp) {
102
		this.mrp = mrp;
103
	}
104
	public String getOfferText() {
105
		return offerText;
106
	}
107
	public void setOfferText(String offerText) {
108
		this.offerText = offerText;
109
	}
110
	public List<ItemPojo> getItems() {
111
		return items;
112
	}
113
	public void setItems(List<ItemPojo> items) {
114
		this.items = items;
115
	}
116
	public void setPackageContents(List<String> packageContents) {
117
		this.packageContents = packageContents;
118
	}
119
	public List<String> getPackageContents() {
120
		return packageContents;
121
	}
122
 
123
	public void setCatalogInfo(double sellingPrice, double mrp, String offerText, List<ItemPojo> items) {
124
		this.setPrice(sellingPrice);
125
		this.mrp = mrp;
126
		this.offerText = offerText;
127
		this.items = items;
128
	}
129
 
130
	public void setPrice(double price) {
131
		this.price = price;
132
	}
133
 
134
	public double getPrice() {
135
		return price;
136
	}
137
 
138
	public String getThumbnailImageUrl() {
139
		return thumbnailImageUrl;
140
	}
141
 
142
	public void setThumbnailImageUrl(String thumbnailImageUrl) {
143
		this.thumbnailImageUrl = thumbnailImageUrl;
144
	}
9280 amit.gupta 145
 
146
	public void setVideos(List<MediaPojo> videos) {
147
		this.videos = videos;
148
	}
149
 
150
	public List<MediaPojo> getVideos() {
151
		return videos;
152
	}
153
 
154
	public void setExpertReviews(List<ExpertReviewPojo> expertReviews) {
155
		this.expertReviews = expertReviews;
156
	}
157
 
158
	public List<ExpertReviewPojo> getExpertReviews() {
159
		return expertReviews;
160
	}
161
 
162
	public void setMinEmi(Double minEmi) {
163
		this.minEmi = minEmi;
164
	}
165
 
166
	public Double getMinEmi() {
167
		return minEmi;
168
	}
169
 
170
	public void setUrl(String url) {
171
		this.url = url;
172
	}
173
 
174
	public String getUrl() {
175
		return url;
176
	}
9297 amit.gupta 177
 
178
	public void setReocmmendedAccessories(List<ProductPojo> reocmmendedAccessories) {
179
		this.reocmmendedAccessories = reocmmendedAccessories;
180
	}
181
 
182
	public List<ProductPojo> getReocmmendedAccessories() {
183
		return reocmmendedAccessories;
184
	}
9218 amit.gupta 185
}