public class StateMachineSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
LOG_TAG |
Constructor and Description |
---|
StateMachineSession(ConnectionStateMachine stateMachine,
IBlaubotDevice ownDevice,
ServerConnectionManager serverConnectionManager) |
protected static final java.lang.String LOG_TAG
public StateMachineSession(ConnectionStateMachine stateMachine, IBlaubotDevice ownDevice, ServerConnectionManager serverConnectionManager)
public CensusMessage getLastCensusMessage()
public PronouncePrinceAdminMessage getLastPronouncePrinceAdminMessage()
public ConnectionStateMachine getConnectionStateMachine()
public BlaubotChannelManager getChannelManager()
public BlaubotConnectionManager getConnectionManager()
public BlaubotBeaconService getBeaconService()
public java.util.List<IBlaubotAdapter> getAdapters()
public ServerConnectionManager getServerConnectionManager()
public boolean isServerUniqueDeviceId(java.lang.String uniqueDeviceId)
uniqueDeviceId
- the uid to checkpublic boolean isOwnDevice(java.lang.String uniqueId)
uniqueId
- the unique id to checkpublic boolean isGreaterThanOurDevice(IBlaubotDevice blaubotDevice)
blaubotDevice
- the blaubot device to checkpublic IBlaubotDevice getOwnDevice()
public ConnectionStateMachineConfig getConnectionStateMachineConfigForDevice(IBlaubotDevice device)
device
- the device to get the config for