Class PairingAuthSuccessState
- java.lang.Object
-
- com.thecoderscorner.menu.remote.states.PairingAuthSuccessState
-
- All Implemented Interfaces:
RemoteConnectorState
public class PairingAuthSuccessState extends java.lang.Object implements RemoteConnectorState
-
-
Constructor Summary
Constructors Constructor Description PairingAuthSuccessState(RemoteConnectorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanSendCommandToRemote(MenuCommand command)called before any command is sent in order for the state to disallowvoidenterState()called when a state machine class becomes activevoidexitState(RemoteConnectorState nextState)called when a state machine class is deactivatedAuthStatusgetAuthenticationStatus()
-
-
-
Constructor Detail
-
PairingAuthSuccessState
public PairingAuthSuccessState(RemoteConnectorContext context)
-
-
Method Detail
-
enterState
public void enterState()
Description copied from interface:RemoteConnectorStatecalled when a state machine class becomes active- Specified by:
enterStatein interfaceRemoteConnectorState
-
exitState
public void exitState(RemoteConnectorState nextState)
Description copied from interface:RemoteConnectorStatecalled when a state machine class is deactivated- Specified by:
exitStatein interfaceRemoteConnectorState
-
getAuthenticationStatus
public AuthStatus getAuthenticationStatus()
- Specified by:
getAuthenticationStatusin interfaceRemoteConnectorState- Returns:
- the current authentication status as determined by the state.
-
canSendCommandToRemote
public boolean canSendCommandToRemote(MenuCommand command)
Description copied from interface:RemoteConnectorStatecalled before any command is sent in order for the state to disallow- Specified by:
canSendCommandToRemotein interfaceRemoteConnectorState- Parameters:
command- the command to check- Returns:
- true to send, false to suppress.
-
-