public class SetActivity extends VkMethod<IntegerResponse>
Changes the status of a user as typing in a conversation.
Constructor and Description |
---|
SetActivity(String accessToken) |
Modifier and Type | Method and Description |
---|---|
SetActivity |
addParam(String key,
Object value)
Adds URL parameter to HTTP request.
|
protected Class<IntegerResponse> |
getResponseType()
Gets type of VK API response.
|
String |
getUrl()
Gets HTTP request URL.
|
SetActivity |
setGroupId(int groupId) |
SetActivity |
setPeerId(int peerId) |
SetActivity |
setType(String type) |
SetActivity |
setUserId(int userId) |
execute, executeAsync, getMultipartFormData, getParams, getRequestMethod, setMultipartFormData
public SetActivity(String accessToken)
public String getUrl()
HttpRequest
protected Class<IntegerResponse> getResponseType()
VkMethod
getResponseType
in class VkMethod<IntegerResponse>
public SetActivity setUserId(int userId)
public SetActivity setType(String type)
public SetActivity setPeerId(int peerId)
public SetActivity setGroupId(int groupId)
public SetActivity addParam(String key, Object value)
VkMethod
addParam
in class VkMethod<IntegerResponse>
key
- URL parameter key.value
- URL parameter value.Copyright © 2021. All rights reserved.