1 |
torben |
1065 |
package dk.thoerup.android.traininfo.common; |
2 |
|
|
|
3 |
|
|
import java.io.Serializable; |
4 |
|
|
import java.util.ArrayList; |
5 |
|
|
import java.util.HashSet; |
6 |
|
|
import java.util.List; |
7 |
|
|
import java.util.Set; |
8 |
|
|
|
9 |
|
|
import org.simpleframework.xml.Attribute; |
10 |
|
|
import org.simpleframework.xml.ElementList; |
11 |
|
|
import org.simpleframework.xml.Root; |
12 |
|
|
|
13 |
|
|
@Root(name="departureinfo") |
14 |
|
|
public class DepartureBean implements Serializable{ |
15 |
|
|
|
16 |
|
|
@Attribute |
17 |
|
|
public boolean arrival; |
18 |
|
|
|
19 |
|
|
@Attribute(name="station") |
20 |
|
|
public String stationName; |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
@ElementList(inline=true, name="train") |
25 |
|
|
public ArrayList<DepartureEntry> entries = new ArrayList<DepartureEntry>(); |
26 |
|
|
|
27 |
|
|
@ElementList(inline=true, required=false) |
28 |
|
|
public ArrayList<String> notifications = new ArrayList<String>(); |
29 |
|
|
|
30 |
|
|
public List<String> getNotifications() { |
31 |
|
|
return notifications; |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
public List<DepartureEntry> getEntries() { |
35 |
|
|
return entries; |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
public String getStationName() { |
39 |
|
|
return stationName; |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
} |