Interface ServerConfigRetrofitApi
public interface ServerConfigRetrofitApi
Class that will implement the server config API for any exxtractor
- Since:
- 1/8/15
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getExxtractorServerConfigInfo
(String token, retrofit.Callback<ServerConfigInfo> handler) Method that will get the current exxtractor data from the selected exxtractorvoid
setExxtractorServerConfigInfo
(String token, ServerConfigInfo serverConfigInfo, retrofit.Callback<retrofit.client.Response> handler) Method that will update the server configuration for a given exxtractor
-
Method Details
-
setExxtractorServerConfigInfo
@PUT("/exxtractor/api/v2/data") void setExxtractorServerConfigInfo(@Query("token") String token, @Body ServerConfigInfo serverConfigInfo, retrofit.Callback<retrofit.client.Response> handler) Method that will update the server configuration for a given exxtractor- Parameters:
token
- the token that will authenticate the current requestserverConfigInfo
- the information that will be updatedhandler
- the handler for the status of the request
-
getExxtractorServerConfigInfo
@GET("/exxtractor/api/v2/data") void getExxtractorServerConfigInfo(@Query("token") String token, retrofit.Callback<ServerConfigInfo> handler) Method that will get the current exxtractor data from the selected exxtractor- Parameters:
token
- the token used to authenticate the requesthandler
- handler that will manage the request status
-