You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

package com.cctv.news.model;
public class Article {
private String title;
private String url;
private String publishTime;
private String content;
public Article() {
}
public Article(String title, String url, String publishTime, String content) {
this.title = title;
this.url = url;
this.publishTime = publishTime;
this.content = content;
}
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 getPublishTime() {
return publishTime;
}
public void setPublishTime(String publishTime) {
this.publishTime = publishTime;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "Article{" +
"title='" + title + '\'' +
", url='" + url + '\'' +
", publishTime='" + publishTime + '\'' +
'}';
}
}