48hr.email/domain/mail.js

16 lines
280 B
JavaScript
Raw Permalink Normal View History

2023-11-01 11:48:19 +01:00
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