mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-23 16:19:08 +03:00
15 lines
257 B
JavaScript
15 lines
257 B
JavaScript
|
|
||
|
const User = require("./user")
|
||
|
|
||
|
module.exports = class Message {
|
||
|
|
||
|
|
||
|
constructor(content, author = new User(), time = new Date().getTime()) {
|
||
|
|
||
|
|
||
|
this.content = content;
|
||
|
this.author = author;
|
||
|
this.time = time;
|
||
|
|
||
|
}
|
||
|
}
|