Subversion Repositories SmartDukaan

Rev

Rev 25628 | Rev 26420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25628 Rev 26311
Line 41... Line 41...
41
	@JsonProperty("Serial Number")
41
	@JsonProperty("Serial Number")
42
	private String serialNumber;
42
	private String serialNumber;
43
	
43
	
44
	@JsonProperty("Vendor Name")
44
	@JsonProperty("Vendor Name")
45
	private String vendorName;
45
	private String vendorName;
-
 
46
	
-
 
47
	@JsonProperty("Activation Timestamp")
-
 
48
	private LocalDateTime activationTimestamp;
-
 
49
	@JsonProperty("Activation Added On")
-
 
50
	private LocalDateTime activationAddedOn;
46
 
51
 
47
	public String getVendorName() {
52
	public String getVendorName() {
48
		return vendorName;
53
		return vendorName;
49
	}
54
	}
50
 
55
 
Line 125... Line 130...
125
	}
130
	}
126
 
131
 
127
	public void setLastScanned(LocalDateTime lastScanned) {
132
	public void setLastScanned(LocalDateTime lastScanned) {
128
		this.lastScanned = lastScanned;
133
		this.lastScanned = lastScanned;
129
	}
134
	}
-
 
135
	
-
 
136
	 	
-
 
137
 
-
 
138
	@Override
-
 
139
	public int hashCode() {
-
 
140
		final int prime = 31;
-
 
141
		int result = 1;
-
 
142
		result = prime * result + ((activationAddedOn == null) ? 0 : activationAddedOn.hashCode());
-
 
143
		result = prime * result + ((activationTimestamp == null) ? 0 : activationTimestamp.hashCode());
-
 
144
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
-
 
145
		result = prime * result + ((color == null) ? 0 : color.hashCode());
-
 
146
		result = prime * result + itemId;
-
 
147
		result = prime * result + ((lastScanned == null) ? 0 : lastScanned.hashCode());
-
 
148
		result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
-
 
149
		result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());
-
 
150
		result = prime * result + ((partnerCode == null) ? 0 : partnerCode.hashCode());
-
 
151
		result = prime * result + retailerId;
-
 
152
		result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
-
 
153
		result = prime * result + ((storeName == null) ? 0 : storeName.hashCode());
-
 
154
		result = prime * result + ((vendorName == null) ? 0 : vendorName.hashCode());
-
 
155
		return result;
-
 
156
	}
-
 
157
 
-
 
158
	@Override
-
 
159
	public boolean equals(Object obj) {
-
 
160
		if (this == obj)
-
 
161
			return true;
-
 
162
		if (obj == null)
-
 
163
			return false;
-
 
164
		if (getClass() != obj.getClass())
-
 
165
			return false;
-
 
166
		PartnerImeiNotSold other = (PartnerImeiNotSold) obj;
-
 
167
		if (activationAddedOn == null) {
-
 
168
			if (other.activationAddedOn != null)
-
 
169
				return false;
-
 
170
		} else if (!activationAddedOn.equals(other.activationAddedOn))
-
 
171
			return false;
-
 
172
		if (activationTimestamp == null) {
-
 
173
			if (other.activationTimestamp != null)
-
 
174
				return false;
-
 
175
		} else if (!activationTimestamp.equals(other.activationTimestamp))
-
 
176
			return false;
-
 
177
		if (brand == null) {
-
 
178
			if (other.brand != null)
-
 
179
				return false;
-
 
180
		} else if (!brand.equals(other.brand))
-
 
181
			return false;
-
 
182
		if (color == null) {
-
 
183
			if (other.color != null)
-
 
184
				return false;
-
 
185
		} else if (!color.equals(other.color))
-
 
186
			return false;
-
 
187
		if (itemId != other.itemId)
-
 
188
			return false;
-
 
189
		if (lastScanned == null) {
-
 
190
			if (other.lastScanned != null)
-
 
191
				return false;
-
 
192
		} else if (!lastScanned.equals(other.lastScanned))
-
 
193
			return false;
-
 
194
		if (modelName == null) {
-
 
195
			if (other.modelName != null)
-
 
196
				return false;
-
 
197
		} else if (!modelName.equals(other.modelName))
-
 
198
			return false;
-
 
199
		if (modelNumber == null) {
-
 
200
			if (other.modelNumber != null)
-
 
201
				return false;
-
 
202
		} else if (!modelNumber.equals(other.modelNumber))
-
 
203
			return false;
-
 
204
		if (partnerCode == null) {
-
 
205
			if (other.partnerCode != null)
-
 
206
				return false;
-
 
207
		} else if (!partnerCode.equals(other.partnerCode))
-
 
208
			return false;
-
 
209
		if (retailerId != other.retailerId)
-
 
210
			return false;
-
 
211
		if (serialNumber == null) {
-
 
212
			if (other.serialNumber != null)
-
 
213
				return false;
-
 
214
		} else if (!serialNumber.equals(other.serialNumber))
-
 
215
			return false;
-
 
216
		if (storeName == null) {
-
 
217
			if (other.storeName != null)
-
 
218
				return false;
-
 
219
		} else if (!storeName.equals(other.storeName))
-
 
220
			return false;
-
 
221
		if (vendorName == null) {
-
 
222
			if (other.vendorName != null)
-
 
223
				return false;
-
 
224
		} else if (!vendorName.equals(other.vendorName))
-
 
225
			return false;
-
 
226
		return true;
-
 
227
	}
-
 
228
 
-
 
229
	public LocalDateTime getActivationTimestamp() {
-
 
230
		return activationTimestamp;
-
 
231
	}
-
 
232
 
-
 
233
	public void setActivationTimestamp(LocalDateTime activationTimestamp) {
-
 
234
		this.activationTimestamp = activationTimestamp;
-
 
235
	}
-
 
236
 
-
 
237
	public LocalDateTime getActivationAddedOn() {
-
 
238
		return activationAddedOn;
-
 
239
	}
-
 
240
 
-
 
241
	public void setActivationAddedOn(LocalDateTime activationAddedOn) {
-
 
242
		this.activationAddedOn = activationAddedOn;
-
 
243
	}
130
 
244
 
131
	@Override
245
	@Override
132
	public String toString() {
246
	public String toString() {
133
		return "PartnerImeiNotSold [retailerId=" + retailerId + ", partnerCode=" + partnerCode + ", storeName="
247
		return "PartnerImeiNotSold [retailerId=" + retailerId + ", partnerCode=" + partnerCode + ", storeName="
134
				+ storeName + ", itemId=" + itemId + ", brand=" + brand + ", modelName=" + modelName + ", modelNumber="
248
				+ storeName + ", itemId=" + itemId + ", brand=" + brand + ", modelName=" + modelName + ", modelNumber="
135
				+ modelNumber + ", color=" + color + ", serialNumber=" + serialNumber + ", vendorName=" + vendorName
249
				+ modelNumber + ", color=" + color + ", serialNumber=" + serialNumber + ", vendorName=" + vendorName
-
 
250
				+ ", activationTimestamp=" + activationTimestamp + ", activationAddedOn=" + activationAddedOn
136
				+ ", lastScanned=" + lastScanned + "]";
251
				+ ", lastScanned=" + lastScanned + "]";
137
	}
252
	}
138
 
253
 
139
}
254
}
140
255