-
Notifications
You must be signed in to change notification settings - Fork 328
/
Message.ts
52 lines (51 loc) · 1.24 KB
/
Message.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//MessageEntitySummary[] from Message
import MessageEntitySummary from "./MessageEntitySummary";
//Header[] from Message
import Header from "./Header";
export default class Message {
constructor(
id: string,
from: string,
to: string[],
cc: string[],
bcc: string[],
receivedDate: Date,
subject: string,
parts: MessageEntitySummary[],
headers: Header[],
mimeParseError: string,
relayError: string,
secureConnection: boolean,
hasHtmlBody: boolean,
hasPlainTextBody: boolean
) {
this.id = id;
this.from = from;
this.to = to;
this.cc = cc;
this.bcc = bcc;
this.receivedDate = receivedDate;
this.subject = subject;
this.parts = parts;
this.headers = headers;
this.mimeParseError = mimeParseError;
this.relayError = relayError;
this.secureConnection = secureConnection;
this.hasHtmlBody = hasHtmlBody;
this.hasPlainTextBody = hasPlainTextBody;
}
id: string;
from: string;
to: string[];
cc: string[];
bcc: string[];
receivedDate: Date;
subject: string;
parts: MessageEntitySummary[];
headers: Header[];
mimeParseError: string;
relayError: string;
secureConnection: boolean;
hasHtmlBody: boolean;
hasPlainTextBody: boolean;
}