io.github.positionpal.location.domain.Session
See theSession companion trait
object Session
Attributes
Members list
Type members
Classlikes
final case class Snapshot(scope: Scope, userState: UserState, lastSampledLocation: Option[SampledLocation])
A snapshot of the user's state and tracking information.
A snapshot of the user's state and tracking information.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
def from(groupId: GroupId, userId: UserId, state: UserState, lastSample: Option[SampledLocation], tracking: Option[Tracking]): Session
Creates a new Session for the given groupId - userId initially in the Inactive state with no tracking information.
Creates a new Session for the given groupId - userId initially in the Inactive state with no tracking information.
Value parameters
- groupId
-
The unique identifier of the group.
- userId
-
The unique identifier of the user.
Attributes
Extractor method for a Session, allowing pattern matching to deconstruct it into its components.
Extensions
Extensions
extension (s: Session)
In this article