Package velox.api.layer1
Interface Layer1ApiAdminAdapter
- All Superinterfaces:
Layer1ApiAdminListener
- All Known Subinterfaces:
Layer1ApiAdapter
Provides default empty implementations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonConnectionLost(DisconnectionReason reason, String message) Connection to server lost.default voidConnection to server restored.default voidonLoginFailed(LoginFailedReason reason, String message) Failed to login with specified credentialsdefault voidSuccessful login.default voidonSystemTextMessage(String message, SystemTextMessageType messageType) Passes the message into Bookmap and shows it as a popup.default voidonUserMessage(Object data) Send an upstream event.
-
Method Details
-
onLoginFailed
Description copied from interface:Layer1ApiAdminListenerFailed to login with specified credentials- Specified by:
onLoginFailedin interfaceLayer1ApiAdminListener- Parameters:
reason- reason codemessage- test message associated with login fail (may be null)
-
onLoginSuccessful
default void onLoginSuccessful()Description copied from interface:Layer1ApiAdminListenerSuccessful login.- Specified by:
onLoginSuccessfulin interfaceLayer1ApiAdminListener
-
onConnectionLost
Description copied from interface:Layer1ApiAdminListenerConnection to server lost. Provider can call this method multiple times in sequence if the reason was changed (i.e. fromDisconnectionReason.NO_INTERNETtoDisconnectionReason.FATAL)- Specified by:
onConnectionLostin interfaceLayer1ApiAdminListener- Parameters:
reason- reason codemessage- text message associated with login disconnection (may be null)
-
onConnectionRestored
default void onConnectionRestored()Description copied from interface:Layer1ApiAdminListenerConnection to server restored. A provider should call it only if it previously invokedLayer1ApiAdminListener.onConnectionLost(DisconnectionReason, String)- Specified by:
onConnectionRestoredin interfaceLayer1ApiAdminListener
-
onSystemTextMessage
Description copied from interface:Layer1ApiAdminListenerPasses the message into Bookmap and shows it as a popup. It is suitable for 1-time notifications, but for the general case take a look at the notifications API -Layer1ApiSoundAlertMessage- Specified by:
onSystemTextMessagein interfaceLayer1ApiAdminListener- Parameters:
message- message itselfmessageType- message type- See Also:
-
onUserMessage
Description copied from interface:Layer1ApiAdminListenerSend an upstream event. Allows incorporating arbitrary functionality into protocol- Specified by:
onUserMessagein interfaceLayer1ApiAdminListener- Parameters:
data- Message content
-