public class GetHistoryAttachments extends VkMethod<GetHistoryAttachments.ResponseBody>
Returns media files from the dialog or group chat.
| Modifier and Type | Class and Description |
|---|---|
static class |
GetHistoryAttachments.ResponseBody
Response to messages.getHistoryAttachments request.
|
| Constructor and Description |
|---|
GetHistoryAttachments(String accessToken) |
| Modifier and Type | Method and Description |
|---|---|
GetHistoryAttachments |
addParam(String key,
Object value)
Adds URL parameter to HTTP request.
|
protected Class<GetHistoryAttachments.ResponseBody> |
getResponseClass()
Gets a class of VK API response.
|
String |
getUri()
Gets request URI.
|
GetHistoryAttachments |
setCount(int count) |
GetHistoryAttachments |
setFields(List<String> fields) |
GetHistoryAttachments |
setFields(String... fields) |
GetHistoryAttachments |
setGroupId(int groupId) |
GetHistoryAttachments |
setMaxForwardsLevel(int maxForwardsLevel) |
GetHistoryAttachments |
setMediaType(String mediaType) |
GetHistoryAttachments |
setPeerId(int peerId) |
GetHistoryAttachments |
setPhotoSizes(boolean photoSizes) |
GetHistoryAttachments |
setPreserveOrder(boolean preserveOrder) |
GetHistoryAttachments |
setStartFrom(String startFrom) |
csv, execute, executeAsync, getAccessToken, getGson, getRequestBody, property, toStringpublic GetHistoryAttachments(String accessToken)
public String getUri()
VkMethodgetUri in class VkMethod<GetHistoryAttachments.ResponseBody>protected Class<GetHistoryAttachments.ResponseBody> getResponseClass()
VkMethodgetResponseClass in class VkMethod<GetHistoryAttachments.ResponseBody>public GetHistoryAttachments setPeerId(int peerId)
public GetHistoryAttachments setMediaType(String mediaType)
public GetHistoryAttachments setStartFrom(String startFrom)
public GetHistoryAttachments setCount(int count)
public GetHistoryAttachments setPhotoSizes(boolean photoSizes)
public GetHistoryAttachments setFields(String... fields)
public GetHistoryAttachments setFields(List<String> fields)
public GetHistoryAttachments setGroupId(int groupId)
public GetHistoryAttachments setPreserveOrder(boolean preserveOrder)
public GetHistoryAttachments setMaxForwardsLevel(int maxForwardsLevel)
public GetHistoryAttachments addParam(String key, Object value)
VkMethodaddParam in class VkMethod<GetHistoryAttachments.ResponseBody>key - URL parameter key.value - URL parameter value.Copyright © 2022. All rights reserved.