Android Open Source - GRTRealtime Route






From Project

Back to project page GRTRealtime.

License

The source code is released under:

MIT License

If you think the Android project GRTRealtime 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.lappdance.grtrealtime.model;
/*from w ww  .ja v a2 s.  c o  m*/
import android.graphics.Color;

import com.google.gson.annotations.SerializedName;

public class Route implements Comparable<Route> {
    @SerializedName("RouteId")
    int mId;

    @SerializedName("ShortName")
    String mShortName;

    @SerializedName("Color")
    String mColorValue;

    @SerializedName("RouteNameHtml")
    String mRouteName;

    @SerializedName("OrderBy")
    String mSortKey;

    public int getId() {
        return mId;
    }

    public String getShortName() {
        return mShortName;
    }

    public int getColor() {
        return Color.parseColor("#" + mColorValue);
    }

    public String getDisplayName() {
        return mRouteName;
    }

    @Override
    public int compareTo(Route another) {
        return mSortKey.compareTo(another.mSortKey);
    }
}




Java Source Code List

com.lappdance.grtrealtime.ApplicationTest.java
com.lappdance.grtrealtime.MapActivity.java
com.lappdance.grtrealtime.model.RouteTest.java
com.lappdance.grtrealtime.model.Route.java