diff options
author | Size43 | 2015-05-19 15:46:53 +0200 |
---|---|---|
committer | Size43 | 2015-05-19 15:46:53 +0200 |
commit | f19c2f69a350026d774e3ed2d66921d63ad64d77 (patch) | |
tree | d4df2ff3b2e60fffd1231e90f7f5f3f15e8d5719 /app/src/main/java/org | |
parent | Merge branch 'master' of https://github.com/camilstaps/RSSin (diff) | |
parent | RSS package categories part 2 (diff) |
Merge branch 'master' of https://github.com/camilstaps/RSSin
Diffstat (limited to 'app/src/main/java/org')
-rw-r--r-- | app/src/main/java/org/rssin/rss/FeedItem.java | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/app/src/main/java/org/rssin/rss/FeedItem.java b/app/src/main/java/org/rssin/rss/FeedItem.java index 5484b5a..4bd2fd5 100644 --- a/app/src/main/java/org/rssin/rss/FeedItem.java +++ b/app/src/main/java/org/rssin/rss/FeedItem.java @@ -1,6 +1,8 @@ package org.rssin.rss; import java.util.Date; +import java.util.LinkedList; +import java.util.List; /** * Created by Randy on 19-5-2015. @@ -13,13 +15,13 @@ public class FeedItem { private String description; private String link; private String author; - private String category; + private List<String> category = new LinkedList<>(); private String comments; private String enclosure; private String source; public FeedItem(String guid, Date pubDate, String title, String description, String link, - String author, String category, String comments, String enclosure, String source) + String author, List<String> category, String comments, String enclosure, String source) { this.setGuid(guid); this.setPubDate(pubDate); @@ -27,7 +29,7 @@ public class FeedItem { this.setDescription(description); this.setLink(link); this.setAuthor(author); - this.setCategory(category); + this.category = category; this.setComments(comments); this.setEnclosure(enclosure); this.setSource(source); @@ -57,7 +59,7 @@ public class FeedItem { return author; } - public String getCategory() { + public List<String> getCategory() { return category; } @@ -73,43 +75,44 @@ public class FeedItem { return source; } - public void setGuid(String guid) { + void setGuid(String guid) { this.guid = guid; } - public void setPubDate(Date pubDate) { + + void setPubDate(Date pubDate) { this.pubDate = pubDate; } - public void setTitle(String title) { + void setTitle(String title) { this.title = title; } - public void setDescription(String description) { + void setDescription(String description) { this.description = description; } - public void setLink(String link) { + void setLink(String link) { this.link = link; } - public void setAuthor(String author) { + void setAuthor(String author) { this.author = author; } - public void setCategory(String category) { - this.category = category; + void setCategory(String category) { + this.category.add(category); } - public void setComments(String comments) { + void setComments(String comments) { this.comments = comments; } - public void setEnclosure(String enclosure) { + void setEnclosure(String enclosure) { this.enclosure = enclosure; } - public void setSource(String source) { + void setSource(String source) { this.source = source; } } |