public class GetMessagesUploadServer extends VkMethod<GetMessagesUploadServer.ResponseBody>
Returns the server address for document upload.
Modifier and Type | Class and Description |
---|---|
static class |
GetMessagesUploadServer.ResponseBody
Response to docs.getMessagesUploadServer request.
|
Constructor and Description |
---|
GetMessagesUploadServer(String accessToken) |
Modifier and Type | Method and Description |
---|---|
GetMessagesUploadServer |
addParam(String key,
Object value)
Adds URL parameter to HTTP request.
|
protected Class<GetMessagesUploadServer.ResponseBody> |
getResponseClass()
Gets a class of VK API response.
|
GetMessagesUploadServer |
setPeerId(int peerId) |
GetMessagesUploadServer |
setType(String type) |
execute, executeAsync, newRequestBody
public GetMessagesUploadServer(String accessToken)
protected Class<GetMessagesUploadServer.ResponseBody> getResponseClass()
VkMethod
getResponseClass
in class VkMethod<GetMessagesUploadServer.ResponseBody>
public GetMessagesUploadServer setType(String type)
public GetMessagesUploadServer setPeerId(int peerId)
public GetMessagesUploadServer addParam(String key, Object value)
VkMethod
addParam
in class VkMethod<GetMessagesUploadServer.ResponseBody>
key
- URL parameter key.value
- URL parameter value.Copyright © 2023. All rights reserved.