com.vk.api.sdk.queries.groups.GroupsGetLongPollSettingsQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.groups;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.GroupActor;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.groups.responses.GetLongPollSettingsResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Groups.getLongPollSettings method
*/
public class GroupsGetLongPollSettingsQuery extends AbstractQueryBuilder {
/**
* Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
* @param groupId value of "group id" parameter. Minimum is 1.
*/
public GroupsGetLongPollSettingsQuery(VkApiClient client, UserActor actor, int groupId) {
super(client, "groups.getLongPollSettings", GetLongPollSettingsResponse.class);
accessToken(actor.getAccessToken());
groupId(groupId);
}
/**
* Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
*
* @param client VK API client
* @param actor actor with access token
* @param groupId value of "group id" parameter. Minimum is 1.
*/
public GroupsGetLongPollSettingsQuery(VkApiClient client, GroupActor actor, int groupId) {
super(client, "groups.getLongPollSettings", GetLongPollSettingsResponse.class);
accessToken(actor.getAccessToken());
groupId(actor.getGroupId());
groupId(groupId);
}
/**
* Community ID.
*
* @param value value of "group id" parameter. Minimum is 1.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
protected GroupsGetLongPollSettingsQuery groupId(int value) {
return unsafeParam("group_id", value);
}
@Override
protected GroupsGetLongPollSettingsQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("group_id", "access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy