Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23945 amit.gupta 1
package com.spice.profitmandi.common.model;
2
 
3
import java.time.LocalDateTime;
4
 
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
 
23951 amit.gupta 7
public class GrnPendingDataModel implements ImeiDropSummaryModel {
23945 amit.gupta 8
	@JsonProperty("Code")
23951 amit.gupta 9
	private String partnerCode;
10
 
11
	public String getPartnerCode() {
12
		return partnerCode;
13
	}
14
 
15
	public void setPartnerCode(String partnerCode) {
16
		this.partnerCode = partnerCode;
17
	}
18
 
19
	@Override
20
	public String toString() {
23968 amit.gupta 21
		return "GrnPendingDataModel [partnerCode=" + partnerCode + ", storeName=" + storeName + ", retailerId="
22
				+ retailerId + ", email=" + email + ", phone=" + phone + ", invoiceNumber=" + invoiceNumber
26311 amit.gupta 23
				+ ", lastScanned=" + lastScanned + ", activationTimestamp=" + activationTimestamp
24
				+ ", activationAddedOn=" + activationAddedOn + ", vendorName=" + vendorName + ", itemId=" + itemId
25
				+ ", brand=" + brand + ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color
25628 amit.gupta 26
				+ ", unitPrice=" + unitPrice + ", serialNumber=" + serialNumber + "]";
23951 amit.gupta 27
	}
28
 
23945 amit.gupta 29
	@JsonProperty("Name")
30
	private String storeName;
23968 amit.gupta 31
	@JsonProperty("Partner Id")
32
	private int retailerId;
33
	public int getRetailerId() {
34
		return retailerId;
35
	}
36
 
37
	public void setRetailerId(int retailerId) {
38
		this.retailerId = retailerId;
39
	}
40
 
23945 amit.gupta 41
	@JsonProperty("Email")
42
	private String email;
43
	@JsonProperty("Phone")
44
	private String phone;
45
	@JsonProperty("Invoice Number")
46
	private String invoiceNumber;
47
	@JsonProperty("Billing Timestamp")
23951 amit.gupta 48
	private LocalDateTime lastScanned;
26311 amit.gupta 49
 
50
	@JsonProperty("Activation Timestamp")
51
	private LocalDateTime activationTimestamp;
52
	@JsonProperty("Activation Added On")
53
	private LocalDateTime activationAddedOn;
25628 amit.gupta 54
 
55
	@JsonProperty("Vendor Name")
56
	private String vendorName;
57
 
58
	public String getVendorName() {
59
		return vendorName;
60
	}
61
 
62
	public void setVendorName(String vendorName) {
63
		this.vendorName = vendorName;
64
	}
65
 
23945 amit.gupta 66
	@JsonProperty("Item Id")
23951 amit.gupta 67
	private int itemId;
23945 amit.gupta 68
	@JsonProperty("Brand")
69
	private String brand;
70
	@JsonProperty("Model Name")
71
	private String modelName;
72
	@JsonProperty("Model Number")
73
	private String modelNumber;
74
	@JsonProperty("Color")
75
	private String color;
76
	@JsonProperty("Unit Price")
77
	private float unitPrice;
78
	@JsonProperty("Serial Number")
79
	private String serialNumber;
80
 
23951 amit.gupta 81
	@Override
82
	public LocalDateTime getLastScanned() {
83
		return lastScanned;
23945 amit.gupta 84
	}
23951 amit.gupta 85
 
86
	public void setLastScanned(LocalDateTime lastScanned) {
87
		this.lastScanned = lastScanned;
23945 amit.gupta 88
	}
23951 amit.gupta 89
 
23945 amit.gupta 90
	public float getUnitPrice() {
91
		return unitPrice;
92
	}
23951 amit.gupta 93
 
23945 amit.gupta 94
	public void setUnitPrice(float unitPrice) {
95
		this.unitPrice = unitPrice;
96
	}
23951 amit.gupta 97
 
98
	@Override
23945 amit.gupta 99
	public String getStoreName() {
100
		return storeName;
101
	}
23951 amit.gupta 102
 
23945 amit.gupta 103
	public void setStoreName(String storeName) {
104
		this.storeName = storeName;
105
	}
23951 amit.gupta 106
 
23945 amit.gupta 107
	public String getEmail() {
108
		return email;
109
	}
23951 amit.gupta 110
 
23945 amit.gupta 111
	public void setEmail(String email) {
112
		this.email = email;
113
	}
23951 amit.gupta 114
 
23945 amit.gupta 115
	public String getPhone() {
116
		return phone;
117
	}
23951 amit.gupta 118
 
23945 amit.gupta 119
	public void setPhone(String phone) {
120
		this.phone = phone;
121
	}
23951 amit.gupta 122
 
23945 amit.gupta 123
	public String getInvoiceNumber() {
124
		return invoiceNumber;
125
	}
23951 amit.gupta 126
 
23945 amit.gupta 127
	public void setInvoiceNumber(String invoiceNumber) {
128
		this.invoiceNumber = invoiceNumber;
129
	}
23951 amit.gupta 130
 
131
	public void setItemId(int itemId) {
23945 amit.gupta 132
		this.itemId = itemId;
133
	}
23951 amit.gupta 134
 
23945 amit.gupta 135
	public String getBrand() {
136
		return brand;
137
	}
23951 amit.gupta 138
 
23945 amit.gupta 139
	public void setBrand(String brand) {
140
		this.brand = brand;
141
	}
23951 amit.gupta 142
 
23945 amit.gupta 143
	public String getModelName() {
144
		return modelName;
145
	}
23951 amit.gupta 146
 
23945 amit.gupta 147
	public void setModelName(String modelName) {
148
		this.modelName = modelName;
149
	}
23951 amit.gupta 150
 
23945 amit.gupta 151
	public String getModelNumber() {
152
		return modelNumber;
153
	}
23951 amit.gupta 154
 
23945 amit.gupta 155
	public void setModelNumber(String modelNumber) {
156
		this.modelNumber = modelNumber;
157
	}
23951 amit.gupta 158
 
23945 amit.gupta 159
	public String getColor() {
160
		return color;
161
	}
23951 amit.gupta 162
 
23945 amit.gupta 163
	public void setColor(String color) {
164
		this.color = color;
165
	}
23951 amit.gupta 166
 
23945 amit.gupta 167
	public String getSerialNumber() {
168
		return serialNumber;
169
	}
23951 amit.gupta 170
 
23945 amit.gupta 171
	public void setSerialNumber(String serialNumber) {
172
		this.serialNumber = serialNumber;
173
	}
23951 amit.gupta 174
 
175
	@Override
176
	public int getItemId() {
177
		return itemId;
178
	}
26311 amit.gupta 179
 
180
	public LocalDateTime getActivationTimestamp() {
181
		return activationTimestamp;
182
	}
183
 
184
	public void setActivationTimestamp(LocalDateTime activationTimestamp) {
185
		this.activationTimestamp = activationTimestamp;
186
	}
187
 
188
	public LocalDateTime getActivationAddedOn() {
189
		return activationAddedOn;
190
	}
191
 
192
	public void setActivationAddedOn(LocalDateTime activationAddedOn) {
193
		this.activationAddedOn = activationAddedOn;
194
	}
195
 
196
	@Override
197
	public int hashCode() {
198
		final int prime = 31;
199
		int result = 1;
200
		result = prime * result + ((activationAddedOn == null) ? 0 : activationAddedOn.hashCode());
201
		result = prime * result + ((activationTimestamp == null) ? 0 : activationTimestamp.hashCode());
202
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
203
		result = prime * result + ((color == null) ? 0 : color.hashCode());
204
		result = prime * result + ((email == null) ? 0 : email.hashCode());
205
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
206
		result = prime * result + itemId;
207
		result = prime * result + ((lastScanned == null) ? 0 : lastScanned.hashCode());
208
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
209
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
210
		result = prime * result + ((partnerCode == null) ? 0 : partnerCode.hashCode());
211
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
212
		result = prime * result + retailerId;
213
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
214
		result = prime * result + ((storeName == null) ? 0 : storeName.hashCode());
215
		result = prime * result + Float.floatToIntBits(unitPrice);
216
		result = prime * result + ((vendorName == null) ? 0 : vendorName.hashCode());
217
		return result;
218
	}
219
 
220
	@Override
221
	public boolean equals(Object obj) {
222
		if (this == obj)
223
			return true;
224
		if (obj == null)
225
			return false;
226
		if (getClass() != obj.getClass())
227
			return false;
228
		GrnPendingDataModel other = (GrnPendingDataModel) obj;
229
		if (activationAddedOn == null) {
230
			if (other.activationAddedOn != null)
231
				return false;
232
		} else if (!activationAddedOn.equals(other.activationAddedOn))
233
			return false;
234
		if (activationTimestamp == null) {
235
			if (other.activationTimestamp != null)
236
				return false;
237
		} else if (!activationTimestamp.equals(other.activationTimestamp))
238
			return false;
239
		if (brand == null) {
240
			if (other.brand != null)
241
				return false;
242
		} else if (!brand.equals(other.brand))
243
			return false;
244
		if (color == null) {
245
			if (other.color != null)
246
				return false;
247
		} else if (!color.equals(other.color))
248
			return false;
249
		if (email == null) {
250
			if (other.email != null)
251
				return false;
252
		} else if (!email.equals(other.email))
253
			return false;
254
		if (invoiceNumber == null) {
255
			if (other.invoiceNumber != null)
256
				return false;
257
		} else if (!invoiceNumber.equals(other.invoiceNumber))
258
			return false;
259
		if (itemId != other.itemId)
260
			return false;
261
		if (lastScanned == null) {
262
			if (other.lastScanned != null)
263
				return false;
264
		} else if (!lastScanned.equals(other.lastScanned))
265
			return false;
266
		if (modelName == null) {
267
			if (other.modelName != null)
268
				return false;
269
		} else if (!modelName.equals(other.modelName))
270
			return false;
271
		if (modelNumber == null) {
272
			if (other.modelNumber != null)
273
				return false;
274
		} else if (!modelNumber.equals(other.modelNumber))
275
			return false;
276
		if (partnerCode == null) {
277
			if (other.partnerCode != null)
278
				return false;
279
		} else if (!partnerCode.equals(other.partnerCode))
280
			return false;
281
		if (phone == null) {
282
			if (other.phone != null)
283
				return false;
284
		} else if (!phone.equals(other.phone))
285
			return false;
286
		if (retailerId != other.retailerId)
287
			return false;
288
		if (serialNumber == null) {
289
			if (other.serialNumber != null)
290
				return false;
291
		} else if (!serialNumber.equals(other.serialNumber))
292
			return false;
293
		if (storeName == null) {
294
			if (other.storeName != null)
295
				return false;
296
		} else if (!storeName.equals(other.storeName))
297
			return false;
298
		if (Float.floatToIntBits(unitPrice) != Float.floatToIntBits(other.unitPrice))
299
			return false;
300
		if (vendorName == null) {
301
			if (other.vendorName != null)
302
				return false;
303
		} else if (!vendorName.equals(other.vendorName))
304
			return false;
305
		return true;
306
	}
307
 
308
 
23945 amit.gupta 309
}