Class

UserInteractionManager

UserInteractionManager()

Provides the in-memory snapshot of student user state, along with methods to initialize and update it. When updating, UserInteraction documents are generated if state has changed since the last update.

Constructor

# new UserInteractionManager()

View Source api/user-interaction/UserInteractionManager.ts, line 29

Methods

# areDifferent()

Returns true if the two passed arrays (of strings) are different in some way.

View Source api/user-interaction/UserInteractionManager.ts, line 64

# buildASnapshot()

Create and return a snapshot data structure.

View Source api/user-interaction/UserInteractionManager.ts, line 35

# dailyUpdate()

Once a day, update the snapshot, and generate UserInteraction documents as appropriate.

View Source api/user-interaction/UserInteractionManager.ts, line 72

# initialize()

Build and save an in-memory snapshot. Run at system startup time.

View Source api/user-interaction/UserInteractionManager.ts, line 68

# setVisibility()

Returns an array of strings indicating the current visibilities for the user.

View Source api/user-interaction/UserInteractionManager.ts, line 54