1 package be
.nikiroo
.gofetch
.data
;
5 import be
.nikiroo
.gofetch
.support
.BasicSupport
;
6 import be
.nikiroo
.gofetch
.support
.BasicSupport
.Type
;
17 private String details
;
18 private String urlInternal
;
19 private String urlExternal
;
20 private String content
;
23 * Create a news story.
26 * the source {@link Type}
32 * some details to add to the title
34 * the {@link URL} to get this news on the associated news site
36 * an external {@link URL} that serve as the news' source, if any
40 public Story(Type type
, String id
, String title
, String details
,
41 String urlInternal
, String urlExternal
, String content
) {
45 this.details
= details
;
46 this.urlInternal
= urlInternal
;
47 this.urlExternal
= urlExternal
;
48 this.content
= content
;
51 public String
getSelector() {
52 return BasicSupport
.getSelector(type
) + id
;
58 public String
getId() {
65 public String
getTitle() {
72 public String
getDetails() {
79 public String
getUrlInternal() {
84 * @return the urlExternal
86 public String
getUrlExternal() {
93 public String
getContent() {