cleanup and refactored to move to net.wpitchoune package
[pnews.git] / war / src / main / java / net / wpitchoune / pnews / Feed.java
diff --git a/war/src/main/java/net/wpitchoune/pnews/Feed.java b/war/src/main/java/net/wpitchoune/pnews/Feed.java
new file mode 100644 (file)
index 0000000..d85f14a
--- /dev/null
@@ -0,0 +1,24 @@
+package net.wpitchoune.pnews;
+
+public class Feed {
+        private final String URL;
+        private final Category category;
+        
+        public Feed(String URL, Category category) {
+                this.URL = URL;
+                this.category = category;
+        }
+        
+        public String getURL() {
+                return URL;
+        }
+        
+        public Category getCategory() {
+                return category;
+        }
+        
+        @Override
+        public String toString() {
+                return getURL() + "[" + category + "]";
+        }
+}