blob: 846fa72adaedbda07a2eb4eee12054992f8950ca (
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
56
57
58
59
60
61
62
63
64
|
package de.luhmer.owncloudnewsreader.events.podcast;
import android.support.v4.media.session.PlaybackStateCompat;
import de.luhmer.owncloudnewsreader.services.podcast.PlaybackService;
public class UpdatePodcastStatusEvent {
private final long current;
private final long max;
private final String author;
private final String title;
private @PlaybackStateCompat.State
final int status;
private final PlaybackService.VideoType videoType;
private final long rssItemId;
private final float speed;
public long getRssItemId() {
return rssItemId;
}
public String getAuthor() {
return author;
}
public String getTitle() {
return title;
}
public @PlaybackStateCompat.State int getStatus() {
return status;
}
public boolean isPlaying() {
return status == PlaybackStateCompat.STATE_PLAYING;
}
public long getCurrent() {
return current;
}
public long getMax() {
return max;
}
public float getSpeed() { return speed; }
public PlaybackService.VideoType getVideoType() { return videoType; }
public boolean isVideoFile() { return !(videoType == PlaybackService.VideoType.None); }
public UpdatePodcastStatusEvent(long current, long max, @PlaybackStateCompat.State int status, String author, String title, PlaybackService.VideoType videoType, long rssItemId, float speed) {
this.current = current;
this.max = max;
this.status = status;
this.author = author;
this.title = title;
this.videoType = videoType;
this.rssItemId = rssItemId;
this.speed = speed;
}
}
|