Advertisement
Guest User

GarciaPL

a guest
Sep 3rd, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.39 KB | None | 0 0
  1. @XmlRootElement(name = "response")
  2. public class LocationResponse {
  3.  
  4.     @XmlElement
  5.     private String result;
  6.     @XmlElement
  7.     private String latitude;
  8.     @XmlElement
  9.     private String longitude;
  10.     @XmlElement
  11.     private String altitude;
  12.     @XmlElement
  13.     private String accuracy;
  14.     @XmlElement
  15.     private String timestamp;
  16.  
  17.     public LocationResponse() {
  18.     }
  19.  
  20.     public LocationResponse(String result, String latitude, String longitude, String altitude, String accuracy, String timestamp) {
  21.         this.result = result;
  22.         this.latitude = latitude;
  23.         this.longitude = longitude;
  24.         this.altitude = altitude;
  25.         this.accuracy = accuracy;
  26.         this.timestamp = timestamp;
  27.     }
  28.  
  29.     public String getResult() {
  30.         return result;
  31.     }
  32.  
  33.     public String getLatitude() {
  34.         return latitude;
  35.     }
  36.  
  37.     public String getLongitude() {
  38.         return longitude;
  39.     }
  40.  
  41.     public String getAltitude() {
  42.         return altitude;
  43.     }
  44.  
  45.     public String getAccuracy() {
  46.         return accuracy;
  47.     }
  48.  
  49.     public String getTimestamp() {
  50.         return timestamp;
  51.     }
  52.  
  53.     @Override
  54.     public String toString() {
  55.         return "LocationResponse{" + "result=" + result + ", latitude=" + latitude + ", longitude=" + longitude + ", altitude=" + altitude + ", accuracy=" + accuracy + ", timestamp=" + timestamp + '}';
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement