tjc-sdk
Version:
TIANJI IM SDK
2 lines (1 loc) • 482 B
JavaScript
import t from"./messageContent.js";import{MessageContentType as s}from"./messageContentType.js";class e extends t{static TYPING_TEXT=0;static TYPING_VOICE=1;static TYPING_CAMERA=2;static TYPING_LOCATION=3;static TYPING_FILE=4;typingType=e.TYPING_TEXT;constructor(t){super(s.Typing),this.typingType=t}digest(){return this.content}encode(){let t=super.encode();return t.content=this.typingType+"",t}decode(t){super.decode(t),this.typingType=parseInt(t.content)}}export{e as default};