summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/feed/SearchResult.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/feed/SearchResult.java')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/feed/SearchResult.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/feed/SearchResult.java b/app/src/main/java/de/danoeh/antennapod/feed/SearchResult.java
new file mode 100644
index 000000000..1cba389ec
--- /dev/null
+++ b/app/src/main/java/de/danoeh/antennapod/feed/SearchResult.java
@@ -0,0 +1,34 @@
+package de.danoeh.antennapod.feed;
+
+public class SearchResult {
+ private FeedComponent component;
+ /** Additional information (e.g. where it was found) */
+ private String subtitle;
+ /** Higher value means more importance */
+ private int value;
+
+ public SearchResult(FeedComponent component, int value, String subtitle) {
+ super();
+ this.component = component;
+ this.value = value;
+ this.subtitle = subtitle;
+ }
+
+ public FeedComponent getComponent() {
+ return component;
+ }
+
+ public String getSubtitle() {
+ return subtitle;
+ }
+
+ public void setSubtitle(String subtitle) {
+ this.subtitle = subtitle;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+
+}