View as "text/plain" | Blame | Last modification | View Log | RSS feed
package com.smartdukaan.cron.scheduled.leadsync;import com.fasterxml.jackson.annotation.JsonIgnoreProperties;import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;@JsonIgnoreProperties(ignoreUnknown=true)public class Item {@JacksonXmlProperty(localName="code")private String code;@JacksonXmlProperty(localName="name")private String name;@JacksonXmlProperty(localName="email")private String email;@JacksonXmlProperty(localName="business")private String business;@JacksonXmlProperty(localName="status")private String status;@JacksonXmlProperty(localName="number")private String number;@JacksonXmlProperty(localName="retailer")private String isRetailer;@JacksonXmlProperty(localName="created")private String created;@JacksonXmlProperty(localName="location")private String location;@JacksonXmlProperty(localName="state")private String state;@JacksonXmlProperty(localName="updated")private String updated;public String getLocation() {return location;}public void setLocation(String location) {this.location = location;}public String getState() {return state;}public void setState(String state) {this.state = state;}@Overridepublic String toString() {return "Item [code=" + code + ", name=" + name + ", email=" + email + ", business=" + business + ", status="+ status + ", number=" + number + ", isRetailer=" + isRetailer + ", created=" + created + ", location="+ location + ", state=" + state + ", updated=" + updated + "]";}public String getCode() {return code;}public void setCode(String code) {this.code = code;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getEmail() {return email;}public void setEmail(String email) {this.email = email;}public String getBusiness() {return business;}public void setBusiness(String business) {this.business = business;}public String getStatus() {return status;}public void setStatus(String status) {this.status = status;}public String getNumber() {return number;}public void setNumber(String number) {this.number = number;}public String getIsRetailer() {return isRetailer;}public void setIsRetailer(String isRetailer) {this.isRetailer = isRetailer;}public String getCreated() {return created;}public void setCreated(String created) {this.created = created;}public String getUpdated() {return updated;}public void setUpdated(String updated) {this.updated = updated;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((business == null) ? 0 : business.hashCode());result = prime * result + ((code == null) ? 0 : code.hashCode());result = prime * result + ((created == null) ? 0 : created.hashCode());result = prime * result + ((email == null) ? 0 : email.hashCode());result = prime * result + ((isRetailer == null) ? 0 : isRetailer.hashCode());result = prime * result + ((location == null) ? 0 : location.hashCode());result = prime * result + ((name == null) ? 0 : name.hashCode());result = prime * result + ((number == null) ? 0 : number.hashCode());result = prime * result + ((state == null) ? 0 : state.hashCode());result = prime * result + ((status == null) ? 0 : status.hashCode());result = prime * result + ((updated == null) ? 0 : updated.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;Item other = (Item) obj;if (business == null) {if (other.business != null)return false;} else if (!business.equals(other.business))return false;if (code == null) {if (other.code != null)return false;} else if (!code.equals(other.code))return false;if (created == null) {if (other.created != null)return false;} else if (!created.equals(other.created))return false;if (email == null) {if (other.email != null)return false;} else if (!email.equals(other.email))return false;if (isRetailer == null) {if (other.isRetailer != null)return false;} else if (!isRetailer.equals(other.isRetailer))return false;if (location == null) {if (other.location != null)return false;} else if (!location.equals(other.location))return false;if (name == null) {if (other.name != null)return false;} else if (!name.equals(other.name))return false;if (number == null) {if (other.number != null)return false;} else if (!number.equals(other.number))return false;if (state == null) {if (other.state != null)return false;} else if (!state.equals(other.state))return false;if (status == null) {if (other.status != null)return false;} else if (!status.equals(other.status))return false;if (updated == null) {if (other.updated != null)return false;} else if (!updated.equals(other.updated))return false;return true;}}