Class ManagerExxtractorConnection

java.lang.Object
com.exxothermic.audioeverywheresdk.ManagerExxtractorConnection

public class ManagerExxtractorConnection extends Object
Class that will pro
Since:
12/24/14
  • Field Details

    • EXXTRACTOR_API_MANAGER_APP

      public static final String 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

      public String getCurrentExxtractorAddress()
    • getCurrentExxtractorVersion

      public String getCurrentExxtractorVersion()
    • getCurrentUserToken

      public String getCurrentUserToken()
    • getCurrentUserLevel

      public int getCurrentUserLevel()
    • getUrlEndpoint

      public String getUrlEndpoint(String ipAddress)
      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

      public void logOutCurrentUser(AudioEverywhereResponseHandler responseHandler)
      Method that will log out the current user from the network
    • scanNetworkForExxtractorsWithUserAndPassword

      public void scanNetworkForExxtractorsWithUserAndPassword(int scanTimeout, String user, String password, AudioEverywhereResponseHandler responseHandler)
    • getNeighborsInformation

      public void getNeighborsInformation(AudioEverywhereResponseHandler<String[]> handler)
    • getCurrentUserPermission

      public List<User.UserPermissions> getCurrentUserPermission()
    • createNewUser

      public void createNewUser(User toCreate, AudioEverywhereResponseHandler<User> handler)
    • rebootExxtractor

      public void rebootExxtractor(String ipAddress, AudioEverywhereResponseHandler handler)
    • getLogFromExxtractor

      public void getLogFromExxtractor(String ipAddress, AudioEverywhereResponseHandler<LogFile> handler)
    • 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

      public void saveLastConnectedServer(String targetVenueServer)
    • loadLastConnectedServer

      public String loadLastConnectedServer()