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
8d8537b8
Commit
8d8537b8
authored
Jun 26, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:im-灵犀2.0-用户进入聊天页面,用户离开聊天页面
parent
84ac13b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
MsgViewHolderLingxiWhichQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
+0
-2
LingxiWhichQuestionBean.kt
m-im/src/main/java/com/yidianling/im/session/viewholder/bean/LingxiWhichQuestionBean.kt
+1
-6
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+1
-2
No files found.
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
View file @
8d8537b8
...
...
@@ -25,8 +25,6 @@ import com.yidianling.im.session.viewholder.bean.AnswerBean;
import
com.yidianling.im.session.viewholder.bean.AnswersItem
;
import
com.yidianling.im.session.viewholder.bean.LingxiAnswerBean
;
import
com.yidianling.im.session.viewholder.bean.QuestionItemBean
;
import
com.yidianling.im.session.viewholder.bean.UserIsInPage
;
import
com.yidianling.im.session.viewholder.bean.UserIsInPageData
;
import
com.yidianling.nimbase.common.ui.recyclerview.adapter.BaseMultiItemFetchLoadAdapter
;
import
com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase
;
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/bean/LingxiWhichQuestionBean.kt
View file @
8d8537b8
...
...
@@ -42,15 +42,11 @@ data class Relates(
var
score
:
String
?
)
data class
UserIsIn
(
var
data
:
UserIsInPage
,
var
data
:
UserIsInPage
Data
,
var
fromUid
:
String
,
var
noticeType
:
String
,
var
toUid
:
String
)
data class
UserIsInPage
(
var
noticeType
:
String
,
var
data
:
UserIsInPageData
)
data class
UserIsInPageData
(
var
content
:
String
)
\ No newline at end of file
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
8d8537b8
...
...
@@ -65,7 +65,6 @@ import com.yidianling.im.helper.IMChatUtil;
import
com.yidianling.im.http.ImRetrofitApi
;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.session.viewholder.bean.UserIsIn
;
import
com.yidianling.im.session.viewholder.bean.UserIsInPage
;
import
com.yidianling.im.session.viewholder.bean.UserIsInPageData
;
import
com.yidianling.nimbase.api.UIKitOptions
;
import
com.yidianling.nimbase.api.model.main.CustomPushContentProvider
;
...
...
@@ -1398,7 +1397,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
*
* */
private
void
userIsInPage
(
String
noticeType
,
String
content
,
String
fromUid
,
String
toUid
)
{
String
str
=
new
Gson
().
toJson
(
new
UserIsIn
(
new
UserIsInPage
(
noticeType
,
new
UserIsInPageData
(
content
)
),
fromUid
,
noticeType
,
toUid
));
String
str
=
new
Gson
().
toJson
(
new
UserIsIn
(
new
UserIsInPage
Data
(
content
),
fromUid
,
noticeType
,
toUid
));
RequestBody
body
=
RequestBody
.
create
(
MediaType
.
parse
(
"application/json; charset=utf-8"
),
str
);
Disposable
subscribe
=
ImRetrofitApi
.
Companion
.
getImRetrofitApi
().
lingxiSendNotice
(
body
)
.
compose
(
RxUtils
.
INSTANCE
.
resultJavaData
())
...
...
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