splash functions

This commit is contained in:
2017-09-26 23:04:06 +03:00
parent 2e2a4ce55f
commit 970980c47a
18 changed files with 539 additions and 54 deletions

View File

@@ -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/";
}

View File

@@ -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";
}

View File

@@ -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();