--- android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureBean.java 2010/09/16 09:11:23 1059 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureBean.java 2010/09/16 13:32:10 1060 @@ -5,13 +5,27 @@ import java.util.List; import java.util.Set; +import org.simpleframework.xml.Attribute; +import org.simpleframework.xml.ElementList; +import org.simpleframework.xml.Root; + +@Root(name="departureinfo") public class DepartureBean { + @Attribute + boolean arrival; + + @Attribute(name="station") String stationName; - Set notifications = new HashSet(); + + + @ElementList(inline=true, name="train") List departureEntries = new ArrayList(); + @ElementList(inline=true) + Set notifications = new HashSet(); + public Set getNotifications() { return notifications; }