blob: b48f036ef8dac0f7c51672c059cde9563e0e2e06 (
plain) (
blame)
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
|
package org.rssin.rss;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
/**
* Created by Randy on 19-5-2015.
*/
public class Feed implements Serializable {
private static final long serialVersionUID = 2;
private String guid;
private Date pubDate;
private String title;
private String description;
private String link;
private String author;
private List<String> category = new LinkedList<>();
private String comments;
private String enclosure;
private String source;
private List<FeedItem> posts = new ArrayList<>();
public Feed (String guid, Date pubDate, String title, String description, String link,
String author, List<String> category, String comments, String enclosure, String source)
{
this.guid = guid;
this.pubDate = pubDate;
this.title = title;
this.description = description;
this.link = link;
this.author = author;
this.category = category;
this.comments = comments;
this.enclosure = enclosure;
this.source = source;
}
public void addPost(FeedItem post) {
posts.add(post);
}
public List<FeedItem> getPosts() {
return posts;
}
public String getGuid() {
return guid;
}
public Date getPubDate() {
return pubDate;
}
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public String getLink() {
return link;
}
public String getAuthor() {
return author;
}
public List<String> getCategory() {
return category;
}
public String getComments() { return comments; }
public String getEnclosure() {
return enclosure;
}
public String getSource() {
return source;
}
}
|