public class GetHistory extends VkMethod<GetHistory.ResponseBody>
Returns message history for the specified user or group chat.
| Modifier and Type | Class and Description |
|---|---|
static class |
GetHistory.ResponseBody
Response to messages.getHistory request.
|
| Constructor and Description |
|---|
GetHistory(String accessToken) |
| Modifier and Type | Method and Description |
|---|---|
GetHistory |
addParam(String key,
Object value)
Adds URL parameter to HTTP request.
|
protected Class<GetHistory.ResponseBody> |
getResponseClass()
Gets a class of VK API response.
|
String |
getUri()
Gets request URI.
|
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) |
csv, execute, executeAsync, getAccessToken, getGson, getRequestBody, property, toStringpublic GetHistory(String accessToken)
public String getUri()
VkMethodgetUri in class VkMethod<GetHistory.ResponseBody>protected Class<GetHistory.ResponseBody> getResponseClass()
VkMethodgetResponseClass in class VkMethod<GetHistory.ResponseBody>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)
public GetHistory addParam(String key, Object value)
VkMethodaddParam in class VkMethod<GetHistory.ResponseBody>key - URL parameter key.value - URL parameter value.Copyright © 2022. All rights reserved.