summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/feed/Chapter.java
blob: d6151ee9fcecebd20a6cfaa9e8e6bc29da846e21 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package de.danoeh.antennapod.feed;

public abstract class Chapter extends FeedComponent {

	/** Defines starting point in milliseconds. */
	protected long start;
	protected String title;
	protected String link;

	public Chapter() {
	}
	
	public Chapter(long start) {
		super();
		this.start = start;
	}

	public Chapter(long start, String title, FeedItem item, String link) {
		super();
		this.start = start;
		this.title = title;
		this.link = link;
	}

	public abstract int getChapterType();

	public long getStart() {
		return start;
	}

	public String getTitle() {
		return title;
	}

	public String getLink() {
		return link;
	}

	public void setStart(long start) {
		this.start = start;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setLink(String link) {
		this.link = link;
	}

    @Override
    public String getHumanReadableIdentifier() {
        return title;
    }
}