export type MessageData = { accountId: number, contactUri: string, fromUri: string, toUri: string, body: string, contentType: string, } /** * This class describes the information and current status of a call. */ export default class Message { _accountId: number; _contactUri: string; _fromUri: string; _fromName: string; _fromNumber: string; _toUri: string; _body: string; _contentType: string; constructor({ accountId, contactUri, fromUri, toUri, body, contentType }: MessageData) { let fromNumber = null; let fromName = null; if (fromUri) { let match = fromUri.match(/"([^"]+)"