Package com.vk.api.sdk.actions
Class Account
- java.lang.Object
-
- com.vk.api.sdk.client.AbstractAction
-
- com.vk.api.sdk.actions.Account
-
public class Account extends AbstractAction
List of Account methods
-
-
Constructor Summary
Constructors Constructor Description Account(VkApiClient client)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountBanQueryban(UserActor actor)AccountChangePasswordQuerychangePassword(UserActor actor, java.lang.String newPassword)Changes a user password after access is successfully restored with the [vk.com/dev/auth.restore|auth.restore] method.AccountGetActiveOffersQuerygetActiveOffers(UserActor actor)Returns a list of active ads (offers) which executed by the user will bring him/her respective number of votes to his balance in the application.AccountGetAppPermissionsQuerygetAppPermissions(UserActor actor, int userId)Gets settings of the user in this application.AccountGetBannedQuerygetBanned(UserActor actor)Returns a user's blacklist.AccountGetCountersQuerygetCounters(UserActor actor)Returns non-null values of user counters.AccountGetInfoQuerygetInfo(UserActor actor)Returns current account info.AccountGetProfileInfoQuerygetProfileInfo(UserActor actor)Returns the current account info.AccountGetPushSettingsQuerygetPushSettings(UserActor actor)Gets settings of push notifications.AccountRegisterDeviceQueryregisterDevice(UserActor actor, java.lang.String token, java.lang.String deviceId)Subscribes an iOS/Android/Windows Phone-based device to receive push notificationsAccountSaveProfileInfoQuerysaveProfileInfo(UserActor actor)Edits current profile info.AccountSetInfoQuerysetInfo(UserActor actor)Allows to edit the current account info.AccountSetNameInMenuQuerysetNameInMenu(UserActor actor, int userId)Sets an application screen name (up to 17 characters), that is shown to the user in the left menu.AccountSetOfflineQuerysetOffline(UserActor actor)Marks a current user as offline.AccountSetOnlineQuerysetOnline(UserActor actor)Marks the current user as online for 15 minutes.AccountSetPushSettingsQuerysetPushSettings(UserActor actor, java.lang.String deviceId)Change push settings.AccountSetSilenceModeQuerysetSilenceMode(UserActor actor)Mutes push notifications for the set period of time.AccountUnbanQueryunban(UserActor actor)AccountUnregisterDeviceQueryunregisterDevice(UserActor actor)Unsubscribes a device from push notifications.-
Methods inherited from class com.vk.api.sdk.client.AbstractAction
getClient
-
-
-
-
Constructor Detail
-
Account
public Account(VkApiClient client)
Constructor- Parameters:
client- vk api client
-
-
Method Detail
-
ban
public AccountBanQuery ban(UserActor actor)
- Parameters:
actor- vk actor- Returns:
- query
-
changePassword
public AccountChangePasswordQuery changePassword(UserActor actor, java.lang.String newPassword)
Changes a user password after access is successfully restored with the [vk.com/dev/auth.restore|auth.restore] method.- Parameters:
actor- vk actornewPassword- New password that will be set as a current- Returns:
- query
-
getActiveOffers
public AccountGetActiveOffersQuery getActiveOffers(UserActor actor)
Returns a list of active ads (offers) which executed by the user will bring him/her respective number of votes to his balance in the application.- Parameters:
actor- vk actor- Returns:
- query
-
getAppPermissions
public AccountGetAppPermissionsQuery getAppPermissions(UserActor actor, int userId)
Gets settings of the user in this application.- Parameters:
actor- vk actoruserId- User ID whose settings information shall be got. By default: current user.- Returns:
- query
-
getBanned
public AccountGetBannedQuery getBanned(UserActor actor)
Returns a user's blacklist.- Parameters:
actor- vk actor- Returns:
- query
-
getCounters
public AccountGetCountersQuery getCounters(UserActor actor)
Returns non-null values of user counters.- Parameters:
actor- vk actor- Returns:
- query
-
getInfo
public AccountGetInfoQuery getInfo(UserActor actor)
Returns current account info.- Parameters:
actor- vk actor- Returns:
- query
-
getProfileInfo
public AccountGetProfileInfoQuery getProfileInfo(UserActor actor)
Returns the current account info.- Parameters:
actor- vk actor- Returns:
- query
-
getPushSettings
public AccountGetPushSettingsQuery getPushSettings(UserActor actor)
Gets settings of push notifications.- Parameters:
actor- vk actor- Returns:
- query
-
registerDevice
public AccountRegisterDeviceQuery registerDevice(UserActor actor, java.lang.String token, java.lang.String deviceId)
Subscribes an iOS/Android/Windows Phone-based device to receive push notifications- Parameters:
actor- vk actortoken- Device token used to send notifications. (for mpns, the token shall be URL for sending of notifications)deviceId- Unique device ID.- Returns:
- query
-
saveProfileInfo
public AccountSaveProfileInfoQuery saveProfileInfo(UserActor actor)
Edits current profile info.- Parameters:
actor- vk actor- Returns:
- query
-
setInfo
public AccountSetInfoQuery setInfo(UserActor actor)
Allows to edit the current account info.- Parameters:
actor- vk actor- Returns:
- query
-
setNameInMenu
public AccountSetNameInMenuQuery setNameInMenu(UserActor actor, int userId)
Sets an application screen name (up to 17 characters), that is shown to the user in the left menu.- Parameters:
actor- vk actoruserId- User ID.- Returns:
- query
-
setOffline
public AccountSetOfflineQuery setOffline(UserActor actor)
Marks a current user as offline.- Parameters:
actor- vk actor- Returns:
- query
-
setOnline
public AccountSetOnlineQuery setOnline(UserActor actor)
Marks the current user as online for 15 minutes.- Parameters:
actor- vk actor- Returns:
- query
-
setPushSettings
public AccountSetPushSettingsQuery setPushSettings(UserActor actor, java.lang.String deviceId)
Change push settings.- Parameters:
actor- vk actordeviceId- Unique device ID.- Returns:
- query
-
setSilenceMode
public AccountSetSilenceModeQuery setSilenceMode(UserActor actor)
Mutes push notifications for the set period of time.- Parameters:
actor- vk actor- Returns:
- query
-
unban
public AccountUnbanQuery unban(UserActor actor)
- Parameters:
actor- vk actor- Returns:
- query
-
unregisterDevice
public AccountUnregisterDeviceQuery unregisterDevice(UserActor actor)
Unsubscribes a device from push notifications.- Parameters:
actor- vk actor- Returns:
- query
-
-