Package com.vk.api.sdk.queries.messages
Class MessagesGetLongPollServerQuery
java.lang.Object
com.vk.api.sdk.client.ApiRequest<R>
com.vk.api.sdk.client.AbstractQueryBuilder<MessagesGetLongPollServerQuery,GetLongPollServerResponse>
com.vk.api.sdk.queries.messages.MessagesGetLongPollServerQuery
public class MessagesGetLongPollServerQuery extends AbstractQueryBuilder<MessagesGetLongPollServerQuery,GetLongPollServerResponse>
Query for Messages.getLongPollServer method
-
Constructor Summary
Constructors Constructor Description MessagesGetLongPollServerQuery(VkApiClient client, GroupActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersMessagesGetLongPollServerQuery(VkApiClient client, UserActor actor)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters -
Method Summary
Modifier and Type Method Description protected java.util.List<java.lang.String>
essentialKeys()
Get list of required parameter namesprotected MessagesGetLongPollServerQuery
getThis()
Get reference to this objectMessagesGetLongPollServerQuery
groupId(java.lang.Integer value)
Group ID (for group messages with user access token)MessagesGetLongPollServerQuery
lpVersion(java.lang.Integer value)
Long poll versionMessagesGetLongPollServerQuery
needPts(java.lang.Boolean value)
'1' — to return the 'pts' field, needed for the [vk.com/dev/messages.getLongPollHistory|messages.getLongPollHistory] method.Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
MessagesGetLongPollServerQuery
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client
- VK API clientactor
- actor with access token
-
MessagesGetLongPollServerQuery
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client
- VK API clientactor
- actor with access token
-
-
Method Details
-
needPts
'1' — to return the 'pts' field, needed for the [vk.com/dev/messages.getLongPollHistory|messages.getLongPollHistory] method.- Parameters:
value
- value of "need pts" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
groupId
Group ID (for group messages with user access token)- Parameters:
value
- value of "group id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
lpVersion
Long poll version- Parameters:
value
- value of "lp version" parameter. Minimum is 0. By default 0.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
getThis
Description copied from class:AbstractQueryBuilder
Get reference to this object- Specified by:
getThis
in classAbstractQueryBuilder<MessagesGetLongPollServerQuery,GetLongPollServerResponse>
- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()Description copied from class:AbstractQueryBuilder
Get list of required parameter names- Specified by:
essentialKeys
in classAbstractQueryBuilder<MessagesGetLongPollServerQuery,GetLongPollServerResponse>
- Returns:
- list of names
-