summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/feed/ID3Chapter.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-09-21 19:00:49 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-09-21 19:00:49 +0200
commit0eb841db4b2c340c5c5200e5fb655482ee98cfc6 (patch)
tree0d0902e6f4d681f6634a5da7d7d763ddd9ff55ff /src/de/danoeh/antennapod/feed/ID3Chapter.java
parent2ebef34408570b68d7ef9b16afb8887698d2eee3 (diff)
downloadAntennaPod-0eb841db4b2c340c5c5200e5fb655482ee98cfc6.zip
Integrated id3 chapterreader in Antennapod
Diffstat (limited to 'src/de/danoeh/antennapod/feed/ID3Chapter.java')
-rw-r--r--src/de/danoeh/antennapod/feed/ID3Chapter.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/feed/ID3Chapter.java b/src/de/danoeh/antennapod/feed/ID3Chapter.java
new file mode 100644
index 000000000..6dde7854e
--- /dev/null
+++ b/src/de/danoeh/antennapod/feed/ID3Chapter.java
@@ -0,0 +1,36 @@
+package de.danoeh.antennapod.feed;
+
+public class ID3Chapter extends Chapter {
+ public static final int CHAPTERTYPE_ID3CHAPTER = 2;
+
+ /**
+ * Identifies the chapter in its ID3 tag. This attribute does not have to be
+ * store in the DB and is only used for parsing.
+ */
+ private String id3ID;
+
+ public ID3Chapter(String id3ID, long start) {
+ super(start);
+ this.id3ID = id3ID;
+ }
+
+ public ID3Chapter(long start, String title, FeedItem item, String link) {
+ super(start, title, item, link);
+ }
+
+ @Override
+ public String toString() {
+ return "ID3Chapter [id3ID=" + id3ID + ", title=" + title + ", start="
+ + start + ", url=" + link + "]";
+ }
+
+ @Override
+ public int getChapterType() {
+ return CHAPTERTYPE_ID3CHAPTER;
+ }
+
+ public String getId3ID() {
+ return id3ID;
+ }
+
+}