All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vk.api.sdk.queries.wall.WallCheckCopyrightLinkQuery Maven / Gradle / Ivy

Go to download

Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.

The newest version!
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.queries.wall;

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.annotations.ApiParam;
import com.vk.api.sdk.objects.base.responses.BoolResponse;
import java.util.Arrays;
import java.util.List;

/**
 * Query for Wall.checkCopyrightLink method
 */
public class WallCheckCopyrightLinkQuery extends AbstractQueryBuilder {
    /**
     * Creates a AbstractQueryBuilder instance that can be used to build user api request with various parameters
     *
     * @param client VK API client
     * @param actor actor with access token
     * @param link value of "link" parameter.
     */
    public WallCheckCopyrightLinkQuery(VkApiClient client, UserActor actor, String link) {
        super(client, "wall.checkCopyrightLink", BoolResponse.class);
        accessToken(actor.getAccessToken());
        link(link);
    }

    /**
     * Creates a AbstractQueryBuilder instance that can be used to build user api request with various parameters
     *
     * @param client VK API client
     * @param actor actor with access token
     */
    public WallCheckCopyrightLinkQuery(VkApiClient client, UserActor actor) {
        super(client, "wall.checkCopyrightLink", BoolResponse.class);
        accessToken(actor.getAccessToken());
    }

    /**
     * Set link
     *
     * @param value value of "link" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("link")
    public WallCheckCopyrightLinkQuery link(String value) {
        return unsafeParam("link", value);
    }

    @Override
    protected WallCheckCopyrightLinkQuery getThis() {
        return this;
    }

    @Override
    protected List essentialKeys() {
        return Arrays.asList("link", "access_token");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy