public class SetChatPhoto extends VkMethod<SetChatPhoto.ResponseBody>
Sets a previously-uploaded picture as the cover picture of a chat.
| Modifier and Type | Class and Description |
|---|---|
static class |
SetChatPhoto.ResponseBody
Response to messages.setChatPhoto request.
|
| Constructor and Description |
|---|
SetChatPhoto(String accessToken) |
| Modifier and Type | Method and Description |
|---|---|
SetChatPhoto |
addParam(String key,
Object value)
Adds URL parameter to HTTP request.
|
protected Class<SetChatPhoto.ResponseBody> |
getResponseClass()
Gets a class of VK API response.
|
String |
getUri()
Gets request URI.
|
SetChatPhoto |
setFile(String file) |
csv, execute, executeAsync, getAccessToken, getGson, getRequestBody, property, toStringpublic SetChatPhoto(String accessToken)
public String getUri()
VkMethodgetUri in class VkMethod<SetChatPhoto.ResponseBody>protected Class<SetChatPhoto.ResponseBody> getResponseClass()
VkMethodgetResponseClass in class VkMethod<SetChatPhoto.ResponseBody>public SetChatPhoto setFile(String file)
public SetChatPhoto addParam(String key, Object value)
VkMethodaddParam in class VkMethod<SetChatPhoto.ResponseBody>key - URL parameter key.value - URL parameter value.Copyright © 2022. All rights reserved.