Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / connection / models / NewsModel.java
1 package com.moiseum.wolnelektury.connection.models;
2
3 import com.google.gson.annotations.SerializedName;
4
5 import org.parceler.Parcel;
6
7 import java.util.List;
8
9 @Parcel(Parcel.Serialization.BEAN)
10 public class NewsModel {
11
12         private String body;
13         private String lead;
14         private String title;
15         private String url;
16         @SerializedName("image_url")
17         private String imageUrl;
18         private String key;
19         private String time;
20         private String place;
21         @SerializedName("image_thumb")
22         private String thumbUrl;
23         @SerializedName("gallery_urls")
24         private List<String> galleryUrl;
25         private String type;
26
27         public NewsModel() {
28
29         }
30
31         public String getBody() {
32                 return body;
33         }
34
35         public void setBody(String body) {
36                 this.body = body;
37         }
38
39         public String getLead() {
40                 return lead;
41         }
42
43         public void setLead(String lead) {
44                 this.lead = lead;
45         }
46
47         public String getTitle() {
48                 return title;
49         }
50
51         public void setTitle(String title) {
52                 this.title = title;
53         }
54
55         public String getUrl() {
56                 return url;
57         }
58
59         public void setUrl(String url) {
60                 this.url = url;
61         }
62
63         public String getImageUrl() {
64                 return imageUrl;
65         }
66
67         public void setImageUrl(String imageUrl) {
68                 this.imageUrl = imageUrl;
69         }
70
71         public String getKey() {
72                 return key;
73         }
74
75         public void setKey(String key) {
76                 this.key = key;
77         }
78
79         public String getTime() {
80                 return time;
81         }
82
83         public void setTime(String time) {
84                 this.time = time;
85         }
86
87         public String getPlace() {
88                 return place;
89         }
90
91         public void setPlace(String place) {
92                 this.place = place;
93         }
94
95         public String getThumbUrl() {
96                 return thumbUrl;
97         }
98
99         public void setThumbUrl(String thumbUrl) {
100                 this.thumbUrl = thumbUrl;
101         }
102
103         public List<String> getGalleryUrl() {
104                 return galleryUrl;
105         }
106
107         public void setGalleryUrl(List<String> galleryUrl) {
108                 this.galleryUrl = galleryUrl;
109         }
110
111         public String getType() {
112                 return type;
113         }
114
115         public void setType(String type) {
116                 this.type = type;
117         }
118 }