Store Channel Messages in Maps

This commit is contained in:
Amish Shah
2016-08-19 21:11:40 +01:00
parent 97e16e6eed
commit 4f4ec3146b
6 changed files with 25 additions and 17 deletions

View File

@@ -3,6 +3,14 @@
* @interface
*/
class TextBasedChannel {
constructor() {
/**
* A Map containing the messages sent to this channel.
* @type {Map<String, Message>}
*/
this.messages = new Map();
}
/**
* Send a message to this channel
* @param {String} content the content to send