import { Input } from '../Input' import { InputType } from '../Input' export class Send extends Input { private to: string[]; private subject: string; private content: string; private cc: string[] = []; private bcc: string[] = []; constructor(value: string, to: string[], subject: string, content: string) { super(InputType.Send, 'send'); this.to = to; this.subject = subject; this.content = content; } setCc(cc: string[]): Send { this.cc = cc; return this; } setBcc(bcc: string[]): Send { this.bcc = bcc; return this; } get To(): string[] { return this.to; } get Subject(): string { return this.subject; } get Cc(): string[] { return this.cc; } get Bcc(): string[] { return this.bcc; } toJSON(): any { return { type: this.Type, name: this.Name, value: this.Value, importance: this.Importance, attributes: { to: this.to, subject: this.subject, content: this.content, cc: this.cc, bcc: this.bcc } } } }