package net.brightkite4j.brightkite.resources;
import net.brightkite4j.brightkite.exceptions.DeserializationException;
import net.brightkite4j.brightkite.utils.BrightkiteUtils;
public class Place extends BrightkiteObject {
private String name;
private String displayLocation;
private String scope;
private String shortcode;
private String street;
private String street2;
private String city;
private String state;
private String zip;
private String country;
private double latitude;
private double longitude;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDisplayLocation() {
return displayLocation;
}
public void setDisplayLocation(String displayLocation) {
this.displayLocation = displayLocation;
}
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
public String getShortcode() {
return shortcode;
}
public void setShortcode(String shortcode) {
this.shortcode = shortcode;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String getStreet2() {
return street2;
}
public void setStreet2(String street2) {
this.street2 = street2;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getZip() {
return zip;
}
public void setZip(String zip) {
this.zip = zip;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double d) {
this.latitude = d;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double d) {
this.longitude = d;
}
public final static Place fromXML(String xml) {
try {
Place place = (Place)BrightkiteUtils.fromXML(xml, Place.class);
return place;
} catch (Exception e) {
throw new DeserializationException("Could not deserialize Place.", e);
}
}
}