X-Git-Url: https://git.wpitchoune.net/gitweb/?p=pnews.git;a=blobdiff_plain;f=war%2Fsrc%2Fmain%2Fjava%2Fnet%2Fwpitchoune%2Fpnews%2FFeed.java;fp=war%2Fsrc%2Fmain%2Fjava%2Fnet%2Fwpitchoune%2Fpnews%2FFeed.java;h=d85f14a5d3885b516006924f5ae2caf1d8d31601;hp=0000000000000000000000000000000000000000;hb=aff83c8798602b535d13edeaffdb8f4238e2bbf5;hpb=88a7ba9745b8318ca6c4f741906a40e3d6a8f07e 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 index 0000000..d85f14a --- /dev/null +++ b/war/src/main/java/net/wpitchoune/pnews/Feed.java @@ -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 + "]"; + } +}