summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java
diff options
context:
space:
mode:
authorgit-vdr <herrlado@gmail.com>2011-10-04 01:56:13 +0200
committergit-vdr <herrlado@gmail.com>2011-10-04 01:56:13 +0200
commita1069beee7a98787d679f831e595b2673c6099a2 (patch)
tree1454018e1df48a6ab812db303a3ac103e9652039 /vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java
parenta0959febada19fdbc0b1375b91c0876cb68b301d (diff)
downloadvdr-manager-a1069beee7a98787d679f831e595b2673c6099a2.tar.gz
vdr-manager-a1069beee7a98787d679f831e595b2673c6099a2.tar.bz2
refactoring, added cacheing, some classes splitted
Diffstat (limited to 'vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java32
1 files changed, 5 insertions, 27 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java
index e228565..d9d07b0 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java
@@ -6,18 +6,13 @@ import java.util.Date;
* Class for EPG events
* @author bju
*/
-public class Epg implements Event {
+public class Epg extends BaseEvent {
- private final String channelNumber;
- private final String channelName;
- private final String title;
- private final String description;
- private final Date start;
- private final Date stop;
private Timer timer;
public Epg(final String line) {
-
+ super(null);
+
final String[] words = line.split(":");
channelNumber = words[0].substring(1);
@@ -26,26 +21,9 @@ public class Epg implements Event {
stop = new Date(Long.parseLong(words[3])*1000);
title = words[4];
description = words.length > 5 ? words[5] : "";
+ shortText = words.length > 6 ? words[6] : "";
}
-
- public String getChannelNumber() {
- return channelNumber;
- }
- public String getChannelName() {
- return channelName;
- }
- public String getTitle() {
- return title;
- }
- public String getDescription() {
- return description;
- }
- public Date getStart() {
- return start;
- }
- public Date getStop() {
- return stop;
- }
+
public Timer getTimer() {
return timer;