packagecom.yidianling.im.session.extension;importcom.alibaba.fastjson.JSONObject;/** * 添加预约时间 * Created by harvie on 2017/1/10. */publicclassCustomAttachSubScriptTimeextendsCustomAttachment{privateStringTITLE="title";privateStringtitle;publicCustomAttachSubScriptTime(){super(CustomAttachmentType.ADD_SUBSCRIPT_TIME);}publicCustomAttachSubScriptTime(Stringtitle){super(CustomAttachmentType.ADD_SUBSCRIPT_TIME);this.title=title;}@OverrideprotectedvoidparseData(JSONObjectdata){title=data.getString(TITLE);}@OverrideprotectedJSONObjectpackData(){JSONObjectdata=newJSONObject();data.put(TITLE,title);returndata;}}