2.获取直播聊天列表
<p><strong>简要描述:</strong></p>
<ul>
<li>获取聊天列表</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://192.168.0.111:8083/RichCloud/appLive/getLiveChat.do</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">apiKey</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>手机apikey</td>
</tr>
<tr>
<td style="text-align: left;">schoolId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>学校Id</td>
</tr>
<tr>
<td style="text-align: left;">liveId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>当前直播的Id</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>最新一次获取聊天内容的最大Id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"ResponseCode": 0,
"ResponseResult": "获取成功",
"ResponseObject": [
{
"id": 1,
"content": "嘤嘤嘤嘤",
"userId": 307,
"liveId": 47,
"createTime": 1540525016000,
"headImage": null,
"userName": "盛英江",
"remark": "打死"
},
{
"id": 2,
"content": "啊啊双方都",
"userId": 205,
"liveId": 47,
"createTime": 1540525053000,
"headImage": null,
"userName": "崔伟明",
"remark": "阿萨德"
},
{
"id": 3,
"content": "困难",
"userId": 307,
"liveId": 47,
"createTime": 1540538571000,
"headImage": "http://img-avatar.richx.cn/user/307/a1516971642822-1359368029.jpg",
"userName": "陶明月",
"remark": null
},
{
"id": 4,
"content": "可靠的monk ",
"userId": 38218,
"liveId": 47,
"createTime": 1540546147000,
"headImage": "http://img-avatar.richx.cn/user/38218/ios/15355490045461.jpg",
"userName": "崔维明",
"remark": null
},
{
"id": 5,
"content": "可靠的monk ",
"userId": 38218,
"liveId": 47,
"createTime": 1540546190000,
"headImage": "http://img-avatar.richx.cn/user/38218/ios/15355490045461.jpg",
"userName": "崔维明",
"remark": null
},
{
"id": 6,
"content": "可靠的monk ",
"userId": 38218,
"liveId": 47,
"createTime": 1540546193000,
"headImage": "http://img-avatar.richx.cn/user/38218/ios/15355490045461.jpg",
"userName": "崔维明",
"remark": null
},
{
"id": 7,
"content": "可靠的monk ",
"userId": 38218,
"liveId": 47,
"createTime": 1540546665000,
"headImage": "http://img-avatar.richx.cn/user/38218/ios/15355490045461.jpg",
"userName": "崔维明",
"remark": null
},
{
"id": 8,
"content": "咯路",
"userId": 38218,
"liveId": 47,
"createTime": 1540546987000,
"headImage": "http://img-avatar.richx.cn/user/38218/ios/15355490045461.jpg",
"userName": "崔维明",
"remark": null
}
]
}
附上实体类
public class LiveChat implements Serializable{
private static final long serialVersionUID = 1L;
private Integer id; //id
private String content; //聊天内容
private Integer userId; //聊天人Id
private Integer liveId; //当前的Id
private Date createTime; //发送时间
private String headImage; //评论人头像
private String userName; //评论人姓名
private String remark; //备注
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>