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

com.vk.api.sdk.queries.stories.StoriesGetVideoUploadServerQuery 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.stories;

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.annotations.ApiParam;
import com.vk.api.sdk.objects.stories.UploadLinkText;
import com.vk.api.sdk.objects.stories.responses.GetVideoUploadServerResponse;

import java.util.Arrays;
import java.util.List;

/**
 * Query for Stories.getVideoUploadServer method
 */
public class StoriesGetVideoUploadServerQuery extends AbstractQueryBuilder {
    /**
     * Creates a AbstractQueryBuilder instance that can be used to build group api request with various parameters
     *
     * @param client VK API client
     * @param actor actor with access token
     */
    public StoriesGetVideoUploadServerQuery(VkApiClient client, GroupActor actor) {
        super(client, "stories.getVideoUploadServer", GetVideoUploadServerResponse.class);
        accessToken(actor.getAccessToken());
        groupId(actor.getGroupId());
    }

    /**
     * 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 StoriesGetVideoUploadServerQuery(VkApiClient client, UserActor actor) {
        super(client, "stories.getVideoUploadServer", GetVideoUploadServerResponse.class);
        accessToken(actor.getAccessToken());
    }

    /**
     * 1 - to add the story to friend's feed.
     *
     * @param value value of "add to news" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("add_to_news")
    public StoriesGetVideoUploadServerQuery addToNews(Boolean value) {
        return unsafeParam("add_to_news", value);
    }

    /**
     * ID of the story to reply with the current.
     *
     * @param value value of "reply to story" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("reply_to_story")
    public StoriesGetVideoUploadServerQuery replyToStory(String value) {
        return unsafeParam("reply_to_story", value);
    }

    /**
     * Link text (for community's stories only).
     *
     * @param value value of "link text" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("link_text")
    public StoriesGetVideoUploadServerQuery linkText(UploadLinkText value) {
        return unsafeParam("link_text", value);
    }

    /**
     * Link URL. Internal links on https://vk.com only.
     *
     * @param value value of "link url" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("link_url")
    public StoriesGetVideoUploadServerQuery linkUrl(String value) {
        return unsafeParam("link_url", value);
    }

    /**
     * ID of the community to upload the story (should be verified or with the "fire" icon).
     *
     * @param value value of "group id" parameter. Minimum is 0. Entity - owner
     *
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("group_id")
    public StoriesGetVideoUploadServerQuery groupId(Long value) {
        return unsafeParam("group_id", value);
    }

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

    /**
     * userIds
     * List of users IDs who can see the story.
     *
     * @param value value of "user ids" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("user_ids")
    public StoriesGetVideoUploadServerQuery userIds(Long... value) {
        return unsafeParam("user_ids", value);
    }

    /**
     * List of users IDs who can see the story.
     *
     * @param value value of "user ids" parameter.
     * @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
     */
    @ApiParam("user_ids")
    public StoriesGetVideoUploadServerQuery userIds(List value) {
        return unsafeParam("user_ids", value);
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy