-
Notifications
You must be signed in to change notification settings - Fork 2
Frontend Initial State Design (Current)
Stephanie Chan edited this page Feb 17, 2018
·
18 revisions
Initial state design chat:
- connected: whether a user is connected to the chat or not auth:
- error: error message
- authenticatedUser: boolean for when a user is authenticated
- authenticatedCounsellor: boolean for when a counsellor
- role: indicate counsellor or user
- success: success message counsellor:
- error: If there are any counsellor related errors present, the value is true
- success: success message rooms:
- room:
- title: The name of the group chat (Do we need this?)
- humans: the user/counsellor pair in this chat
- messages: A list of message objects activeRoom:
- room:
- title: The name of the group chat (Do we need this?)
- humans: the user/counsellor pair in this chat
- messages: A list of message objects counsellor:
- counsellor: counsellor object
- students: list of students
- error: error message
- success: success message user:
- user: user object
- error: error message
- success: success message smssettings:
- sms: sms settings object
- error: errors pertainng to sms settings
- success: success message