Commit 79dc8a81 by 霍志良

feat:消息类型-完成订单38

parent 5771fb70
......@@ -53,6 +53,7 @@ import com.yidianling.im.session.extension.CustomAttachSubScriptTime;
import com.yidianling.im.session.extension.CustomAttachTipMsg;
import com.yidianling.im.session.extension.CustomAttachment;
import com.yidianling.im.session.extension.CustomAttachmentBusinessCard;
import com.yidianling.im.session.extension.CustomAttachmentConfirmOrder;
import com.yidianling.im.session.extension.CustomAttachmentEvaluate;
import com.yidianling.im.session.extension.CustomAttachmentFilter;
import com.yidianling.im.session.extension.CustomAttachmentJumpToDaoYi;
......@@ -75,6 +76,7 @@ import com.yidianling.im.session.viewholder.MsgViewHolderAVChat;
import com.yidianling.im.session.viewholder.MsgViewHolderAssistantReceivedMoney;
import com.yidianling.im.session.viewholder.MsgViewHolderBusinessCard;
import com.yidianling.im.session.viewholder.MsgViewHolderChatTip;
import com.yidianling.im.session.viewholder.MsgViewHolderConfirmOrder;
import com.yidianling.im.session.viewholder.MsgViewHolderConsult;
import com.yidianling.im.session.viewholder.MsgViewHolderConsultCallStatus;
import com.yidianling.im.session.viewholder.MsgViewHolderConsultSubScribe;
......@@ -459,7 +461,7 @@ public class SessionHelper {
NimUIKit.registerMsgItemViewHolder(CustomAttachmentJumpToDaoYi.class, MsgViewHolderJumpToDaoYi.class);//跳转导医聊天窗口触发导医分配逻辑,TYPE=35
NimUIKit.registerMsgItemViewHolder(CustomAttachmentSwitchKeFuTips.class, MsgViewHolderSwitchKeFuTips.class);//客服转介需求,TYPE=40
NimUIKit.registerMsgItemViewHolder(CustomAttachmentFilter.class, MsgViewHolderUnknown.class);// 注册消息过滤器
NimUIKit.registerMsgItemViewHolder(CustomAttachmentConfirmOrder.class, MsgViewHolderConfirmOrder.class);//完成订单消息类型38
}
private static void setSessionListener() {
......
......@@ -135,6 +135,9 @@ public class CustomAttachParser implements MsgAttachmentParser {
case CustomAttachmentType.TYPE_FILTER_42:
attachment = new CustomAttachmentFilter();
break;
case CustomAttachmentType.TYPE_CONFIRM_ORDER://38 确认订单消息
attachment=new CustomAttachmentConfirmOrder();
break;
default:
attachment = new DefaultCustomAttachment();
break;
......
......@@ -15,7 +15,7 @@ public class CustomAttachmentConfirmOrder extends CustomAttachment{
public String servicetype;
public Long orderid;
CustomAttachmentConfirmOrder(int type) {
CustomAttachmentConfirmOrder() {
super(CustomAttachmentType.TYPE_CONFIRM_ORDER);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment