import { MessageType } from '../../enums'; /** * postMessage消息通信项 * * @author chitanda * @date 2021-06-06 16:06:57 * @export * @class WinMessageItem */ export class WinMessageItem { /** * 消息类型 * * @author chitanda * @date 2021-06-10 14:06:23 * @type {MessageType} */ type: MessageType = MessageType.未知; /** * 数据类型 * * @author chitanda * @date 2021-06-10 14:06:57 * @type {string} */ dataType!: string; /** * 上下文 * * @author chitanda * @date 2021-06-06 16:06:01 * @type {*} */ context?: any = null; /** * 参数 * * @author chitanda * @date 2021-06-06 16:06:13 * @type {*} */ params?: any = null; /** * 数据 * * @author chitanda * @date 2021-06-06 16:06:50 * @type {*} */ data?: any = null; /** * Creates an instance of WinMessageItem. * * @author chitanda * @date 2021-06-06 16:06:32 * @param {WinMessageItem} data */ constructor(data: WinMessageItem) { Object.assign(this, data); } }