类 HistoryMessageApi
java.lang.Object
com.easemob.im.api.HistoryMessageApi
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明inthistoryMessage(String time) 获取历史消息记录 你可以从服务端获取用户发送的历史消息的记录。okhttp3.CallhistoryMessageAsync(String time, ApiCallback<EMGetHistoryMessageResult> _callback) 获取历史消息记录 (asynchronously) 你可以从服务端获取用户发送的历史消息的记录。okhttp3.CallhistoryMessageCall(String time, ApiCallback _callback) Build call for historyMessage获取历史消息记录 你可以从服务端获取用户发送的历史消息的记录。voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
构造器详细资料
-
HistoryMessageApi
public HistoryMessageApi() -
HistoryMessageApi
-
-
方法详细资料
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
historyMessageCall
Build call for historyMessage- 参数:
time- 历史消息记录查询的起始时间。UTC 时间,使用 ISO8601 标准,格式为 yyyyMMddHH。例如 time 为 2018112717,则表示查询 2018 年 11 月 27 日 17 时至 2018 年 11 月 27 日 18 时期间的历史消息。若海外集群为 UTC 时区,需要根据自己所在的时区进行时间转换。 (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
historyMessage
获取历史消息记录 你可以从服务端获取用户发送的历史消息的记录。单次请求获取从指定起始时间开始一小时内的发送的历史消息记录。查询历史消息记录时存在一定延时,无法实时获取。过期的历史消息记录无法获取。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_historical.html- 参数:
time- 历史消息记录查询的起始时间。UTC 时间,使用 ISO8601 标准,格式为 yyyyMMddHH。例如 time 为 2018112717,则表示查询 2018 年 11 月 27 日 17 时至 2018 年 11 月 27 日 18 时期间的历史消息。若海外集群为 UTC 时区,需要根据自己所在的时区进行时间转换。 (required)- 返回:
- EMGetHistoryMessageResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
historyMessageWithHttpInfo
public ApiResponse<EMGetHistoryMessageResult> historyMessageWithHttpInfo(String time) throws ApiException 获取历史消息记录 你可以从服务端获取用户发送的历史消息的记录。单次请求获取从指定起始时间开始一小时内的发送的历史消息记录。查询历史消息记录时存在一定延时,无法实时获取。过期的历史消息记录无法获取。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_historical.html- 参数:
time- 历史消息记录查询的起始时间。UTC 时间,使用 ISO8601 标准,格式为 yyyyMMddHH。例如 time 为 2018112717,则表示查询 2018 年 11 月 27 日 17 时至 2018 年 11 月 27 日 18 时期间的历史消息。若海外集群为 UTC 时区,需要根据自己所在的时区进行时间转换。 (required)- 返回:
- ApiResponse<EMGetHistoryMessageResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
historyMessageAsync
public okhttp3.Call historyMessageAsync(String time, ApiCallback<EMGetHistoryMessageResult> _callback) throws ApiException 获取历史消息记录 (asynchronously) 你可以从服务端获取用户发送的历史消息的记录。单次请求获取从指定起始时间开始一小时内的发送的历史消息记录。查询历史消息记录时存在一定延时,无法实时获取。过期的历史消息记录无法获取。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_historical.html- 参数:
time- 历史消息记录查询的起始时间。UTC 时间,使用 ISO8601 标准,格式为 yyyyMMddHH。例如 time 为 2018112717,则表示查询 2018 年 11 月 27 日 17 时至 2018 年 11 月 27 日 18 时期间的历史消息。若海外集群为 UTC 时区,需要根据自己所在的时区进行时间转换。 (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-