
com.vk.api.sdk.actions.Storage Maven / Gradle / Ivy
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.actions;
import com.vk.api.sdk.client.AbstractAction;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.GroupActor;
import com.vk.api.sdk.client.actors.ServiceActor;
import com.vk.api.sdk.client.actors.UserActor;
import com.vk.api.sdk.queries.storage.StorageGetKeysQuery;
import com.vk.api.sdk.queries.storage.StorageGetQuery;
import com.vk.api.sdk.queries.storage.StorageSetQuery;
/**
* List of Storage methods
*/
public class Storage extends AbstractAction {
/**
* Constructor
*
* @param client vk api client
*/
public Storage(VkApiClient client) {
super(client);
}
/**
* Returns a value of variable with the name set by key parameter.
*
* @param actor vk actor
* @return query
*/
public StorageGetQuery get(UserActor actor) {
return new StorageGetQuery(getClient(), actor);
}
/**
* Returns a value of variable with the name set by key parameter.
*
* @param actor vk actor
* @return query
*/
public StorageGetQuery get(GroupActor actor) {
return new StorageGetQuery(getClient(), actor);
}
/**
* Returns a value of variable with the name set by key parameter.
*
* @param actor vk actor
* @return query
*/
public StorageGetQuery get(ServiceActor actor) {
return new StorageGetQuery(getClient(), actor);
}
/**
* Returns the names of all variables.
*
* @param actor vk actor
* @return query
*/
public StorageGetKeysQuery getKeys(UserActor actor) {
return new StorageGetKeysQuery(getClient(), actor);
}
/**
* Returns the names of all variables.
*
* @param actor vk actor
* @return query
*/
public StorageGetKeysQuery getKeys(GroupActor actor) {
return new StorageGetKeysQuery(getClient(), actor);
}
/**
* Returns the names of all variables.
*
* @param actor vk actor
* @return query
*/
public StorageGetKeysQuery getKeys(ServiceActor actor) {
return new StorageGetKeysQuery(getClient(), actor);
}
/**
* Saves a value of variable with the name set by 'key' parameter.
*
* @param actor vk actor
* @param key
* @return query
*/
public StorageSetQuery set(UserActor actor, String key) {
return new StorageSetQuery(getClient(), actor, key);
}
/**
* Saves a value of variable with the name set by 'key' parameter.
*
* @param actor vk actor
* @param key
* @return query
*/
public StorageSetQuery set(GroupActor actor, String key) {
return new StorageSetQuery(getClient(), actor, key);
}
/**
* Saves a value of variable with the name set by 'key' parameter.
*
* @param actor vk actor
* @param key
* @return query
*/
public StorageSetQuery set(ServiceActor actor, String key) {
return new StorageSetQuery(getClient(), actor, key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy