splash functions
This commit is contained in:
@@ -3,5 +3,5 @@ package ch.pizzalink.android.api;
|
||||
public class ApiConstants {
|
||||
public static final int API_READ_TIMEOUT = 30;
|
||||
public static final int API_CONNECT_TIMEOUT = 10;
|
||||
public static final String API_PATH = "";
|
||||
public static final String API_PATH = "http://www.pizzalink.ch/";
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package ch.pizzalink.android.api;
|
||||
|
||||
public class ApiEndPoints {
|
||||
private static final String PREFIX = "services/admin/index.php?route=services/news/";
|
||||
public static final String API_GET_ALL_CATEGORIES = PREFIX + "getAllCategories";
|
||||
|
||||
private static final String PREFIX = "pizza2/index.php?route=mobile/service/";
|
||||
|
||||
public static final String API_GET_ALL_CATEGORIES = PREFIX + "getAllCategories&is_mobile=1";
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package ch.pizzalink.android.api;
|
||||
|
||||
import ch.pizzalink.android.model.responseModel.CategoryResponseModel;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.Field;
|
||||
import retrofit2.http.FormUrlEncoded;
|
||||
@@ -13,6 +14,9 @@ import retrofit2.http.Query;
|
||||
|
||||
public interface ApiInterface {
|
||||
|
||||
@GET(ApiEndPoints.API_GET_ALL_CATEGORIES)
|
||||
Call<CategoryResponseModel> getAllCategories();
|
||||
|
||||
/*
|
||||
@GET(ApiEndPoints.API_GET_ALL_CATEGORIES)
|
||||
Call<CategoryListResponseModel> getAllCategories();
|
||||
|
||||
Reference in New Issue
Block a user