summaryrefslogtreecommitdiff
path: root/core/src/main/java/de/danoeh/antennapod/core/feed/ID3Chapter.java
blob: 56d63c32ee3cdc1a563aa1bb7f3fef402de98aad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package de.danoeh.antennapod.core.feed;

import de.danoeh.antennapod.model.feed.Chapter;

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, String link, String imageUrl) {
        super(start, title, link, imageUrl);
    }

    @Override
    public String toString() {
        return "ID3Chapter [id3ID=" + id3ID + ", title=" + getTitle() + ", start="
                + getStart() + ", url=" + getLink() + "]";
    }

    @Override
    public int getChapterType() {
        return CHAPTERTYPE_ID3CHAPTER;
    }

    public String getId3ID() {
        return id3ID;
    }

}