Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added latitude and longitude to Location.java

  • Loading branch information...
commit f44504254318b45e0fd681b8011b6b84f7b14842 1 parent 26102ff
@nischal nischal authored
View
2  build.xml
@@ -5,7 +5,7 @@
<property name="lib.dir" value="lib" />
<property name="build.dir" value="build" />
<property name="project.name" value="face4j" />
- <property name="project.version" value="1.5.10" />
+ <property name="project.version" value="1.5.11" />
<property name="dist.dir" value="dist" />
<property name="archive.name-face4j" value="face4j-${project.version}" />
<property name="exclude-classes" value="com/face4j/dummy/**,com/face4j/facebook/test/**"></property>
View
BIN  dist/face4j-1.5.11.jar
Binary file not shown
View
3  release.txt
@@ -79,3 +79,6 @@ version 0.4.1
13/01/2012
1.5.10
+
+15/01/2012
+1.5.11
View
35 src/com/face4j/facebook/entity/Location.java
@@ -13,6 +13,9 @@
private String state;
private String country;
private String zip;
+
+ private String latitude;
+ private String longitude;
public String getId() {
return id;
@@ -61,7 +64,33 @@ public String getZip() {
public void setZip(String zip) {
this.zip = zip;
}
-
-
-}
+ public Double getLatitude() {
+ if(this.latitude != null && !this.latitude.equals("")){
+ return Double.parseDouble(this.latitude);
+ }
+
+ return null;
+ }
+
+ public void setLatitude(Double latitude) {
+ if(latitude != null){
+ this.latitude = ""+latitude;
+ }
+ }
+
+ public Double getLongitude() {
+ if(this.longitude != null && !this.longitude.equals("")){
+ return Double.parseDouble(this.longitude);
+ }
+
+ return null;
+ }
+
+ public void setLongitude(Double longitude) {
+ if(longitude != null){
+ this.longitude = ""+longitude;
+ }
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.