com.vk.api.sdk.queries.board.BoardUnfixTopicQuery 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.
package com.vk.api.sdk.queries.board;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.objects.base.responses.OkResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Board.unfixTopic method
*/
public class BoardUnfixTopicQuery 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 0.
* @param topicId value of "topic id" parameter. Minimum is 0.
*/
public BoardUnfixTopicQuery(VkApiClient client, UserActor actor, int groupId, int topicId) {
super(client, "board.unfixTopic", OkResponse.class);
accessToken(actor.getAccessToken());
groupId(groupId);
topicId(topicId);
}
/**
* ID of the community that owns the discussion board.
*
* @param value value of "group id" parameter. Minimum is 0.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
protected BoardUnfixTopicQuery groupId(int value) {
return unsafeParam("group_id", value);
}
/**
* Topic ID.
*
* @param value value of "topic id" parameter. Minimum is 0.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
protected BoardUnfixTopicQuery topicId(int value) {
return unsafeParam("topic_id", value);
}
@Override
protected BoardUnfixTopicQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("group_id", "topic_id", "access_token");
}
}