--- android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureBean.java 2009/09/30 19:49:25 373 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureEntry.java 2010/07/10 10:53:44 978 @@ -1,6 +1,6 @@ package dk.thoerup.traininfoservice.banedk; -public class DepartureBean implements Comparable { +public class DepartureEntry implements Comparable { private String time; private int updated; private String trainNumber; @@ -9,6 +9,7 @@ private String location; private String status; private String note; + private String type; public String getTime() { @@ -60,8 +61,16 @@ this.note = note; } + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + @Override - public int compareTo(DepartureBean otherBean) { + public int compareTo(DepartureEntry otherBean) { String timeStr1 = time.replace(":","").trim(); String timeStr2 = otherBean.time.replace(":","").trim();