aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/Observation.java')
-rw-r--r--app/src/main/java/org/marcinzelent/liberavem/Observation.java91
1 files changed, 64 insertions, 27 deletions
diff --git a/app/src/main/java/org/marcinzelent/liberavem/Observation.java b/app/src/main/java/org/marcinzelent/liberavem/Observation.java
index be02812..1aca80b 100644
--- a/app/src/main/java/org/marcinzelent/liberavem/Observation.java
+++ b/app/src/main/java/org/marcinzelent/liberavem/Observation.java
@@ -5,89 +5,126 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Observation implements Serializable {
- @SerializedName("Id")
- private int id;
+ @SerializedName("BirdId")
+ private int birdId;
+ @SerializedName("Comment")
+ private String comment;
@SerializedName("Created")
private String created;
+ @SerializedName("Id")
+ private int id;
@SerializedName("Latitude")
private double latitude;
@SerializedName("Longitude")
private double longitude;
@SerializedName("Placename")
private String placeName;
- @SerializedName("Comment")
- private String comment;
+ @SerializedName("Population")
+ private int population;
@SerializedName("UserId")
private String userId;
- @SerializedName("BirdId")
- private int birdId;
- @SerializedName("NameEnglish")
- private String nameEnglish;
@SerializedName("NameDanish")
private String nameDanish;
- @SerializedName("Population")
- private int population;
+ @SerializedName("NameEnglish")
+ private String nameEnglish;
public Observation(int id, String created, double latitude, double longitude, String placeName,
String comment, String userId, int birdId, String nameEnglish,
String nameDanish, int population) {
- this.id = id;
+ this.birdId = birdId;
+ this.comment = comment;
this.created = created;
+ this.id = id;
this.latitude = latitude;
this.longitude = longitude;
this.placeName = placeName;
- this.comment = comment;
+ this.population = population;
this.userId = userId;
- this.birdId = birdId;
- this.nameEnglish = nameEnglish;
this.nameDanish = nameDanish;
- this.population = population;
+ this.nameEnglish = nameEnglish;
}
- public int getId() {
- return id;
+ public int getBirdId() {
+ return birdId;
+ }
+
+ public void setBirdId(int birdId) {
+ this.birdId = birdId;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
}
public String getCreated() {
return created;
}
+
public void setCreated(String created) {
this.created = created;
}
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
public double getLatitude() {
return latitude;
}
+ public void setLatitude(double latitude) {
+ this.latitude = latitude;
+ }
+
public double getLongitude() {
return longitude;
}
+ public void setLongitude(double longitude) {
+ this.longitude = longitude;
+ }
+
public String getPlaceName() {
return placeName;
}
- public String getComment() {
- return comment;
+ public void setPlaceName(String placeName) {
+ this.placeName = placeName;
}
- public String getUserId() {
- return userId;
+ public int getPopulation() {
+ return population;
}
- public int getBirdId() {
- return birdId;
+ public void setPopulation(int population) {
+ this.population = population;
}
- public String getNameEnglish() {
- return nameEnglish;
+ public String getUserId() {
+ return userId;
+ }
+
+ public void setUserId(String userId) {
+ this.userId = userId;
}
public String getNameDanish() {
return nameDanish;
}
- public int getPopulation() {
- return population;
+ public String getNameEnglish() {
+ return nameEnglish;
+ }
+
+ public void setNameEnglish(String nameEnglish) {
+ this.nameEnglish = nameEnglish;
}
}