10 lines
257 B
JavaScript
10 lines
257 B
JavaScript
class TextMessage {
|
|
public TextMessage(chatRoom, userPeer, message, timestamp) {
|
|
this.chatRoom = chatRoom;
|
|
this.userPeer = userPeer;
|
|
this.message = message;
|
|
this.timestamp = timestamp;
|
|
}
|
|
}
|
|
|
|
export default TextMessage; |