List of usage examples for com.google.gson.reflect TypeToken TypeToken
@SuppressWarnings("unchecked") protected TypeToken()
From source file:abtlibrary.utils.as24ApiClient.api.MyListingApi.java
License:Apache License
/** * (asynchronously)//from w ww .j av a 2s. co m * * @param vehicleId (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 pUTpublicV41MylistingVehiclesVehicleidDeactivateAsync(Integer vehicleId, final ApiCallback<ResponseMessageMyListingVehicleReadOnly> 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 = pUTpublicV41MylistingVehiclesVehicleidDeactivateCall(vehicleId, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageMyListingVehicleReadOnly>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.MyListingApi.java
License:Apache License
/** * // w w w .ja v a 2s .com * * @param vehicleId (required) * @return ApiResponse<ResponseMessageMyListingVehicleReadOnly> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageMyListingVehicleReadOnly> pUTpublicV41MylistingVehiclesVehicleidImagesWithHttpInfo( Integer vehicleId) throws ApiException { com.squareup.okhttp.Call call = pUTpublicV41MylistingVehiclesVehicleidImagesCall(vehicleId, null, null); Type localVarReturnType = new TypeToken<ResponseMessageMyListingVehicleReadOnly>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.MyListingApi.java
License:Apache License
/** * (asynchronously)//from www.j a v a2 s . co m * * @param vehicleId (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 pUTpublicV41MylistingVehiclesVehicleidImagesAsync(Integer vehicleId, final ApiCallback<ResponseMessageMyListingVehicleReadOnly> 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 = pUTpublicV41MylistingVehiclesVehicleidImagesCall(vehicleId, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageMyListingVehicleReadOnly>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.MyListingApi.java
License:Apache License
/** * /*from w w w .j av a 2 s . co m*/ * * @param vehicleId (required) * @param filenames (required) * @return ApiResponse<ResponseMessageMyListingVehicleReadOnly> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageMyListingVehicleReadOnly> pUTpublicV41MylistingVehiclesVehicleidImagesSortWithHttpInfo( Integer vehicleId, List<String> filenames) throws ApiException { com.squareup.okhttp.Call call = pUTpublicV41MylistingVehiclesVehicleidImagesSortCall(vehicleId, filenames, null, null); Type localVarReturnType = new TypeToken<ResponseMessageMyListingVehicleReadOnly>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.MyListingApi.java
License:Apache License
/** * (asynchronously)//from w w w .j a v a2s.c o m * * @param vehicleId (required) * @param filenames (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 pUTpublicV41MylistingVehiclesVehicleidImagesSortAsync(Integer vehicleId, List<String> filenames, final ApiCallback<ResponseMessageMyListingVehicleReadOnly> 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 = pUTpublicV41MylistingVehiclesVehicleidImagesSortCall(vehicleId, filenames, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageMyListingVehicleReadOnly>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.NewCarApi.java
License:Apache License
/** * //w ww. ja v a 2 s .com * * @param skip (required) * @param take (required) * @param filter (optional) * @return ApiResponse<ResponseMessageCollectionListNewVehicle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageCollectionListNewVehicle> gETpublicV41ConfiguratorNewvehiclesWithHttpInfo( Integer skip, Integer take, String filter) throws ApiException { com.squareup.okhttp.Call call = gETpublicV41ConfiguratorNewvehiclesCall(skip, take, filter, null, null); Type localVarReturnType = new TypeToken<ResponseMessageCollectionListNewVehicle>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.NewCarApi.java
License:Apache License
/** * (asynchronously)//from ww w . ja v a2 s. c o m * * @param skip (required) * @param take (required) * @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 gETpublicV41ConfiguratorNewvehiclesAsync(Integer skip, Integer take, String filter, final ApiCallback<ResponseMessageCollectionListNewVehicle> 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 = gETpublicV41ConfiguratorNewvehiclesCall(skip, take, filter, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageCollectionListNewVehicle>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.NewCarApi.java
License:Apache License
/** * // www . ja v a 2s . com * * @param filter (optional) * @return ApiResponse<ResponseMessageCount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageCount> gETpublicV41ConfiguratorNewvehiclesCountWithHttpInfo(String filter) throws ApiException { com.squareup.okhttp.Call call = gETpublicV41ConfiguratorNewvehiclesCountCall(filter, null, null); Type localVarReturnType = new TypeToken<ResponseMessageCount>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
From source file:abtlibrary.utils.as24ApiClient.api.NewCarApi.java
License:Apache License
/** * (asynchronously)//from w w w . j a v a2 s .com * * @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 gETpublicV41ConfiguratorNewvehiclesCountAsync(String filter, final ApiCallback<ResponseMessageCount> 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 = gETpublicV41ConfiguratorNewvehiclesCountCall(filter, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken<ResponseMessageCount>() { }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; }
From source file:abtlibrary.utils.as24ApiClient.api.NewCarApi.java
License:Apache License
/** * /* www .j a v a 2 s.c om*/ * * @param newVehicleId (required) * @return ApiResponse<ResponseMessageNewVehicle> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<ResponseMessageNewVehicle> gETpublicV41ConfiguratorNewvehiclesNewvehicleidWithHttpInfo( Integer newVehicleId) throws ApiException { com.squareup.okhttp.Call call = gETpublicV41ConfiguratorNewvehiclesNewvehicleidCall(newVehicleId, null, null); Type localVarReturnType = new TypeToken<ResponseMessageNewVehicle>() { }.getType(); return apiClient.execute(call, localVarReturnType); }