UserState

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

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
UserState.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Extensions

Extensions

extension (current: UserState)
def next(event: DrivingEvent, tracking: Option[Tracking]): Either[InvalidState, UserState]

Attributes

Returns

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

extension (event: DrivingEvent)
infix def canBeAppliedTo(current: Session): Boolean

Attributes

Returns

whether the event can be applied to the current Session.