Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26607 amit.gupta 1
package com.spice.profitmandi.dao.model;
21378 kshitij.so 2
 
27026 tejbeer 3
import java.time.LocalDateTime;
31773 amit.gupta 4
import java.util.Arrays;
28653 amit.gupta 5
import java.util.List;
31773 amit.gupta 6
import java.util.Objects;
27026 tejbeer 7
 
26522 amit.gupta 8
import com.spice.profitmandi.dao.cart.CartItemMessage;
25880 amit.gupta 9
import com.spice.profitmandi.service.inventory.BulkPricing;
10
 
27026 tejbeer 11
public class CartItemResponseModel {
12
	private String imageUrl;
13
	private String dealText;
14
	private int itemId;
28653 amit.gupta 15
	private int maxQuantity;
27026 tejbeer 16
	private int estimate;
17
	private int quantityStep;
18
	private int packQuantity;
19
	private int minBuyQuantity;
20
	private BulkPricing[] bulkPricing;
21
	private String categoryName;
22
	private double sellingPrice;
23
	private String title;
28653 amit.gupta 24
	private List<CartItemMessage> cartItemMessages;
27026 tejbeer 25
	private String color;
26
	private long quantity;
27
	private long catalogItemId;
28
	private LocalDateTime promiseDelivery;
31773 amit.gupta 29
					private int availability;
27026 tejbeer 30
 
31773 amit.gupta 31
 
32
	@Override
33
	public boolean equals(Object o) {
34
		if (this == o) return true;
35
		if (o == null || getClass() != o.getClass()) return false;
36
		CartItemResponseModel that = (CartItemResponseModel) o;
37
		return itemId == that.itemId && maxQuantity == that.maxQuantity && estimate == that.estimate && quantityStep == that.quantityStep && packQuantity == that.packQuantity && minBuyQuantity == that.minBuyQuantity && Double.compare(that.sellingPrice, sellingPrice) == 0 && quantity == that.quantity && catalogItemId == that.catalogItemId && availability == that.availability && Objects.equals(imageUrl, that.imageUrl) && Objects.equals(dealText, that.dealText) && Arrays.equals(bulkPricing, that.bulkPricing) && Objects.equals(categoryName, that.categoryName) && Objects.equals(title, that.title) && Objects.equals(cartItemMessages, that.cartItemMessages) && Objects.equals(color, that.color) && Objects.equals(promiseDelivery, that.promiseDelivery);
38
	}
39
 
40
	@Override
41
	public int hashCode() {
42
		int result = Objects.hash(imageUrl, dealText, itemId, maxQuantity, estimate, quantityStep, packQuantity, minBuyQuantity, categoryName, sellingPrice, title, cartItemMessages, color, quantity, catalogItemId, promiseDelivery, availability);
43
		result = 31 * result + Arrays.hashCode(bulkPricing);
44
		return result;
45
	}
46
 
47
	@Override
48
	public String toString() {
49
		return "CartItemResponseModel{" +
50
				"imageUrl='" + imageUrl + '\'' +
51
				", dealText='" + dealText + '\'' +
52
				", itemId=" + itemId +
53
				", maxQuantity=" + maxQuantity +
54
				", estimate=" + estimate +
55
				", quantityStep=" + quantityStep +
56
				", packQuantity=" + packQuantity +
57
				", minBuyQuantity=" + minBuyQuantity +
58
				", bulkPricing=" + Arrays.toString(bulkPricing) +
59
				", categoryName='" + categoryName + '\'' +
60
				", sellingPrice=" + sellingPrice +
61
				", title='" + title + '\'' +
62
				", cartItemMessages=" + cartItemMessages +
63
				", color='" + color + '\'' +
64
				", quantity=" + quantity +
65
				", catalogItemId=" + catalogItemId +
66
				", promiseDelivery=" + promiseDelivery +
67
				", shortQty=" + availability +
68
				'}';
69
	}
70
 
71
	public int getAvailability() {
72
		return availability;
73
	}
74
 
75
	public void setAvailability(int availability) {
76
		this.availability = availability;
77
	}
78
 
27026 tejbeer 79
	public LocalDateTime getPromiseDelivery() {
80
		return promiseDelivery;
81
	}
82
 
83
	public void setPromiseDelivery(LocalDateTime promiseDelivery) {
84
		this.promiseDelivery = promiseDelivery;
85
	}
86
 
21380 kshitij.so 87
	public String getImageUrl() {
88
		return imageUrl;
89
	}
27026 tejbeer 90
 
21380 kshitij.so 91
	public void setImageUrl(String imageUrl) {
92
		this.imageUrl = imageUrl;
93
	}
27026 tejbeer 94
 
21380 kshitij.so 95
	public String getDealText() {
96
		return dealText;
97
	}
27026 tejbeer 98
 
21380 kshitij.so 99
	public void setDealText(String dealText) {
100
		this.dealText = dealText;
101
	}
27026 tejbeer 102
 
21380 kshitij.so 103
	public int getItemId() {
104
		return itemId;
105
	}
27026 tejbeer 106
 
21380 kshitij.so 107
	public void setItemId(int itemId) {
108
		this.itemId = itemId;
109
	}
27026 tejbeer 110
 
28653 amit.gupta 111
	public int getMaxQuantity() {
21380 kshitij.so 112
		return maxQuantity;
113
	}
27026 tejbeer 114
 
28653 amit.gupta 115
	public void setMaxQuantity(int maxQuantity) {
21380 kshitij.so 116
		this.maxQuantity = maxQuantity;
117
	}
27026 tejbeer 118
 
21380 kshitij.so 119
	public int getEstimate() {
120
		return estimate;
121
	}
27026 tejbeer 122
 
21380 kshitij.so 123
	public void setEstimate(int estimate) {
124
		this.estimate = estimate;
125
	}
27026 tejbeer 126
 
21380 kshitij.so 127
	public int getQuantityStep() {
128
		return quantityStep;
129
	}
27026 tejbeer 130
 
21380 kshitij.so 131
	public void setQuantityStep(int quantityStep) {
132
		this.quantityStep = quantityStep;
133
	}
27026 tejbeer 134
 
21380 kshitij.so 135
	public int getPackQuantity() {
136
		return packQuantity;
137
	}
27026 tejbeer 138
 
21380 kshitij.so 139
	public void setPackQuantity(int packQuantity) {
140
		this.packQuantity = packQuantity;
141
	}
27026 tejbeer 142
 
21380 kshitij.so 143
	public int getMinBuyQuantity() {
144
		return minBuyQuantity;
145
	}
27026 tejbeer 146
 
21380 kshitij.so 147
	public void setMinBuyQuantity(int minBuyQuantity) {
148
		this.minBuyQuantity = minBuyQuantity;
149
	}
27026 tejbeer 150
 
21380 kshitij.so 151
	public BulkPricing[] getBulkPricing() {
152
		return bulkPricing;
153
	}
27026 tejbeer 154
 
21380 kshitij.so 155
	public void setBulkPricing(BulkPricing[] bulkPricing) {
156
		this.bulkPricing = bulkPricing;
157
	}
27026 tejbeer 158
 
21380 kshitij.so 159
	public String getCategoryName() {
160
		return categoryName;
161
	}
27026 tejbeer 162
 
21380 kshitij.so 163
	public void setCategoryName(String categoryName) {
164
		this.categoryName = categoryName;
165
	}
27026 tejbeer 166
 
21380 kshitij.so 167
	public double getSellingPrice() {
168
		return sellingPrice;
169
	}
27026 tejbeer 170
 
21380 kshitij.so 171
	public void setSellingPrice(double sellingPrice) {
172
		this.sellingPrice = sellingPrice;
173
	}
27026 tejbeer 174
 
21380 kshitij.so 175
	public String getTitle() {
176
		return title;
177
	}
27026 tejbeer 178
 
21380 kshitij.so 179
	public void setTitle(String title) {
180
		this.title = title;
181
	}
27026 tejbeer 182
 
28653 amit.gupta 183
	public List<CartItemMessage> getCartItemMessages() {
21380 kshitij.so 184
		return cartItemMessages;
185
	}
27026 tejbeer 186
 
28653 amit.gupta 187
	public void setCartItemMessages(List<CartItemMessage> cartItemMessages) {
21380 kshitij.so 188
		this.cartItemMessages = cartItemMessages;
189
	}
27026 tejbeer 190
 
21380 kshitij.so 191
	public String getColor() {
192
		return color;
193
	}
27026 tejbeer 194
 
21380 kshitij.so 195
	public void setColor(String color) {
196
		this.color = color;
197
	}
27026 tejbeer 198
 
21380 kshitij.so 199
	public long getQuantity() {
200
		return quantity;
201
	}
27026 tejbeer 202
 
21380 kshitij.so 203
	public void setQuantity(long quantity) {
204
		this.quantity = quantity;
205
	}
27026 tejbeer 206
 
21380 kshitij.so 207
	public long getCatalogItemId() {
208
		return catalogItemId;
209
	}
27026 tejbeer 210
 
21380 kshitij.so 211
	public void setCatalogItemId(long catalogItemId) {
212
		this.catalogItemId = catalogItemId;
213
	}
21378 kshitij.so 214
 
215
}