import { BaseMsg } from '../BaseMsg' ; author Javen
 *  copyright description export 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 , fromUserName , createTime , msgType ) { super ( ) ; this . toUserName = toUserName ; this . fromUserName = fromUserName ; this . createTime = createTime ; this . msgType = msgType ; } public get getToUserName ( ) : string { return this . toUserName ; } public set setToUserName ( toUserName ) { this . toUserName = toUserName ; } public get getFromUserName ( ) : string { return this . fromUserName ; } public set setFromUserName ( fromUserName ) { this . fromUserName = fromUserName ; } public get getCreateTime ( ) : number { return this . createTime ; } public set setCreateTime ( createTime ) { this . createTime = createTime ; } public get getMsgType ( ) : string { return this . msgType ; } public set setMsgType ( msgType ) { this . msgType = msgType ; } public get getAgentId ( ) : string { return this . agentId ; } public set setAgentId ( agentId ) { this . agentId = agentId ; } }