UNPKG

@tnwx/commons

Version:

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

28 lines (27 loc) 818 B
import { InMsg } from '../in/InMsg'; export declare abstract class OutMsg { protected toUserName: string; protected fromUserName: string; protected createTime: number; /** * 被动响应消息类型 * 1:text 文本消息 * 2:image 图片消息 * 3:voice 语音消息 * 4:video 视频消息 * 5:music 音乐消息 * 6:news 图文消息 */ protected msgType: string; constructor(inMsg: InMsg); toXml(): string; now(): number; 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); }