com.vk.api.sdk.queries.notes.NotesAddQuery 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.notes;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.UserActor;
import java.util.Arrays;
import java.util.List;
/**
* Query for Notes.add method
*/
public class NotesAddQuery 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 title value of "title" parameter.
* @param text value of "text" parameter.
*/
public NotesAddQuery(VkApiClient client, UserActor actor, String title, String text) {
super(client, "notes.add", Integer.class);
accessToken(actor.getAccessToken());
title(title);
text(text);
}
/**
* Note title.
*
* @param value value of "title" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
protected NotesAddQuery title(String value) {
return unsafeParam("title", value);
}
/**
* Note text.
*
* @param value value of "text" parameter.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
protected NotesAddQuery text(String value) {
return unsafeParam("text", value);
}
/**
* privacy_view
* Set privacy view
*
* @param value value of "privacy view" parameter. By default all.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public NotesAddQuery privacyView(String... value) {
return unsafeParam("privacy_view", value);
}
/**
* Set privacy view
*
* @param value value of "privacy view" parameter. By default all.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public NotesAddQuery privacyView(List value) {
return unsafeParam("privacy_view", value);
}
/**
* privacy_comment
* Set privacy comment
*
* @param value value of "privacy comment" parameter. By default all.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public NotesAddQuery privacyComment(String... value) {
return unsafeParam("privacy_comment", value);
}
/**
* Set privacy comment
*
* @param value value of "privacy comment" parameter. By default all.
* @return a reference to this {@code AbstractQueryBuilder} object to fulfill the "Builder" pattern.
*/
public NotesAddQuery privacyComment(List value) {
return unsafeParam("privacy_comment", value);
}
@Override
protected NotesAddQuery getThis() {
return this;
}
@Override
protected List essentialKeys() {
return Arrays.asList("text", "title", "access_token");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy