Class ManagerExxtractorConnection
java.lang.Object
com.exxothermic.audioeverywheresdk.ManagerExxtractorConnection
Class that will pro
- Since:
- 12/24/14
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Inner class which handles the jmdns events -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createNewUser
(User toCreate, AudioEverywhereResponseHandler<User> handler) int
void
getLogFromExxtractor
(String ipAddress, AudioEverywhereResponseHandler<LogFile> handler) void
void
getServerConfiguration
(String serverAddress, AudioEverywhereResponseHandler<ServerConfigInfo> handler) getUrlEndpoint
(String ipAddress) Method that will build the endpoint for a retrofit service and validate if should use http or httpsboolean
void
logOutCurrentUser
(AudioEverywhereResponseHandler responseHandler) Method that will log out the current user from the networkvoid
rebootExxtractor
(String ipAddress, AudioEverywhereResponseHandler handler) void
registerBroadcastReceiver
(android.content.BroadcastReceiver toRegister) Method that will register a broadcast receiver to listen when the application closes the session.void
saveLastConnectedServer
(String targetVenueServer) void
scanNetworkForExxtractorsWithUserAndPassword
(int scanTimeout, String user, String password, AudioEverywhereResponseHandler responseHandler) void
unregisterBroadcastReceiver
(android.content.BroadcastReceiver toUnregister) Method that unregister a broadcast receiver to stop receiving messages from the SDKvoid
updateServerConfiguration
(String serverAddress, ServerConfigInfo configuration, AudioEverywhereResponseHandler handler)
-
Field Details
-
EXXTRACTOR_API_MANAGER_APP
- See Also:
-
ONE_MINUTE_IN_MILIS
public static int ONE_MINUTE_IN_MILIS -
INACTIVITY_PERIOD_MINUTES
public static int INACTIVITY_PERIOD_MINUTES -
INACTIVITY_PERIOD_MILIS
public static int INACTIVITY_PERIOD_MILIS
-
-
Constructor Details
-
ManagerExxtractorConnection
public ManagerExxtractorConnection(android.content.Context context)
-
-
Method Details
-
isSessionOpen
public boolean isSessionOpen() -
getCurrentExxtractorAddress
-
getCurrentExxtractorVersion
-
getCurrentUserToken
-
getCurrentUserLevel
public int getCurrentUserLevel() -
getUrlEndpoint
Method that will build the endpoint for a retrofit service and validate if should use http or https- Parameters:
ipAddress
- that will contain the endpoint ip.- Returns:
- the URL to use on an endpoint with the protocol + IP + port
-
logOutCurrentUser
Method that will log out the current user from the network -
scanNetworkForExxtractorsWithUserAndPassword
public void scanNetworkForExxtractorsWithUserAndPassword(int scanTimeout, String user, String password, AudioEverywhereResponseHandler responseHandler) -
getNeighborsInformation
-
getCurrentUserPermission
-
createNewUser
-
rebootExxtractor
-
getLogFromExxtractor
-
updateServerConfiguration
public void updateServerConfiguration(String serverAddress, ServerConfigInfo configuration, AudioEverywhereResponseHandler handler) -
getServerConfiguration
public void getServerConfiguration(String serverAddress, AudioEverywhereResponseHandler<ServerConfigInfo> handler) -
registerBroadcastReceiver
public void registerBroadcastReceiver(android.content.BroadcastReceiver toRegister) Method that will register a broadcast receiver to listen when the application closes the session.- Parameters:
toRegister
-
-
unregisterBroadcastReceiver
public void unregisterBroadcastReceiver(android.content.BroadcastReceiver toUnregister) Method that unregister a broadcast receiver to stop receiving messages from the SDK- Parameters:
toUnregister
- the broadcast receiver that will be unregistered
-
saveLastConnectedServer
-
loadLastConnectedServer
-