Interface ReceiverConfRetrofitApi
public interface ReceiverConfRetrofitApi
- Since:
- 8/5/23
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getReceiverConf
(String receiver_id, String secretKey, retrofit.Callback<ReceiverConf> handler) Method that will retrieve the receiver config file for the current venue, represented by json structurevoid
updateReceiver
(String token, ReceiverConf receiver, APIRetrofitCallback<retrofit.client.Response> handler) Method that will create or update the receiver config file for the current venue, represented by json structure
-
Method Details
-
getReceiverConf
@GET("/controller/api/v3/listener-profiles/receiver/{receiver_id}") void getReceiverConf(@Path("receiver_id") String receiver_id, @Header("Authorization") String secretKey, retrofit.Callback<ReceiverConf> handler) Method that will retrieve the receiver config file for the current venue, represented by json structure- Parameters:
secretKey
- the secret key to authenticate and get the Receiver Configreceiver_id
- the id to get a specific Receiver Confighandler
- the handler to manage the request status
-
updateReceiver
@POST("/controller/api/v3/listener-profiles/receiver") void updateReceiver(@Header("x-access-tokens") String token, @Body ReceiverConf receiver, APIRetrofitCallback<retrofit.client.Response> handler) Method that will create or update the receiver config file for the current venue, represented by json structure- Parameters:
token
- the token to authenticate and post the Receiver Configreceiver
- the receiver object to update or create the Receiver Config in the serverhandler
- the handler to manage the request status
-