Android Open Source - NYU-BusTracker-Android Downloader Helper






From Project

Back to project page NYU-BusTracker-Android.

License

The source code is released under:

Apache License

If you think the Android project NYU-BusTracker-Android 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.nyubustracker.helpers;
//  w  ww .j  a  v a2  s. co  m
import org.json.JSONException;
import org.json.JSONObject;

import java.io.IOException;

public interface DownloaderHelper {
    static final String TRANSLOC_URL = "https://transloc-api-1-2.p.mashape.com";
    static final String QUERY = Downloader.makeQuery("agencies", "72", "UTF-8");
    static final String STOPS_URL = TRANSLOC_URL + "/stops.json?" + QUERY;
    static final String ROUTES_URL = TRANSLOC_URL + "/routes.json?" + QUERY;
    static final String SEGMENTS_URL = TRANSLOC_URL + "/segments.json?" + QUERY;
    static final String VEHICLES_URL = TRANSLOC_URL + "/vehicles.json?" + QUERY;
    static final String AMAZON_URL = "https://s3.amazonaws.com/nyubustimes/1.0/";
    static final String VERSION_URL = AMAZON_URL + "version.json";

    public abstract void parse(JSONObject jsonObject) throws JSONException, IOException;
}




Java Source Code List

com.nyubustracker.NYUBusTrackerApplication.java
com.nyubustracker.activities.MainActivity.java
com.nyubustracker.adapters.StopAdapter.java
com.nyubustracker.adapters.TimeAdapter.java
com.nyubustracker.helpers.BusDownloaderHelper.java
com.nyubustracker.helpers.BusManager.java
com.nyubustracker.helpers.DownloaderHelper.java
com.nyubustracker.helpers.Downloader.java
com.nyubustracker.helpers.MultipleOrientationSlidingDrawer.java
com.nyubustracker.helpers.RouteDownloaderHelper.java
com.nyubustracker.helpers.SegmentDownloaderHelper.java
com.nyubustracker.helpers.StopDownloaderHelper.java
com.nyubustracker.helpers.TimeDownloaderHelper.java
com.nyubustracker.helpers.VersionDownloaderHelper.java
com.nyubustracker.models.Bus.java
com.nyubustracker.models.Route.java
com.nyubustracker.models.Stop.java
com.nyubustracker.models.Time.java