mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2025-07-02 23:17:09 +02:00
15 lines
280 B
JavaScript
15 lines
280 B
JavaScript
class Mail {
|
|
constructor(to, from, date, subject, uid) {
|
|
this.to = to
|
|
this.from = from
|
|
this.date = date
|
|
this.subject = subject
|
|
this.uid = uid
|
|
}
|
|
|
|
static create(to, from, date, subject, uid) {
|
|
return new Mail(to, from, date, subject, uid)
|
|
}
|
|
}
|
|
|
|
module.exports = Mail
|