UserState

io.github.positionpal.location.domain.UserState
See theUserState companion object
enum UserState

The user state information.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Active extends UserState

The user is online and is continuously sending location updates.

The user is online and is continuously sending location updates.

Attributes

case Inactive extends UserState

The user is not sending location updates.

The user is not sending location updates.

Attributes

case Routing extends UserState

The user is actively routing to a destination.

The user is actively routing to a destination.

Attributes

case SOS extends UserState

The user requested help.

The user requested help.

Attributes

case Warning extends UserState

User behavior flagged as suspicious by system monitoring, requiring review. No help request detected.

User behavior flagged as suspicious by system monitoring, requiring review. No help request detected.

Attributes

Value members

Concrete methods

def next(event: DrivingEvent, tracking: Option[Tracking]): Either[InvalidState, UserState]
Extension method from UserState

Attributes

Returns

the next state of a user given the event that occurred.