add message@#type

This commit is contained in:
Gus Caplan
2016-10-17 21:24:16 -05:00
parent 62b93659e6
commit bd5540314b
3 changed files with 17 additions and 1 deletions

View File

@@ -32,6 +32,12 @@ class Message {
*/
this.id = data.id;
/**
* The type of the message
* @type {string}
*/
this.type = Constants.MessageTypes[data.type];
/**
* The content of the message
* @type {string}