/[projects]/android/TrainInfoCommon/src/dk/thoerup/android/traininfo/common/DepartureBean.java
ViewVC logotype

Annotation of /android/TrainInfoCommon/src/dk/thoerup/android/traininfo/common/DepartureBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1373 - (hide annotations) (download)
Sat Apr 23 08:01:57 2011 UTC (13 years, 1 month ago) by torben
File size: 1031 byte(s)
Send an error xml doc when banedk is unavailable
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 torben 1070 @Root(name="departureinfo", strict=false)
14 torben 1065 public class DepartureBean implements Serializable{
15    
16     @Attribute
17     public boolean arrival;
18    
19     @Attribute(name="station")
20     public String stationName;
21    
22 torben 1373 @Attribute(required=false)
23     public Integer errorCode; //errorcode 1=bane.dk is down
24    
25 torben 1065
26 torben 1071 @ElementList(inline=true, name="train", required=false)
27 torben 1065 public ArrayList<DepartureEntry> entries = new ArrayList<DepartureEntry>();
28    
29     @ElementList(inline=true, required=false)
30     public ArrayList<String> notifications = new ArrayList<String>();
31    
32     public List<String> getNotifications() {
33     return notifications;
34     }
35    
36     public List<DepartureEntry> getEntries() {
37     return entries;
38     }
39    
40     public String getStationName() {
41     return stationName;
42     }
43    
44     }

  ViewVC Help
Powered by ViewVC 1.1.20