Class RemoveChatUser
java.lang.Object
api.longpoll.bots.methods.impl.VkMethod<IntegerResponseBody>
api.longpoll.bots.methods.impl.messages.RemoveChatUser
Implements messages.removeChatUser method.
Allows the current user to leave a chat or, if the current user started the chat, allows the user to remove another user from the chat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds URL parameter to HTTP request.protected Class<IntegerResponseBody>
Gets a class of VK API response.setChatId
(int chatId) setMemberId
(int memberId) setUserId
(int userId) Methods inherited from class api.longpoll.bots.methods.impl.VkMethod
execute, executeAsync, newRequestBody, setLang
-
Constructor Details
-
RemoveChatUser
-
-
Method Details
-
getResponseClass
Description copied from class:VkMethod
Gets a class of VK API response. This value is used during deserialization of received JSON.- Specified by:
getResponseClass
in classVkMethod<IntegerResponseBody>
- Returns:
- a class of VK API response.
-
setChatId
-
setUserId
-
setMemberId
-
addParam
Description copied from class:VkMethod
Adds URL parameter to HTTP request.- Overrides:
addParam
in classVkMethod<IntegerResponseBody>
- Parameters:
key
- URL parameter key.value
- URL parameter value.- Returns:
- current instance.
-