Subversion Repositories SmartDukaan

Rev

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