Android Open Source - SuTransPlus Polazak






From Project

Back to project page SuTransPlus.

License

The source code is released under:

GNU General Public License

If you think the Android project SuTransPlus 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 com.omegavesko.sutransplus;
/*w  w  w.j  a  va  2s.  c  o  m*/
/**
 * Created by omega_000 on 7/10/2014.
 */
public class Polazak
{
    static enum Day
    {
        RADNIDAN,
        VIKEND,
        SUBOTA,
        NEDELJA
    }

    int id;
    String linija;

    public String busInfo;
    public boolean odlazak;
    public boolean gradski;
    public Day day;


    Polazak() {}

    Polazak (String info, String line, boolean gradski, boolean odlazak, Day day)
    {
        this.busInfo = info;
        this.linija = line;
        this.gradski = gradski;
        this.odlazak = odlazak;
        this.day = day;
    }

    public String toString()
    {
        String returnString;

        if (odlazak) returnString = "Odlazak u ";
        else returnString = "Povratak u ";

        returnString += busInfo;
        returnString += " | Gradski: " + gradski;
        returnString+= " | Linija: " + linija;

        return returnString;
    }

    public int getID() { return this.id; }
    public void setID(int id) { this.id = id; }
}




Java Source Code List

com.omegavesko.sutransplus.ApplicationTest.java
com.omegavesko.sutransplus.DatabaseHandler.java
com.omegavesko.sutransplus.HomeActivityListAdapter.java
com.omegavesko.sutransplus.HomeActivity.java
com.omegavesko.sutransplus.LineActivityListAdapter.java
com.omegavesko.sutransplus.LineActivity.java
com.omegavesko.sutransplus.Linija.java
com.omegavesko.sutransplus.NetworkDialogFragment.java
com.omegavesko.sutransplus.Polazak.java