d
This commit is contained in:
53
app/src/main/assets/Document.htm
Normal file
53
app/src/main/assets/Document.htm
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css">
|
||||
<title>Document</title>
|
||||
<meta name="Generator" content="Cocoa HTML Writer">
|
||||
<meta name="CocoaVersion" content="1894.6">
|
||||
<style type="text/css">
|
||||
li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px 'Songti SC'; color: #000000}
|
||||
ul.ul1 {list-style-type: disc}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<ul class="ul1">
|
||||
<li class="li1">七月七尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务,七月七会按照本隐私权政策的规定使用和披露您的个人信息。但七月七将以高度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,七月七不会将这些信息对外披露或向第三方提供。七月七会不时更新本隐私权政策。 您在同意七月七服务使用协议之时,即视为您已经同意本隐私权政策全部内容。本隐私权政策属于七月七服务使用协议不可分割的一部分。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">1. 适用范围<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">a) 在您注册七月七帐号时,您根据七月七要求提供的个人注册信息;<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">b) 在您使用七月七网络服务,或访问七月七平台网页时,七月七自动接收并记录的您的浏览器和计算机上的信息,包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据;<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">c)七月七通过合法途径从商业伙伴处取得的用户个人数据。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">您了解并同意,以下信息不适用本隐私权政策:<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">a) 您在使用七月七平台提供的搜索服务时输入的关键字信息;<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">b) 七月七收集到的您在七月七发布的有关信息数据,包括但不限于参与活动、成交信息及评价详情;<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">c) 违反法律规定或违反七月七规则行为及家捷送已对您采取的措施。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">2. 信息使用<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">a)七月七不会向任何无关第三方提供、出售、出租、分享或交易您的个人信息,除非事先得到您的许可,或该第三方和七月七(含七月七关联公司)单独或共同为您提供服务,且在该服务结束后,其将被禁止访问包括其以前能够访问的所有这些资料。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">b)七月七亦不允许任何第三方以任何手段收集、编辑、出售或者无偿传播您的个人信息。任何七月七平台用户如从事上述活动,一经发现,七月七有权立即终止与该用户的服务协议。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">c) 为服务用户的目的,七月七可能通过使用您的个人信息,向您提供您感兴趣的信息,包括但不限于向您发出产品和服务信息,或者与七月七合作伙伴共享信息以便他们向您发送有关其产品和服务的信息(后者需要您的事先同意)。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">3. 信息披露<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">在如下情况下,七月七将依据您的个人意愿或法律的规定全部或部分的披露您的个人信息:<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">a) 经您事先同意,向第三方披露;<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">b) 为提供您所要求的产品和服务,而必须和第三方分享您的个人信息;<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">c) 根据法律的有关规定,或者行政或司法机构的要求,向第三方或者行政、司法机构披露;</li>
|
||||
<li class="li1">d) 如您出现违反中国有关法律、法规或者七月七服务协议或相关规则的情况,需要向第三方披露; <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">e) 如您是适格的知识产权投诉人并已提起投诉,应被投诉人要求,向被投诉人披露,以便双方处理可能的权利纠纷;</li>
|
||||
<li class="li1">f) 在七月七平台上创建的某一交易中,如交易任何一方履行或部分履行了交易义务并提出信息披露请求的,七月七有权决定向该用户提供其交易对方的联络方式等必要信息,以促成交易的完成或纠纷的解决。 <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">g) 其它七月七根据法律、法规或者网站政策认为合适的披露。 <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">4. 信息存储和交换 <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">七月七收集的有关您的信息和资料将保存在七月七及(或)其关联公司的服务器上,这些信息和资料可能传送至您所在国家、地区或七月七收集信息和资料所在地的境外并在境外被访问、存储和展示。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">5. Cookie的使用<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">a) 在您未拒绝接受cookies的情况下,七月七会在您的计算机上设定或取用cookies,以便您能登录或使用依赖于cookies的七月七平台服务或功能。七月七使用cookies可为您提供更加周到的个性化服务,包括推广服务。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">b) 您有权选择接受或拒绝接受cookies。您可以通过修改浏览器设置的方式拒绝接受cookies。但如果您选择拒绝接受cookies,则您可能无法登录或使用依赖于cookies的七月七网络服务或功能。<span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">c) 通过七月七所设cookies所取得的有关信息,将适用本政策。 <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">6. 信息安全 <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">a) 七月七帐号均有安全保护功能,请妥善保管您的用户名及密码信息。七月七将通过对用户密码进行加密等安全措施确保您的信息不丢失,不被滥用和变造。尽管有前述安全措施,但同时也请您注意在信息网络上不存在“完善的安全措施”。 <span class="Apple-converted-space"> </span></li>
|
||||
<li class="li1">b) 在使用七月七网络服务进行网上交易时,您不可避免的要向交易对方或潜在的交易对方披露自己的个人信息,如联络方式或者邮政地址。请您妥善保护自己的个人信息,仅在必要的情形下向他人提供。如您发现自己的个人信息泄密,尤其是七月七用户名及密码发生泄露,请您立即联络七月七客服,以便七月七采取相应措施。</li>
|
||||
<li class="li1">7.本隐私政策的更改</li>
|
||||
<li class="li1">(a)如果决定更改隐私政策,我们会在本政策中、本公司网站中以及我们认为适当的位置发布这些更改,以便您了解我们如何收集、使用您的个人信息,哪些人可以访问这些信息,以及在什么情况下我们会透露这些信息。</li>
|
||||
<li class="li1">(b)本公司保留随时修改本政策的权利,因此请经常查看。如对本政策作出重大更改,本公司会通过网站通知的形式告知。</li>
|
||||
<li class="li1">方披露自己的个人信息,如联络方式或者邮</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -18,8 +18,8 @@ public class ConversationActivity extends BaseActivity {
|
||||
setContentView(R.layout.activity_conversation);
|
||||
mTitleBar = findViewById(R.id.title_bar);
|
||||
initNormalBack();
|
||||
String num = getIntent().getStringExtra("num");
|
||||
String private_id = getIntent().getStringExtra("private_id");
|
||||
mTitleBar.setTitle("抖音昵称"+"**");
|
||||
getSupportFragmentManager().beginTransaction().replace(R.id.container,new QuestionsFragment()).commit();
|
||||
getSupportFragmentManager().beginTransaction().replace(R.id.container,new QuestionsFragment(private_id)).commit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,18 +19,17 @@ import com.fenghoo.seven.base.BaseTreeFragment;
|
||||
import com.fenghoo.seven.main.find.adapter.QuestionsAdapter;
|
||||
import com.fenghoo.seven.main.find.entity.QuestionsEntity;
|
||||
import com.fenghoo.seven.main.find.entity.commonWordsBean;
|
||||
import com.fenghoo.seven.main.find.entity.privateListBean;
|
||||
import com.fenghoo.seven.main.find.entity.privateChatBean;
|
||||
import com.fenghoo.seven.main.find.mvp.contract.QuestionsContract;
|
||||
import com.fenghoo.seven.main.find.mvp.presenter.QuestionsPresenterImpl;
|
||||
import com.fenghoo.seven.main.kehu.Bean.CustomerListBean;
|
||||
import com.fenghoo.seven.main.kehu.activity.ShowAty;
|
||||
import com.fenghoo.seven.okgonet.HttpConstants;
|
||||
import com.fenghoo.seven.okgonet.NetApi;
|
||||
import com.fenghoo.seven.okgonet.Observer;
|
||||
import com.fenghoo.seven.utils.ToastUtils;
|
||||
import com.fenghoo.seven.utils.WidgetTools;
|
||||
import com.fenghoo.seven.utils.checkVersionsUtils.ProfileSpUtils;
|
||||
import com.fenghoo.seven.widget.PastEditText;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
@@ -61,6 +60,11 @@ public class QuestionsFragment extends BaseTreeFragment<QuestionsContract.View,
|
||||
private RecyclerView reply_rcey;
|
||||
private boolean flag=false;
|
||||
private List<commonWordsBean.ResultBean.DataBean> data;
|
||||
private String private_id;
|
||||
|
||||
public QuestionsFragment(String private_id){
|
||||
this.private_id=private_id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void widgetClick(View v) {
|
||||
@@ -153,14 +157,44 @@ public class QuestionsFragment extends BaseTreeFragment<QuestionsContract.View,
|
||||
@Override
|
||||
protected void initData() {
|
||||
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
paramsPost.put("uid", ProfileSpUtils.getInstance().getUserProfie().getData().getUuid());
|
||||
paramsPost.put("private_id", private_id);
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppDouyin_privateChat).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
privateChatBean.ResultBean result = JsonUtils.fromJson(body, privateChatBean.class).getResult();
|
||||
if(result.getSuccess()==0){
|
||||
List<QuestionsEntity> question = new ArrayList<>();
|
||||
List<privateChatBean.ResultBean.DataBean> data = result.getData();
|
||||
for(int i=0;i<data.size();i++){
|
||||
QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
questionsEntity.setIs_self(data.get(i).getIs_self());//表明是自己发送的
|
||||
questionsEntity.setMsg(data.get(i).getContent());//设置问题内容
|
||||
question.add(questionsEntity);
|
||||
}
|
||||
mAdapter.upDate(question);
|
||||
mLayoutManager.scrollToPosition(mAdapter.getEList().size() - 1);
|
||||
}else {
|
||||
ToastUtils.showToast(getActivity(),result.getMsg());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void onError(Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//初始化
|
||||
List<QuestionsEntity> question = new ArrayList<>();
|
||||
QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
questionsEntity.setIs_self(0);//表明是自己发送的
|
||||
questionsEntity.setMsg("您好,很高兴为您服务。");//设置问题内容
|
||||
question.add(questionsEntity);
|
||||
mAdapter.upDate(question);
|
||||
// List<QuestionsEntity> question = new ArrayList<>();
|
||||
// QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
// questionsEntity.setIs_self(0+"");//表明是自己发送的
|
||||
// questionsEntity.setMsg("您好,很高兴为您服务。");//设置问题内容
|
||||
// question.add(questionsEntity);
|
||||
// mAdapter.upDate(question);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,10 +220,55 @@ public class QuestionsFragment extends BaseTreeFragment<QuestionsContract.View,
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
//发送消息
|
||||
getPresenter().sendMsg();
|
||||
// getPresenter().sendMsg();
|
||||
//获取输入
|
||||
String input = getInput();
|
||||
List<QuestionsEntity> question = new ArrayList<>();
|
||||
QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
questionsEntity.setIs_self("0");//表明是自己发送的
|
||||
questionsEntity.setMsg(input);//设置问题内容
|
||||
question.add(questionsEntity);
|
||||
upDataAdd(question);
|
||||
final HttpParams paramsPost = new HttpParams();
|
||||
paramsPost.put("uid", ProfileSpUtils.getInstance().getUserProfie().getData().getUuid());
|
||||
paramsPost.put("private_id", private_id);
|
||||
paramsPost.put("content", input);
|
||||
new NetApi().getPostData(paramsPost, HttpConstants.URi_device_AppDouyin_replyChat).subscribe(new Observer<Response>() {
|
||||
@Override
|
||||
public void onNext(Response response) {
|
||||
String body = (String) response.body();
|
||||
privateChatBean.ResultBean result = JsonUtils.fromJson(body, privateChatBean.class).getResult();
|
||||
if(result.getSuccess()==0){
|
||||
List<QuestionsEntity> question = new ArrayList<>();
|
||||
List<privateChatBean.ResultBean.DataBean> data = result.getData();
|
||||
|
||||
// for(int i=0;i<data.size();i++){
|
||||
// QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
// questionsEntity.setIs_self(data.get(i).getIs_self());//表明是自己发送的
|
||||
// questionsEntity.setMsg(data.get(i).getContent());//设置问题内容
|
||||
// question.add(questionsEntity);
|
||||
// }
|
||||
// privateChatBean.ResultBean.DataBean dataBean = data.get(data.size() - 1);
|
||||
// QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
// questionsEntity.setIs_self(dataBean.getIs_self());//表明是自己发送的
|
||||
// questionsEntity.setMsg(dataBean.getContent());//设置问题内容
|
||||
// question.add(questionsEntity);
|
||||
// upDataAdd(question);
|
||||
mLayoutManager.scrollToPosition(mAdapter.getEList().size() - 1);
|
||||
|
||||
}else {
|
||||
ToastUtils.showToast(getActivity(),result.getMsg());
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void onError(Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
@@ -65,7 +65,7 @@ public class QuestionsAdapter extends BaseRecycleAdapter<QuestionsEntity, Questi
|
||||
|
||||
@Override
|
||||
protected int getCustomItemViewType(int position) {
|
||||
return 1 == mEList.get(position).getIs_self() ? ITEM_TYPE_RIGHT : ITEM_TYPE_LEFT;
|
||||
return 0 == Integer.parseInt(mEList.get(position).getIs_self()) ? ITEM_TYPE_RIGHT : ITEM_TYPE_LEFT;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -19,11 +19,41 @@ public class QuestionsEntity {
|
||||
*/
|
||||
|
||||
private String msg;
|
||||
private int is_self;
|
||||
private String is_self;
|
||||
private int reply_type;
|
||||
private List<DataEntity> data;
|
||||
private String question;
|
||||
|
||||
public String getMessage_type() {
|
||||
return message_type;
|
||||
}
|
||||
|
||||
public void setMessage_type(String message_type) {
|
||||
this.message_type = message_type;
|
||||
}
|
||||
|
||||
private String message_type;//1:系统消息,5:图片表情包,7:文字消息及自带表情,27:相册图片
|
||||
|
||||
public String getUser_head() {
|
||||
return user_head;
|
||||
}
|
||||
|
||||
public void setUser_head(String user_head) {
|
||||
this.user_head = user_head;
|
||||
}
|
||||
|
||||
private String user_head;//店员头像
|
||||
|
||||
public String getNick_img() {
|
||||
return nick_img;
|
||||
}
|
||||
|
||||
public void setNick_img(String nick_img) {
|
||||
this.nick_img = nick_img;
|
||||
}
|
||||
|
||||
private String nick_img;//抖音用户头像
|
||||
|
||||
public String getQuestion() {
|
||||
return question;
|
||||
}
|
||||
@@ -40,11 +70,11 @@ public class QuestionsEntity {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getIs_self() {
|
||||
public String getIs_self() {
|
||||
return is_self;
|
||||
}
|
||||
|
||||
public void setIs_self(int is_self) {
|
||||
public void setIs_self(String is_self) {
|
||||
this.is_self = is_self;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.fenghoo.seven.main.find.entity;
|
||||
|
||||
/**
|
||||
* Time: 2020/9/1
|
||||
* Author: jianbo
|
||||
* Description:
|
||||
*/
|
||||
public class askBean {
|
||||
|
||||
/**
|
||||
* msg : 绑定微信成功!
|
||||
* success : 0
|
||||
*/
|
||||
|
||||
private String msg;
|
||||
private int success;
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(int success) {
|
||||
this.success = success;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
package com.fenghoo.seven.main.find.entity;
|
||||
|
||||
import com.fenghoo.seven.test.BaseModel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Time: 2020/9/1
|
||||
* Author: jianbo
|
||||
* Description:
|
||||
*/
|
||||
public class privateChatBean extends BaseModel {
|
||||
|
||||
/**
|
||||
* result : {"msg":"获取成功","data":[{"use_dy_uid":"93021087403","from_id":"109408381544","user_head":"","if_read":"1","nick_img":"","to_id":"93021087403","message_type":"1","id":"6844003801914000000","time":"2020-06-30 13:10:10","dy_uid":"109408381544","is_self":"1","content":"你们已成为好友"}],"success":0}
|
||||
* status : 0
|
||||
*/
|
||||
|
||||
private ResultBean result;
|
||||
private int status;
|
||||
|
||||
public ResultBean getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(ResultBean result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public static class ResultBean {
|
||||
/**
|
||||
* msg : 获取成功
|
||||
* data : [{"use_dy_uid":"93021087403","from_id":"109408381544","user_head":"","if_read":"1","nick_img":"","to_id":"93021087403","message_type":"1","id":"6844003801914000000","time":"2020-06-30 13:10:10","dy_uid":"109408381544","is_self":"1","content":"你们已成为好友"}]
|
||||
* success : 0
|
||||
*/
|
||||
|
||||
private String msg;
|
||||
private int success;
|
||||
private List<DataBean> data;
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(int success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public List<DataBean> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataBean> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataBean {
|
||||
/**
|
||||
* use_dy_uid : 93021087403
|
||||
* from_id : 109408381544
|
||||
* user_head :
|
||||
* if_read : 1
|
||||
* nick_img :
|
||||
* to_id : 93021087403
|
||||
* message_type : 1
|
||||
* id : 6844003801914000000
|
||||
* time : 2020-06-30 13:10:10
|
||||
* dy_uid : 109408381544
|
||||
* is_self : 1
|
||||
* content : 你们已成为好友
|
||||
*/
|
||||
|
||||
private String use_dy_uid;
|
||||
private String from_id;
|
||||
private String user_head;
|
||||
private String if_read;
|
||||
private String nick_img;
|
||||
private String to_id;
|
||||
private String message_type;
|
||||
private String id;
|
||||
private String time;
|
||||
private String dy_uid;
|
||||
private String is_self;
|
||||
private String content;
|
||||
|
||||
public String getUse_dy_uid() {
|
||||
return use_dy_uid;
|
||||
}
|
||||
|
||||
public void setUse_dy_uid(String use_dy_uid) {
|
||||
this.use_dy_uid = use_dy_uid;
|
||||
}
|
||||
|
||||
public String getFrom_id() {
|
||||
return from_id;
|
||||
}
|
||||
|
||||
public void setFrom_id(String from_id) {
|
||||
this.from_id = from_id;
|
||||
}
|
||||
|
||||
public String getUser_head() {
|
||||
return user_head;
|
||||
}
|
||||
|
||||
public void setUser_head(String user_head) {
|
||||
this.user_head = user_head;
|
||||
}
|
||||
|
||||
public String getIf_read() {
|
||||
return if_read;
|
||||
}
|
||||
|
||||
public void setIf_read(String if_read) {
|
||||
this.if_read = if_read;
|
||||
}
|
||||
|
||||
public String getNick_img() {
|
||||
return nick_img;
|
||||
}
|
||||
|
||||
public void setNick_img(String nick_img) {
|
||||
this.nick_img = nick_img;
|
||||
}
|
||||
|
||||
public String getTo_id() {
|
||||
return to_id;
|
||||
}
|
||||
|
||||
public void setTo_id(String to_id) {
|
||||
this.to_id = to_id;
|
||||
}
|
||||
|
||||
public String getMessage_type() {
|
||||
return message_type;
|
||||
}
|
||||
|
||||
public void setMessage_type(String message_type) {
|
||||
this.message_type = message_type;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(String time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public String getDy_uid() {
|
||||
return dy_uid;
|
||||
}
|
||||
|
||||
public void setDy_uid(String dy_uid) {
|
||||
this.dy_uid = dy_uid;
|
||||
}
|
||||
|
||||
public String getIs_self() {
|
||||
return is_self;
|
||||
}
|
||||
|
||||
public void setIs_self(String is_self) {
|
||||
this.is_self = is_self;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ public class QuestionsPresenterImpl extends MvpBasePresenter<QuestionsContract.V
|
||||
String input = getView().getInput();
|
||||
List<QuestionsEntity> question = new ArrayList<>();
|
||||
QuestionsEntity questionsEntity = new QuestionsEntity();
|
||||
questionsEntity.setIs_self(1);//表明是自己发送的
|
||||
questionsEntity.setIs_self("1");//表明是自己发送的
|
||||
questionsEntity.setMsg(input);//设置问题内容
|
||||
question.add(questionsEntity);
|
||||
getView().upDataAdd(question);
|
||||
|
||||
@@ -38,7 +38,8 @@ public class FindFragmenttwo extends MobanFragment {
|
||||
@Override
|
||||
public void enterCusDetail(privateListBean.ResultBean.DataBean item) {
|
||||
//进入会话页
|
||||
ShowAty.ConversationActivity(getActivity());
|
||||
ShowAty.ConversationActivity(getActivity(),item.getPrivate_id());
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -69,8 +69,9 @@ public class ShowAty {
|
||||
}
|
||||
|
||||
|
||||
public static void ConversationActivity(Context ctx) {
|
||||
public static void ConversationActivity(Context ctx,String private_id) {
|
||||
Intent i = new Intent(ctx, ConversationActivity.class);
|
||||
i.putExtra("private_id",private_id);
|
||||
ctx.startActivity(i);
|
||||
}
|
||||
|
||||
|
||||
@@ -103,6 +103,17 @@ public class HttpConstants {
|
||||
* 回复评论
|
||||
*/
|
||||
public static String URi_device_AppDouyin_replyComment = URiBase + "/device/AppDouyin/replyComment";
|
||||
|
||||
/**
|
||||
* 私聊页面
|
||||
*/
|
||||
public static String URi_device_AppDouyin_privateChat = URiBase + "/device/AppDouyin/privateChat";
|
||||
|
||||
/**
|
||||
* 私聊回复
|
||||
*/
|
||||
public static String URi_device_AppDouyin_replyChat = URiBase + "/device/AppDouyin/replyChat";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user