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 int stationId; |
25 |
boolean cancelled; |
26 |
|
27 |
public String getStation() { |
28 |
return station; |
29 |
} |
30 |
public void setStation(String station) { |
31 |
this.station = station; |
32 |
} |
33 |
|
34 |
public String getArrival() { |
35 |
return arrival; |
36 |
} |
37 |
public void setArrival(String arrival) { |
38 |
this.arrival = arrival; |
39 |
} |
40 |
|
41 |
public String getDeparture() { |
42 |
return departure; |
43 |
} |
44 |
public void setDeparture(String departure) { |
45 |
this.departure = departure; |
46 |
} |
47 |
|
48 |
public boolean isCurrent() { |
49 |
return current; |
50 |
} |
51 |
public void setCurrent(boolean current) { |
52 |
this.current = current; |
53 |
} |
54 |
public int getStationId() { |
55 |
return stationId; |
56 |
} |
57 |
public void setStationId(int stationId) { |
58 |
this.stationId = stationId; |
59 |
} |
60 |
|
61 |
public boolean isCancelled() { |
62 |
return cancelled; |
63 |
} |
64 |
public void setCancelled(boolean cancelled) { |
65 |
this.cancelled = cancelled; |
66 |
} |
67 |
} |