UNPKG

@tnwx/commons

Version:

TTNWX 微信系开发脚手架之公共模块

35 lines (34 loc) 1.06 kB
import { BaseMsg } from '../BaseMsg'; /** * @author Javen * @copyright javendev@126.com * @description 接收消息抽象类 */ export declare abstract class InMsg extends BaseMsg { protected toUserName: string; protected fromUserName: string; protected createTime: number; protected agentId: string; /** * 消息类型 * 1:text 文本消息 * 2:image 图片消息 * 3:voice 语音消息 * 4:video 视频消息 * 5:location 地址位置消息 * 6:link 链接消息 * 7:event 事件 */ protected msgType: string; constructor(toUserName: string, fromUserName: string, createTime: number, msgType: string); get getToUserName(): string; set setToUserName(toUserName: string); get getFromUserName(): string; set setFromUserName(fromUserName: string); get getCreateTime(): number; set setCreateTime(createTime: number); get getMsgType(): string; set setMsgType(msgType: string); get getAgentId(): string; set setAgentId(agentId: string); }