Skip to content

Reference

tilttek/session-scheduler

Every public type of the package, with its role. The types marked internal may change in any version.

Series and sessions

TypeRole
SessionSchedulerThe service: series, planning, sessions, attendance, substitutes, proposals and reminders.
SeriesThe schedule of a campaign: its first session, its rule, its game master, its players and the table's settings.
SessionOne session: its start, minutes, occurrence, status, substitute and replies.
SessionStatusPlanned, cancelled or held.
ReplyComing, absent, or absent later than the notice.
SessionQueryWhich sessions to read: of a series or of every series, in a window and a status.
DateProposalDates put to the members: for a new session or to replace one.
ReminderA reminder due for a session, and the members to remind.

Ports and stores

TypeRole
Contract\SessionStoreKeeps the series and sessions at a version, reads sessions by query and counts a member's sessions to come.
Contract\SessionObserverTold of the events of a series.
Contract\DateProposerPuts the dates of a proposal to the members.
Store\InMemorySessionStoreThe series and sessions in memory, for tests.

Events

TypeRole
Event\ScheduleEventEvery event: the series.
Event\SessionEventThe events of one session: the series and the session.
Event\SeriesCreatedA series was created.
Event\SeriesChangedA series was changed.
Event\DatesProposedDates were put to the members.
Event\SessionPlannedA session was planned or added.
Event\SessionRescheduledA session moved.
Event\SessionCancelledA session was cancelled.
Event\SessionHeldA session took place.
Event\AttendanceConfirmedA member is coming.
Event\AbsenceAnnouncedA player is absent.
Event\GameMasterAbsentThe game master who runs a session is absent.
Event\SubstituteAssignedA substitute runs a session, or the series' game master again.
Event\QuorumLostA session fell below the quorum.
Event\QuorumRestoredA session came back to the quorum.

Exceptions

TypeRole
Exception\SchedulerExceptionEvery exception of the library.
Exception\InvalidScheduleA value out of its shape or its bounds.
Exception\ScheduleRefusedA change the scheduler does not allow.
Exception\ScheduleNotFoundNo series or session has the identifier.
Exception\ScheduleConflictThe series or session changed since it was read.

Internal

TypeRole
Internal\IdentifierThe shape of an identifier, and lists of distinct members.
Internal\MomentInstants compared and written by their seconds since the epoch.