Commit 8d8537b8 by 霍志良

feat:im-灵犀2.0-用户进入聊天页面,用户离开聊天页面

parent 84ac13b2
......@@ -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;
......
......@@ -42,15 +42,11 @@ data class Relates(
var score:String?
)
data class UserIsIn(
var data: UserIsInPage,
var data: UserIsInPageData,
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
......@@ -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 UserIsInPageData(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())
......
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