public class GetHistory extends AuthorizedVkApiMethod<GetHistory.Response>
Returns message history for the specified user or group chat.
Modifier and Type | Class and Description |
---|---|
static class |
GetHistory.Response
Response to messages.getHistory request.
|
Constructor and Description |
---|
GetHistory(String accessToken) |
Modifier and Type | Method and Description |
---|---|
protected Class<GetHistory.Response> |
getResultType()
Gets type of VK API response.
|
protected String |
getUrl()
Gets VK API URL.
|
GetHistory |
setCount(int count) |
GetHistory |
setExtended(boolean extended) |
GetHistory |
setFields(List<String> fields) |
GetHistory |
setFields(String... fields) |
GetHistory |
setGroupId(int groupId) |
GetHistory |
setOffset(int offset) |
GetHistory |
setPeerId(int peerId) |
GetHistory |
setRev(boolean rev) |
GetHistory |
setStartMessageId(int startMessageId) |
GetHistory |
setUserId(int userId) |
addParam, execute, execute, executeAsync, getAsyncCaller, getJsonConverter, getMethod, getParams, getVkApiHttpClient, getVkApiParamsConverter, getVkApiResponseValidator, setAsyncCaller, setJsonConverter, setMethod, setParams, setVkApiHttpClient, setVkApiParamsConverter, setVkApiResponseValidator
public GetHistory(String accessToken)
protected String getUrl()
VkApiMethod
getUrl
in class VkApiMethod<GetHistory.Response>
protected Class<GetHistory.Response> getResultType()
VkApiMethod
getResultType
in class VkApiMethod<GetHistory.Response>
public GetHistory setOffset(int offset)
public GetHistory setCount(int count)
public GetHistory setUserId(int userId)
public GetHistory setPeerId(int peerId)
public GetHistory setStartMessageId(int startMessageId)
public GetHistory setRev(boolean rev)
public GetHistory setExtended(boolean extended)
public GetHistory setFields(String... fields)
public GetHistory setFields(List<String> fields)
public GetHistory setGroupId(int groupId)
Copyright © 2021. All rights reserved.