aboutsummaryrefslogtreecommitdiff
blob: a94faf32f97ec8043572ec9c5c520f00b8165ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package org.marcinzelent.liberavem;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class Bird implements Serializable {
    @SerializedName("Id")
    private int id;
    @SerializedName("Created")
    private String created;
    @SerializedName("NameEnglish")
    private String nameEnglish;
    @SerializedName("NameDanish")
    private String nameDanish;
    @SerializedName("PhotoUrl")
    private String photoUrl;

    public Bird(int id, String created, String nameEnglish, String nameDanish, String photoUrl) {
        this.id = id;
        this.created = created;
        this.nameEnglish = nameEnglish;
        this.nameDanish = nameDanish;
        this.photoUrl = photoUrl;
    }

    public int getId() {
        return id;
    }

    public String getCreated() {
        return created;
    }

    public String getNameEnglish() {
        return nameEnglish;
    }

    public String getNameDanish() {
        return nameDanish;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    @Override
    public String toString() {
        return getNameEnglish();
    }
}