1 package be
.nikiroo
.gofetch
.data
;
6 import be
.nikiroo
.gofetch
.support
.BasicSupport
;
7 import be
.nikiroo
.gofetch
.support
.BasicSupport
.Type
;
18 private String details
;
19 private String urlInternal
;
20 private String urlExternal
;
21 private String content
;
23 private String fullContent
;
24 private List
<Comment
> comments
;
27 * Create a news story.
30 * the source {@link Type}
36 * some details to add to the title
38 * the {@link URL} to get this news on the associated news site
40 * an external {@link URL} that serve as the news' source, if any
44 public Story(Type type
, String id
, String title
, String details
,
45 String urlInternal
, String urlExternal
, String content
) {
49 this.details
= details
;
50 this.urlInternal
= urlInternal
;
51 this.urlExternal
= urlExternal
;
52 this.content
= content
;
54 // Defaults fullContent to content
55 this.fullContent
= content
;
58 public String
getSelector() {
59 return BasicSupport
.getSelector(type
) + id
;
65 public String
getId() {
72 public String
getTitle() {
79 public String
getDetails() {
86 public String
getUrlInternal() {
91 * @return the urlExternal
93 public String
getUrlExternal() {
100 public String
getContent() {
105 * @return the fullContent
107 public String
getFullContent() {
113 * the fullContent to set
115 public void setFullContent(String fullContent
) {
116 this.fullContent
= fullContent
;
120 * @return the comments
122 public List
<Comment
> getComments() {
128 * the comments to set
130 public void setComments(List
<Comment
> comments
) {
131 this.comments
= comments
;