Subversion Repositories SmartDukaan

Rev

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