Android Open Source - Taekwondo-Time-Tracker-Android Api Model Purpose






From Project

Back to project page Taekwondo-Time-Tracker-Android.

License

The source code is released under:

Apache License

If you think the Android project Taekwondo-Time-Tracker-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.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.purpose;
// www.j a v  a2s . c  om
import com.hackbitstudios.taekwondo_time_tracker_android.api.ApiModel;

/**
 * Created by Robert on 9/1/2014.
 * This model defines a class that can be used to query the api for purposes
 */
public class ApiModelPurpose extends ApiModel {

    //region PRIVATE MEMBERS

    // This String is the model that needs to be invoked
    private final static String model_appointments = "api/v1/purposes";

    // The authentication token of the user
    private String auth_token;

    //endregion

    //region CTOR
    /* The ctor for ApiObjectPurpose
        _URI:: the uri to query at with no '/' at the end
        _auth_token:: the authentication token of the user */
    public ApiModelPurpose(String _uri, String _auth_token) {

        // Populate the parent
        super (_uri, model_appointments);

        // Populate the other fields
        auth_token = _auth_token;
    }
    //endregion

    //region PUBLIC FUNCTIONS

    // Gets the whole url to perform the query on
    @Override
    public String getURI (){
        return (super.getURI() + '?' + "access_token=" + auth_token).toString();
    }
    //endregion

}




Java Source Code List

com.hackbitstudios.taekwondo_time_tracker_android.ApplicationTest.java
com.hackbitstudios.taekwondo_time_tracker_android.MainActivity.java
com.hackbitstudios.taekwondo_time_tracker_android.PunchcardActivity.java
com.hackbitstudios.taekwondo_time_tracker_android.SettingsActivity.java
com.hackbitstudios.taekwondo_time_tracker_android.api.ApiDownloader.java
com.hackbitstudios.taekwondo_time_tracker_android.api.ApiModel.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.post.ApiDownloaderPost.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.post.ApiModelPost.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.purpose.ApiDownloaderPurpose.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.purpose.ApiModelPurpose.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.purpose.ApiObjectPurpose.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.stat.ApiDownloaderStat.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.stat.ApiModelStat.java
com.hackbitstudios.taekwondo_time_tracker_android.api.taekwondo.stat.ApiObjectStat.java