diff options
author | Tarun Gupta <tarun1995gupta@gmail.com> | 2015-06-11 20:23:56 (GMT) |
---|---|---|
committer | Tarun Gupta <tarun1995gupta@gmail.com> | 2015-06-16 19:14:39 (GMT) |
commit | e868c966e23716d8a0261b222cccbeb04616e235 (patch) | |
tree | 2e26cc205e671f54bc5de527917913f8de47e0f4 /src/com/isode/stroke/elements | |
parent | b2a8ac9a0387a9a5e75e31f7704e62ac077faba4 (diff) | |
download | stroke-e868c966e23716d8a0261b222cccbeb04616e235.zip stroke-e868c966e23716d8a0261b222cccbeb04616e235.tar.bz2 |
Add the UserLocation Element.
Adds UserLocation Element, its parser and Serializer.
License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Test-Information:
Tests added for UserLocation Parser and UserLocation Serializer, which passes.
Change-Id: Ia1d57f4233351e755770f06fdc8e292db1acf521
Diffstat (limited to 'src/com/isode/stroke/elements')
-rw-r--r-- | src/com/isode/stroke/elements/UserLocation.java | 355 |
1 files changed, 355 insertions, 0 deletions
diff --git a/src/com/isode/stroke/elements/UserLocation.java b/src/com/isode/stroke/elements/UserLocation.java new file mode 100644 index 0000000..bb974ae --- /dev/null +++ b/src/com/isode/stroke/elements/UserLocation.java @@ -0,0 +1,355 @@ +/* + * Copyright (c) 2013 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ +/* + * Copyright (c) 2015 Tarun Gupta. + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +package com.isode.stroke.elements; + +import com.isode.stroke.base.NotNull; +import com.isode.stroke.elements.Payload; +import java.util.Date; +import java.util.TimeZone; + +public class UserLocation extends Payload { + + private String area; + private Float altitude; + private String locality; + private Float latitude; + private Float accuracy; + private String description; + private String countryCode; + private Date timestamp; + private String floor; + private String building; + private String room; + private String country; + private String region; + private String uri; + private Float longitude; + private Float error; + private String postalCode; + private Float bearing; + private String text; + private String datum; + private String street; + private Float speed; + + public UserLocation() { + + } + + /** + * @return Area. + */ + public String getArea() { + return area; + } + + /** + * @param Area. + */ + public void setArea(String value) { + this.area = value ; + } + + /** + * @return altitude. + */ + public Float getAltitude() { + return altitude; + } + + /** + * @param altitude. + */ + public void setAltitude(Float value) { + this.altitude = value ; + } + + /** + * @return locality. + */ + public String getLocality() { + return locality; + } + + /** + * @param locality. + */ + public void setLocality(String value) { + this.locality = value ; + } + + /** + * @return latitude. + */ + public Float getLatitude() { + return latitude; + } + + /** + * @param latitude. + */ + public void setLatitude(Float value) { + this.latitude = value ; + } + + /** + * @return accuracy. + */ + public Float getAccuracy() { + return accuracy; + } + + /** + * @param accuracy. + */ + public void setAccuracy(Float value) { + this.accuracy = value ; + } + + /** + * @return description. + */ + public String getDescription() { + return description; + } + + /** + * @param description. + */ + public void setDescription(String value) { + this.description = value ; + } + + /** + * @return countryCode. + */ + public String getCountryCode() { + return countryCode; + } + + /** + * @param countryCode. + */ + public void setCountryCode(String value) { + this.countryCode = value ; + } + + /** + * @return timestamp. + */ + public Date getTimestamp() { + return timestamp; + } + + /** + * @param timestamp. + */ + public void setTimestamp(Date value) { + this.timestamp = value ; + } + + /** + * @return floor. + */ + public String getFloor() { + return floor; + } + + /** + * @param floor. + */ + public void setFloor(String value) { + this.floor = value ; + } + + /** + * @return building. + */ + public String getBuilding() { + return building; + } + + /** + * @param building. + */ + public void setBuilding(String value) { + this.building = value ; + } + + /** + * @return room. + */ + public String getRoom() { + return room; + } + + /** + * @param room. + */ + public void setRoom(String value) { + this.room = value ; + } + + /** + * @return country. + */ + public String getCountry() { + return country; + } + + /** + * @param country. + */ + public void setCountry(String value) { + this.country = value ; + } + + /** + * @return region. + */ + public String getRegion() { + return region; + } + + /** + * @param region. + */ + public void setRegion(String value) { + this.region = value ; + } + + /** + * @return uri. + */ + public String getURI() { + return uri; + } + + /** + * @param uri. + */ + public void setURI(String value) { + this.uri = value ; + } + + /** + * @return longitude. + */ + public Float getLongitude() { + return longitude; + } + + /** + * @param longitude. + */ + public void setLongitude(Float value) { + this.longitude = value ; + } + + /** + * @return error. + */ + public Float getError() { + return error; + } + + /** + * @param error. + */ + public void setError(Float value) { + this.error = value ; + } + + /** + * @return postalCode. + */ + public String getPostalCode() { + return postalCode; + } + + /** + * @param postalCode. + */ + public void setPostalCode(String value) { + this.postalCode = value ; + } + + /** + * @return bearing. + */ + public Float getBearing() { + return bearing; + } + + /** + * @param bearing. + */ + public void setBearing(Float value) { + this.bearing = value ; + } + + /** + * @return text. + */ + public String getText() { + return text; + } + + /** + * @param text. + */ + public void setText(String value) { + this.text = value ; + } + + /** + * @return datum. + */ + public String getDatum() { + return datum; + } + + /** + * @param datum. + */ + public void setDatum(String value) { + this.datum = value ; + } + + /** + * @return street. + */ + public String getStreet() { + return street; + } + + /** + * @param street. + */ + public void setStreet(String value) { + this.street = value ; + } + + /** + * @return speed. + */ + public Float getSpeed() { + return speed; + } + + /** + * @param speed. + */ + public void setSpeed(Float value) { + this.speed = value ; + } +}
\ No newline at end of file |