Compare commits
2 Commits
52cbe68dd4
...
81e72ba458
| Author | SHA1 | Date |
|---|---|---|
|
|
81e72ba458 | 1 month ago |
|
|
be6b9f8cb7 | 1 month ago |
1 changed files with 53 additions and 0 deletions
@ -0,0 +1,53 @@ |
|||
package com.example.datacollect.model; |
|||
import java.util.Date |
|||
public class Article { |
|||
private String title; |
|||
private String url; |
|||
private String content; |
|||
private String author; |
|||
private String Date publishDate; |
|||
public Article(String title, String url, String content,String author,Date publishDate) { |
|||
this.title = title; |
|||
this.url = url; |
|||
this.content = content; |
|||
this.author = author; |
|||
this.publishDate= publishDate; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
public String getAuthor(){ |
|||
return author; |
|||
} |
|||
public void setAuthor(String author){ |
|||
this.author= author; |
|||
} |
|||
@Override |
|||
public String toString() { |
|||
return "Article{" |
|||
+ "title='" + title + '\'' |
|||
+ ", url='" + url + '\'' |
|||
+ '}'; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue