AngularJS Service for storing instructor-mode states.
Members
(private, inner) previousInstructorState :Object
Stored previous instructor state object.
- Source:
Type:
-
Object
(private, inner) currentInstructorState :Object
Stored current instructor state object.
- Source:
Type:
-
Object
Methods
(static) getStates() → {InstructorStateObject}
Get previous and current instructor states.
- Source:
Returns:
- Type:
-
InstructorStateObject
(static) updateStates(state)
Update stored instructor state with a new "current" state and cycle the existing stored current state to "previous".
- Source:
Parameters:
Name | Type | Description |
---|---|---|
state |
Object
|
A new instructor state object to set as current. |
(static) getSessionGroupId() → {number}
Get session group ID from module:instructorService~currentInstructorState
- Source:
Returns:
- Type:
-
number
A session group ID