List of usage examples for com.google.gson.reflect TypeToken TypeToken
@SuppressWarnings("unchecked") protected TypeToken()
From source file:abtlibrary.utils.as24ApiClient.api.FavoriteVehiclesApi.java
License:Apache License
/** * (asynchronously)/* ww w. j a v a 2s . co m*/ * * @param userId (required) * @param skip (optional) * @param take (optional) * @param filter (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ public com.squareup.okhttp.Call gETpublicV41UsersUseridFavoritevehiclesAsync(Integer userId, Integer skip, Integer take, String filter, final ApiCallback<ResponseMessageCollectionListFavoriteVehicle> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void update(long bytesRead, long contentLength, boolean done) { callback.onDownloadProgress(bytesRead, contentLength, done); } }; progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { @Override public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { callback.onUploadProgress(bytesWritten, contentLength, done); } }; } com.squareup.okhttp.Call call = gETpublicV41UsersUseridFavoritevehiclesCall(userId, skip, take, filter, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageCollectionListFavoriteVehicle>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.FavoriteVehiclesApi.java
License:Apache License
/** * // w w w . j a v a 2 s . com * * @param userId (required) * @return ApiResponse<ResponseMessageCollectionListFavoriteVehicle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageCollectionListFavoriteVehicle> gETpublicV41UsersUseridFavoritevehiclesCountWithHttpInfo( Integer userId) throws ApiException { com.squareup.okhttp.Call call = gETpublicV41UsersUseridFavoritevehiclesCountCall(userId, null, null); Type localVarReturnType = new TypeToken<ResponseMessageCollectionListFavoriteVehicle>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.FavoriteVehiclesApi.java
License:Apache License
/** * (asynchronously)//from www .j av a 2s . c o m * * @param userId (required) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ public com.squareup.okhttp.Call gETpublicV41UsersUseridFavoritevehiclesCountAsync(Integer userId, final ApiCallback<ResponseMessageCollectionListFavoriteVehicle> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void update(long bytesRead, long contentLength, boolean done) { callback.onDownloadProgress(bytesRead, contentLength, done); } }; progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { @Override public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { callback.onUploadProgress(bytesWritten, contentLength, done); } }; } com.squareup.okhttp.Call call = gETpublicV41UsersUseridFavoritevehiclesCountCall(userId, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageCollectionListFavoriteVehicle>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * /* w w w .j a v a 2s . c om*/ * * @return ApiResponse<ResponseMessageMasterData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageMasterData> gETpublicV41MasterdataWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = gETpublicV41MasterdataCall(null, null); Type localVarReturnType = new TypeToken<ResponseMessageMasterData>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * (asynchronously)//w ww . j a v a2 s .c o m * * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ public com.squareup.okhttp.Call gETpublicV41MasterdataAsync( final ApiCallback<ResponseMessageMasterData> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void update(long bytesRead, long contentLength, boolean done) { callback.onDownloadProgress(bytesRead, contentLength, done); } }; progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { @Override public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { callback.onUploadProgress(bytesWritten, contentLength, done); } }; } com.squareup.okhttp.Call call = gETpublicV41MasterdataCall(progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageMasterData>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * //from ww w. ja v a 2s .c o m * * @return ApiResponse<ResponseMessageListMake> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageListMake> gETpublicV41MasterdataMakesWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = gETpublicV41MasterdataMakesCall(null, null); Type localVarReturnType = new TypeToken<ResponseMessageListMake>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * (asynchronously)/*from w w w .j a v a2 s.c om*/ * * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ public com.squareup.okhttp.Call gETpublicV41MasterdataMakesAsync( final ApiCallback<ResponseMessageListMake> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void update(long bytesRead, long contentLength, boolean done) { callback.onDownloadProgress(bytesRead, contentLength, done); } }; progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { @Override public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { callback.onUploadProgress(bytesWritten, contentLength, done); } }; } com.squareup.okhttp.Call call = gETpublicV41MasterdataMakesCall(progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageListMake>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * //w ww . j av a 2s. co m * * @return ApiResponse<ResponseMessageListModel> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageListModel> gETpublicV41MasterdataModelsWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = gETpublicV41MasterdataModelsCall(null, null); Type localVarReturnType = new TypeToken<ResponseMessageListModel>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * (asynchronously)//from w w w .j a v a 2s .com * * @param callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ public com.squareup.okhttp.Call gETpublicV41MasterdataModelsAsync( final ApiCallback<ResponseMessageListModel> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { progressListener = new ProgressResponseBody.ProgressListener() { @Override public void update(long bytesRead, long contentLength, boolean done) { callback.onDownloadProgress(bytesRead, contentLength, done); } }; progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { @Override public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { callback.onUploadProgress(bytesWritten, contentLength, done); } }; } com.squareup.okhttp.Call call = gETpublicV41MasterdataModelsCall(progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageListModel>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.MasterDataApi.java
License:Apache License
/** * /*from www . java2 s.c o m*/ * * @return ApiResponse<ResponseMessageDictionaryStringObject> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageDictionaryStringObject> gETpublicV41MasterdataSettingsWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = gETpublicV41MasterdataSettingsCall(null, null); Type localVarReturnType = new TypeToken<ResponseMessageDictionaryStringObject>() { }.getType(); return apiClient.execute(call, localVarReturnType); }