Back to project page Taekwondo-Time-Tracker-Android.
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.
package com.hackbitstudios.taekwondo_time_tracker_android.api; //from w ww . j av a 2s.c o m /** * This class defines an abstract model that can be used to query the database */ public abstract class ApiModel { //region PRIVATE MEMBERS // The URI to access private String uri; // The function to access (after the .com (with no '/' at the end)) private String model; //endregion //region CTOR /* The ctor for the api model _URI:: the uri to query at model:: the function to access (after the .com)*/ public ApiModel (String _URI, String _model) { // Copy the values uri = _URI; model = _model; } //endregion //region PUBLIC FUNCTIONS // Gets the whole url to perform the query on public String getURI (){ return uri + '/' + model; } //endregion }