diff options
author | Marcin Zelent <zelent.marcin@gmail.com> | 2018-04-20 16:34:25 +0200 |
---|---|---|
committer | Marcin Zelent <zelent.marcin@gmail.com> | 2018-04-20 16:34:25 +0200 |
commit | 2cf7ca569e50caa8d33d4045977d69d1f10771c2 (patch) | |
tree | 2339f4725e67b8c3fa4b68315d690084cd500fd0 /app/src/main/java/org/marcinzelent/liberavem/Observation.java | |
parent | e4fac53bb0e2a5234116caf8651e8d2c5a38a4f1 (diff) |
Added partially posting
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/Observation.java')
-rw-r--r-- | app/src/main/java/org/marcinzelent/liberavem/Observation.java | 91 |
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; } } |