Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
ec5de0fb
Commit
ec5de0fb
authored
Jun 21, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:im-灵犀2.0-您想要咨询下列哪类问题
parent
5455aa49
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+3
-0
CustomAttachParser.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
+3
-0
MsgViewHolderLingxiWhichQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
+1
-0
No files found.
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
ec5de0fb
...
...
@@ -44,6 +44,7 @@ import com.yidianling.im.session.extension.CustomAttachConsult;
import
com.yidianling.im.session.extension.CustomAttachConsultCallStatus
;
import
com.yidianling.im.session.extension.CustomAttachConsultPerfectData
;
import
com.yidianling.im.session.extension.CustomAttachConsultSubScript
;
import
com.yidianling.im.session.extension.CustomAttachLingxiWhichQuestion
;
import
com.yidianling.im.session.extension.CustomAttachModifyTime
;
import
com.yidianling.im.session.extension.CustomAttachParser
;
import
com.yidianling.im.session.extension.CustomAttachPleaseSubscribeConsultDate
;
...
...
@@ -86,6 +87,7 @@ import com.yidianling.im.session.viewholder.MsgViewHolderCustomerServiceCard;
import
com.yidianling.im.session.viewholder.MsgViewHolderDefCustom
;
import
com.yidianling.im.session.viewholder.MsgViewHolderEvaluate
;
import
com.yidianling.im.session.viewholder.MsgViewHolderJumpToDaoYi
;
import
com.yidianling.im.session.viewholder.MsgViewHolderLingxiWhichQuestion
;
import
com.yidianling.im.session.viewholder.MsgViewHolderModifyTime
;
import
com.yidianling.im.session.viewholder.MsgViewHolderOrderAlreadyDone
;
import
com.yidianling.im.session.viewholder.MsgViewHolderOrderStatus
;
...
...
@@ -465,6 +467,7 @@ public class SessionHelper {
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentFilter
.
class
,
MsgViewHolderUnknown
.
class
);
// 注册消息过滤器
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentConfirmOrder
.
class
,
MsgViewHolderConfirmOrder
.
class
);
//确认完成订单消息类型38
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentOrderAlreadyDone
.
class
,
MsgViewHolderOrderAlreadyDone
.
class
);
//已完成订单消息类型39
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachLingxiWhichQuestion
.
class
,
MsgViewHolderLingxiWhichQuestion
.
class
);
//灵犀2.0-您想要咨询下列哪些问题
}
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachParser.java
View file @
ec5de0fb
...
...
@@ -141,6 +141,9 @@ public class CustomAttachParser implements MsgAttachmentParser {
case
CustomAttachmentType
.
TYPE_ORDER_ALREADY_DONE
:
//39 订单已完成
attachment
=
new
CustomAttachmentOrderAlreadyDone
();
break
;
case
CustomAttachmentType
.
TYPE_LINGXI_WHICH_QUESTION
:
//灵犀2.0-您想要咨询下列哪些问题
attachment
=
new
CustomAttachLingxiWhichQuestion
();
break
;
default
:
attachment
=
new
DefaultCustomAttachment
();
break
;
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
View file @
ec5de0fb
...
...
@@ -54,5 +54,6 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
@Override
public
void
onItemClick
(
@NotNull
LingxiWhichQuestionBean
string
,
int
position
)
{
ToastUtil
.
toastShort
(
"点击了"
+
position
);
//todo发送消息
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment