Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27007 amit.gupta 1
package com.smartdukaan.cron.scheduled.leadsync;
2
 
3
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
5
 
6
@JsonIgnoreProperties(ignoreUnknown=true)
7
public class Item {
8
	@JacksonXmlProperty(localName="code")
9
	private String code;
10
	@JacksonXmlProperty(localName="name")
11
	private String name;
12
	@JacksonXmlProperty(localName="email")
13
	private String email;
14
	@JacksonXmlProperty(localName="business")
15
	private String business;
16
	@JacksonXmlProperty(localName="status")
17
	private String status;
18
	@JacksonXmlProperty(localName="number")
19
	private String number;
20
	@JacksonXmlProperty(localName="retailer")
21
	private String isRetailer;
22
	@JacksonXmlProperty(localName="created")
23
	private String created;
24
	@JacksonXmlProperty(localName="location")
25
	private String location;
26
	@JacksonXmlProperty(localName="state")
27
	private String state;
28
	@JacksonXmlProperty(localName="updated")
29
	private String updated;
30
 
31
 
32
	public String getLocation() {
33
		return location;
34
	}
35
	public void setLocation(String location) {
36
		this.location = location;
37
	}
38
	public String getState() {
39
		return state;
40
	}
41
	public void setState(String state) {
42
		this.state = state;
43
	}
44
	@Override
45
	public String toString() {
46
		return "Item [code=" + code + ", name=" + name + ", email=" + email + ", business=" + business + ", status="
47
				+ status + ", number=" + number + ", isRetailer=" + isRetailer + ", created=" + created + ", location="
48
				+ location + ", state=" + state + ", updated=" + updated + "]";
49
	}
50
	public String getCode() {
51
		return code;
52
	}
53
	public void setCode(String code) {
54
		this.code = code;
55
	}
56
	public String getName() {
57
		return name;
58
	}
59
	public void setName(String name) {
60
		this.name = name;
61
	}
62
	public String getEmail() {
63
		return email;
64
	}
65
	public void setEmail(String email) {
66
		this.email = email;
67
	}
68
	public String getBusiness() {
69
		return business;
70
	}
71
	public void setBusiness(String business) {
72
		this.business = business;
73
	}
74
	public String getStatus() {
75
		return status;
76
	}
77
	public void setStatus(String status) {
78
		this.status = status;
79
	}
80
	public String getNumber() {
81
		return number;
82
	}
83
	public void setNumber(String number) {
84
		this.number = number;
85
	}
86
	public String getIsRetailer() {
87
		return isRetailer;
88
	}
89
	public void setIsRetailer(String isRetailer) {
90
		this.isRetailer = isRetailer;
91
	}
92
	public String getCreated() {
93
		return created;
94
	}
95
	public void setCreated(String created) {
96
		this.created = created;
97
	}
98
	public String getUpdated() {
99
		return updated;
100
	}
101
	public void setUpdated(String updated) {
102
		this.updated = updated;
103
	}
104
	@Override
105
	public int hashCode() {
106
		final int prime = 31;
107
		int result = 1;
108
		result = prime * result + ((business == null) ? 0 : business.hashCode());
109
		result = prime * result + ((code == null) ? 0 : code.hashCode());
110
		result = prime * result + ((created == null) ? 0 : created.hashCode());
111
		result = prime * result + ((email == null) ? 0 : email.hashCode());
112
		result = prime * result + ((isRetailer == null) ? 0 : isRetailer.hashCode());
113
		result = prime * result + ((location == null) ? 0 : location.hashCode());
114
		result = prime * result + ((name == null) ? 0 : name.hashCode());
115
		result = prime * result + ((number == null) ? 0 : number.hashCode());
116
		result = prime * result + ((state == null) ? 0 : state.hashCode());
117
		result = prime * result + ((status == null) ? 0 : status.hashCode());
118
		result = prime * result + ((updated == null) ? 0 : updated.hashCode());
119
		return result;
120
	}
121
	@Override
122
	public boolean equals(Object obj) {
123
		if (this == obj)
124
			return true;
125
		if (obj == null)
126
			return false;
127
		if (getClass() != obj.getClass())
128
			return false;
129
		Item other = (Item) obj;
130
		if (business == null) {
131
			if (other.business != null)
132
				return false;
133
		} else if (!business.equals(other.business))
134
			return false;
135
		if (code == null) {
136
			if (other.code != null)
137
				return false;
138
		} else if (!code.equals(other.code))
139
			return false;
140
		if (created == null) {
141
			if (other.created != null)
142
				return false;
143
		} else if (!created.equals(other.created))
144
			return false;
145
		if (email == null) {
146
			if (other.email != null)
147
				return false;
148
		} else if (!email.equals(other.email))
149
			return false;
150
		if (isRetailer == null) {
151
			if (other.isRetailer != null)
152
				return false;
153
		} else if (!isRetailer.equals(other.isRetailer))
154
			return false;
155
		if (location == null) {
156
			if (other.location != null)
157
				return false;
158
		} else if (!location.equals(other.location))
159
			return false;
160
		if (name == null) {
161
			if (other.name != null)
162
				return false;
163
		} else if (!name.equals(other.name))
164
			return false;
165
		if (number == null) {
166
			if (other.number != null)
167
				return false;
168
		} else if (!number.equals(other.number))
169
			return false;
170
		if (state == null) {
171
			if (other.state != null)
172
				return false;
173
		} else if (!state.equals(other.state))
174
			return false;
175
		if (status == null) {
176
			if (other.status != null)
177
				return false;
178
		} else if (!status.equals(other.status))
179
			return false;
180
		if (updated == null) {
181
			if (other.updated != null)
182
				return false;
183
		} else if (!updated.equals(other.updated))
184
			return false;
185
		return true;
186
	}
187
 
188
 
189
}