/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/DepartureEntry.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/DepartureEntry.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 561 by torben, Thu Jan 28 08:55:19 2010 UTC revision 699 by torben, Mon May 3 11:19:18 2010 UTC
# Line 2  package dk.thoerup.traininfo; Line 2  package dk.thoerup.traininfo;
2    
3  import java.io.Serializable;  import java.io.Serializable;
4    
5  import android.content.res.Resources;  import android.content.Context;
6    
7    
8  public class DepartureBean implements Serializable  public class DepartureBean implements Serializable
9  {  {
# Line 21  public class DepartureBean implements Se Line 22  public class DepartureBean implements Se
22          private String location = "";          private String location = "";
23          private String status = "";          private String status = "";
24          private String note = "";          private String note = "";
25            private String type = "";
26                    
27                    
28          public String getTime() {          public String getTime() {
# Line 70  public class DepartureBean implements Se Line 72  public class DepartureBean implements Se
72          }          }
73          public void setNote(String note) {          public void setNote(String note) {
74                  this.note = note;                  this.note = note;
75            }      
76            public String getType() {
77                    return type;
78            }
79            public void setType(String type) {
80                    this.type = type;
81          }          }
82                    
83                    
84          public String getLastUpdateString() {          
85                  String minutes = Resources.getSystem().getString(R.string.departurebean_minutes);          public String getLastUpdateString(Context cntx) {
86                  String unknown = Resources.getSystem().getString(R.string.departurebean_unknown);                  String minutes = cntx.getString(R.string.departurebean_minutes);
87                    String unknown = cntx.getString(R.string.departurebean_unknown);
88                  switch (lastUpdate.charAt(0)) {                  switch (lastUpdate.charAt(0)) {
89                  case '1':                  case '1':
90                          return "<3 " + minutes;                          return "<3 " + minutes;

Legend:
Removed from v.561  
changed lines
  Added in v.699

  ViewVC Help
Powered by ViewVC 1.1.20