Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @XmlRootElement(name = "response")
- public class LocationResponse {
- @XmlElement
- private String result;
- @XmlElement
- private String latitude;
- @XmlElement
- private String longitude;
- @XmlElement
- private String altitude;
- @XmlElement
- private String accuracy;
- @XmlElement
- private String timestamp;
- public LocationResponse() {
- }
- public LocationResponse(String result, String latitude, String longitude, String altitude, String accuracy, String timestamp) {
- this.result = result;
- this.latitude = latitude;
- this.longitude = longitude;
- this.altitude = altitude;
- this.accuracy = accuracy;
- this.timestamp = timestamp;
- }
- public String getResult() {
- return result;
- }
- public String getLatitude() {
- return latitude;
- }
- public String getLongitude() {
- return longitude;
- }
- public String getAltitude() {
- return altitude;
- }
- public String getAccuracy() {
- return accuracy;
- }
- public String getTimestamp() {
- return timestamp;
- }
- @Override
- public String toString() {
- return "LocationResponse{" + "result=" + result + ", latitude=" + latitude + ", longitude=" + longitude + ", altitude=" + altitude + ", accuracy=" + accuracy + ", timestamp=" + timestamp + '}';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement