Class ProfileRetrofitWebService
java.lang.Object
com.exxothermic.audioeverywheresdk.webservices.api.exxtractorapi.retrofit.ProfileRetrofitWebService
- All Implemented Interfaces:
ProfileWebService
,WebService
Class that will hold the web service for the profile of the venue
- Since:
- 4/12/2021
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getListenerProfile
(String profile_leid, String secretKey, WebServiceResponseHandler responseHandler) Method that will retrieve a listener profile for the current venue, represented by json structurevoid
getListenerProfilesMenu
(WebServiceResponseHandler responseHandler) Method that will retrieve the menu with all the listener profiles for the current venue, represented by json structurevoid
getProfile
(WebServiceResponseHandler<Profile> handler) Method that will retrieve the profile of the current venuevoid
updateProfile
(String token, Profile profile, WebServiceResponseHandler<retrofit.client.Response> handler) Method that will create or update the mobile app profile for the current venue, represented by json structure
-
Constructor Details
-
ProfileRetrofitWebService
-
-
Method Details
-
getProfile
Method that will retrieve the profile of the current venue- Specified by:
getProfile
in interfaceProfileWebService
- Parameters:
handler
- the handler to manage the status of the request
-
getListenerProfilesMenu
public void getListenerProfilesMenu(WebServiceResponseHandler responseHandler) throws retrofit.RetrofitError Method that will retrieve the menu with all the listener profiles for the current venue, represented by json structure- Specified by:
getListenerProfilesMenu
in interfaceProfileWebService
- Throws:
retrofit.RetrofitError
-
getListenerProfile
public void getListenerProfile(String profile_leid, String secretKey, WebServiceResponseHandler responseHandler) Method that will retrieve a listener profile for the current venue, represented by json structure- Specified by:
getListenerProfile
in interfaceProfileWebService
- Parameters:
secretKey
- the secretKey to authenticate and get the listener profileresponseHandler
- the response that will retrieve the default listener profile for the current venue
-
updateProfile
public void updateProfile(String token, Profile profile, WebServiceResponseHandler<retrofit.client.Response> handler) Method that will create or update the mobile app profile for the current venue, represented by json structure- Specified by:
updateProfile
in interfaceProfileWebService
- Parameters:
token
- the token to authenticate and post the Profile Configprofile
- the mobile app profile object to update or create in the serverhandler
- the handler to manage the request status
-