Android Open Source - EsTrains Train Item






From Project

Back to project page EsTrains.

License

The source code is released under:

GNU General Public License

If you think the Android project EsTrains listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package es.trains.model;
/*w ww  .  jav  a2s .c  o  m*/
import android.database.Cursor;

/**
 *
 * @author Diego Pino <dpino@igalia.com>
 *
 */
public class TrainItem {

    private String code;

    private String departure;

    private String arrive;

    private String length;

    public TrainItem() {

    }

    public TrainItem(Cursor cursor) {
        this(cursor.getString(1), cursor.getString(2), cursor.getString(3),
                cursor.getString(4));
    }

    public TrainItem(String code, String arrive, String departure, String length) {
        this.code = code;
        this.departure = departure;
        this.arrive = arrive;
        this.length = length;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }

    public String getArrive() {
        return arrive;
    }

    public void setArrive(String arrive) {
        this.arrive = arrive;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

}




Java Source Code List

es.trains.activities.ListTrainResults.java
es.trains.activities.SearchTimetable.java
es.trains.model.Timetable.java
es.trains.model.TrainItem.java
es.trains.provider.EsTrainProvider.java
es.trains.provider.Timetable.java
es.trains.provider.Train.java
es.trains.services.EsTrainXHR.java
es.trains.views.TrainAdapterView.java