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
cc685a48
Commit
cc685a48
authored
Sep 03, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 服务中状态
parent
19878e9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
IMChatUtil.kt
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
+12
-8
No files found.
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
View file @
cc685a48
...
...
@@ -550,9 +550,10 @@ object IMChatUtil {
val
status
=
chatStatusBean
.
data
.
status
actionHandler
.
setDoctorStatus
(
status
)
actionHandler
.
setDoctorBusyNum
(
chatStatusBean
.
data
.
busyTotal
)
//1.在线,2.离线,3.忙碌 4咨询中, 5倾述中 6咨询前准备
if
(
status
==
2
)
{
//离线
tb
.
setMinTitleText
(
"离线"
)
//1.在线,2.离线,3.服务中 4咨询中, 5倾述中 6咨询前准备
when
(
status
)
{
3
->
{
//服务中
tb
.
setMinTitleText
(
"服务中"
)
tb
.
setMinTitleColor
(
ContextCompat
.
getColor
(
context
,
...
...
@@ -562,11 +563,12 @@ object IMChatUtil {
tb
.
setMinTitleDrawable
(
ContextCompat
.
getDrawable
(
context
,
R
.
drawable
.
im_background_chat_top_status_off_line
R
.
drawable
.
im_background_chat_top_status_online_server
)
)
}
else
if
(
status
==
3
)
{
//忙碌
tb
.
setMinTitleText
(
"忙碌"
)
}
2
->
{
//离线
tb
.
setMinTitleText
(
"离线"
)
tb
.
setMinTitleColor
(
ContextCompat
.
getColor
(
context
,
...
...
@@ -576,10 +578,11 @@ object IMChatUtil {
tb
.
setMinTitleDrawable
(
ContextCompat
.
getDrawable
(
context
,
R
.
drawable
.
im_background_chat_top_status_online_server
R
.
drawable
.
im_background_chat_top_status_off_line
)
)
}
else
{
//在线 1,3,6..
}
else
->
{
//在线 1
tb
.
setMinTitleText
(
"在线"
)
tb
.
setMinTitleColor
(
ContextCompat
.
getColor
(
...
...
@@ -594,6 +597,7 @@ object IMChatUtil {
)
)
}
}
initSystemMessage
(
chatStatusBean
.
data
.
promptRule
,
status
,
...
...
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