1 |
package dk.thoerup.android.traininfo.common; |
2 |
|
3 |
import java.io.Serializable; |
4 |
|
5 |
import org.simpleframework.xml.Attribute; |
6 |
import org.simpleframework.xml.Element; |
7 |
import org.simpleframework.xml.Root; |
8 |
|
9 |
@Root(name="entry", strict=false) |
10 |
public class TimetableEntry implements Serializable { |
11 |
@Element |
12 |
private String station; |
13 |
|
14 |
@Element(required=false) |
15 |
private String arrival; |
16 |
|
17 |
@Element(required=false) |
18 |
private String departure; |
19 |
|
20 |
@Attribute |
21 |
private boolean current; |
22 |
|
23 |
@Element |
24 |
private StationEntry stationEntry; |
25 |
|
26 |
boolean cancelled; |
27 |
|
28 |
public String getStation() { |
29 |
return station; |
30 |
} |
31 |
public void setStation(String station) { |
32 |
this.station = station; |
33 |
} |
34 |
|
35 |
public String getArrival() { |
36 |
return arrival; |
37 |
} |
38 |
public void setArrival(String arrival) { |
39 |
this.arrival = arrival; |
40 |
} |
41 |
|
42 |
public String getDeparture() { |
43 |
return departure; |
44 |
} |
45 |
public void setDeparture(String departure) { |
46 |
this.departure = departure; |
47 |
} |
48 |
|
49 |
public boolean isCurrent() { |
50 |
return current; |
51 |
} |
52 |
public void setCurrent(boolean current) { |
53 |
this.current = current; |
54 |
} |
55 |
public StationEntry getStationEntry() { |
56 |
return stationEntry; |
57 |
} |
58 |
public void setStationEntry(StationEntry stationEntry) { |
59 |
this.stationEntry = stationEntry; |
60 |
} |
61 |
|
62 |
public boolean isCancelled() { |
63 |
return cancelled; |
64 |
} |
65 |
public void setCancelled(boolean cancelled) { |
66 |
this.cancelled = cancelled; |
67 |
} |
68 |
} |