-
Notifications
You must be signed in to change notification settings - Fork 0
/
ArticlesItem.java
107 lines (81 loc) · 2.26 KB
/
ArticlesItem.java
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.gzeinnumer.retrofit2andrxjavanew.model;
import com.google.gson.annotations.SerializedName;
public class ArticlesItem {
@SerializedName("publishedAt")
private String publishedAt;
@SerializedName("author")
private String author;
@SerializedName("urlToImage")
private String urlToImage;
@SerializedName("description")
private String description;
@SerializedName("source")
private Source source;
@SerializedName("title")
private String title;
@SerializedName("url")
private String url;
@SerializedName("content")
private String content;
public String getPublishedAt() {
return publishedAt;
}
public void setPublishedAt(String publishedAt) {
this.publishedAt = publishedAt;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getUrlToImage() {
return urlToImage;
}
public void setUrlToImage(String urlToImage) {
this.urlToImage = urlToImage;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Source getSource() {
return source;
}
public void setSource(Source source) {
this.source = source;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "ArticlesItem{" +
"publishedAt='" + publishedAt + '\'' +
", author='" + author + '\'' +
", urlToImage='" + urlToImage + '\'' +
", description='" + description + '\'' +
", source=" + source +
", title='" + title + '\'' +
", url='" + url + '\'' +
", content='" + content + '\'' +
'}';
}
}