Package com.vk.api.sdk.queries.groups
Class GroupsGetQuery
java.lang.Object
com.vk.api.sdk.client.ApiRequest<R>
com.vk.api.sdk.client.AbstractQueryBuilder<GroupsGetQuery,GetResponse>
com.vk.api.sdk.queries.groups.GroupsGetQuery
public class GroupsGetQuery extends AbstractQueryBuilder<GroupsGetQuery,GetResponse>
Query for Groups.get method
-
Constructor Summary
Constructors Constructor Description GroupsGetQuery(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 GroupsGetQuery
count(java.lang.Integer value)
Number of communities to return.protected java.util.List<java.lang.String>
essentialKeys()
Get list of required parameter namesGroupsGetQuery
extended(java.lang.Boolean value)
'1' — to return complete information about a user's communities, '0' — to return a list of community IDs without any additional fields (default),GroupsGetQuery
fields(Fields... value)
fields Profile fields to return.GroupsGetQuery
fields(java.util.List<Fields> value)
Profile fields to return.GroupsGetQuery
filter(Filter... value)
filter Types of communities to return: 'admin' — to return communities administered by the user , 'editor' — to return communities where the user is an administrator or editor, 'moder' — to return communities where the user is an administrator, editor, or moderator, 'groups' — to return only groups, 'publics' — to return only public pages, 'events' — to return only eventsGroupsGetQuery
filter(java.util.List<Filter> value)
Types of communities to return: 'admin' — to return communities administered by the user , 'editor' — to return communities where the user is an administrator or editor, 'moder' — to return communities where the user is an administrator, editor, or moderator, 'groups' — to return only groups, 'publics' — to return only public pages, 'events' — to return only eventsprotected GroupsGetQuery
getThis()
Get reference to this objectGroupsGetQuery
offset(java.lang.Integer value)
Offset needed to return a specific subset of communities.GroupsGetQuery
userId(java.lang.Integer value)
User ID.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
-
GroupsGetQuery
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
-
userId
User ID.- Parameters:
value
- value of "user id" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
extended
'1' — to return complete information about a user's communities, '0' — to return a list of community IDs without any additional fields (default),- Parameters:
value
- value of "extended" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
offset
Offset needed to return a specific subset of communities.- Parameters:
value
- value of "offset" parameter. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
count
Number of communities to return.- Parameters:
value
- value of "count" parameter. Maximum is 1000. Minimum is 0.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
filter
filter Types of communities to return: 'admin' — to return communities administered by the user , 'editor' — to return communities where the user is an administrator or editor, 'moder' — to return communities where the user is an administrator, editor, or moderator, 'groups' — to return only groups, 'publics' — to return only public pages, 'events' — to return only events- Parameters:
value
- value of "filter" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
filter
Types of communities to return: 'admin' — to return communities administered by the user , 'editor' — to return communities where the user is an administrator or editor, 'moder' — to return communities where the user is an administrator, editor, or moderator, 'groups' — to return only groups, 'publics' — to return only public pages, 'events' — to return only events- Parameters:
value
- value of "filter" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
fields
fields Profile fields to return.- Parameters:
value
- value of "fields" parameter.- Returns:
- a reference to this
AbstractQueryBuilder
object to fulfill the "Builder" pattern.
-
fields
Profile fields to return.- Parameters:
value
- value of "fields" parameter.- 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<GroupsGetQuery,GetResponse>
- 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<GroupsGetQuery,GetResponse>
- Returns:
- list of names
-