diff options
author | marcinzelent <zelent.marcin@gmail.com> | 2018-04-19 23:03:13 +0200 |
---|---|---|
committer | marcinzelent <zelent.marcin@gmail.com> | 2018-04-19 23:03:13 +0200 |
commit | 4e6fc4fcdbcc3c75be13b3f8b80c24e4648fe354 (patch) | |
tree | 9588d81ee5e3e470d242f82b015fac6e34d54014 /app/src/main/java/org/marcinzelent/liberavem/Observation.java | |
parent | 7294c6bd32e362b4c0a64cadbf4dd2c191e1ad8e (diff) |
Added details view, improved observations list
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/Observation.java')
-rw-r--r-- | app/src/main/java/org/marcinzelent/liberavem/Observation.java | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/app/src/main/java/org/marcinzelent/liberavem/Observation.java b/app/src/main/java/org/marcinzelent/liberavem/Observation.java new file mode 100644 index 0000000..be02812 --- /dev/null +++ b/app/src/main/java/org/marcinzelent/liberavem/Observation.java @@ -0,0 +1,93 @@ +package org.marcinzelent.liberavem; + +import com.google.gson.annotations.SerializedName; + +import java.io.Serializable; + +public class Observation implements Serializable { + @SerializedName("Id") + private int id; + @SerializedName("Created") + private String created; + @SerializedName("Latitude") + private double latitude; + @SerializedName("Longitude") + private double longitude; + @SerializedName("Placename") + private String placeName; + @SerializedName("Comment") + private String comment; + @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; + + 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.created = created; + this.latitude = latitude; + this.longitude = longitude; + this.placeName = placeName; + this.comment = comment; + this.userId = userId; + this.birdId = birdId; + this.nameEnglish = nameEnglish; + this.nameDanish = nameDanish; + this.population = population; + } + + public int getId() { + return id; + } + + public String getCreated() { + return created; + } + public void setCreated(String created) { + this.created = created; + } + + public double getLatitude() { + return latitude; + } + + public double getLongitude() { + return longitude; + } + + public String getPlaceName() { + return placeName; + } + + public String getComment() { + return comment; + } + + public String getUserId() { + return userId; + } + + public int getBirdId() { + return birdId; + } + + public String getNameEnglish() { + return nameEnglish; + } + + public String getNameDanish() { + return nameDanish; + } + + public int getPopulation() { + return population; + } +} |