Class PhotosSaveWallPhotoQuery

java.lang.Object
com.vk.api.sdk.client.ApiRequest<R>
com.vk.api.sdk.client.AbstractQueryBuilder<PhotosSaveWallPhotoQuery,​java.util.List<SaveWallPhotoResponse>>
com.vk.api.sdk.queries.photos.PhotosSaveWallPhotoQuery

public class PhotosSaveWallPhotoQuery
extends AbstractQueryBuilder<PhotosSaveWallPhotoQuery,​java.util.List<SaveWallPhotoResponse>>
Query for Photos.saveWallPhoto method
  • Constructor Details

    • PhotosSaveWallPhotoQuery

      public PhotosSaveWallPhotoQuery​(VkApiClient client, UserActor actor, java.lang.String photo)
      Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
      Parameters:
      client - VK API client
      actor - actor with access token
      photo - value of "photo" parameter.
  • Method Details

    • userId

      public PhotosSaveWallPhotoQuery userId​(java.lang.Integer value)
      ID of the user on whose wall the photo will be saved.
      Parameters:
      value - value of "user id" parameter. Minimum is 0.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • groupId

      public PhotosSaveWallPhotoQuery groupId​(java.lang.Integer value)
      ID of community on whose wall the photo will be saved.
      Parameters:
      value - value of "group id" parameter. Minimum is 0.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • photo

      protected PhotosSaveWallPhotoQuery photo​(java.lang.String value)
      Parameter returned when the the photo is [vk.com/dev/upload_files|uploaded to the server].
      Parameters:
      value - value of "photo" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • server

      public PhotosSaveWallPhotoQuery server​(java.lang.Integer value)
      Set server
      Parameters:
      value - value of "server" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • hash

      public PhotosSaveWallPhotoQuery hash​(java.lang.String value)
      Set hash
      Parameters:
      value - value of "hash" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • latitude

      public PhotosSaveWallPhotoQuery latitude​(java.lang.Number value)
      Geographical latitude, in degrees (from '-90' to '90').
      Parameters:
      value - value of "latitude" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • longitude

      public PhotosSaveWallPhotoQuery longitude​(java.lang.Number value)
      Geographical longitude, in degrees (from '-180' to '180').
      Parameters:
      value - value of "longitude" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • caption

      public PhotosSaveWallPhotoQuery caption​(java.lang.String value)
      Text describing the photo. 2048 digits max.
      Parameters:
      value - value of "caption" parameter.
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • getThis

      protected PhotosSaveWallPhotoQuery getThis()
      Description copied from class: AbstractQueryBuilder
      Get reference to this object
      Specified by:
      getThis in class AbstractQueryBuilder<PhotosSaveWallPhotoQuery,​java.util.List<SaveWallPhotoResponse>>
      Returns:
      a reference to this AbstractQueryBuilder object to fulfill the "Builder" pattern.
    • essentialKeys

      protected java.util.List<java.lang.String> essentialKeys()
      Description copied from class: AbstractQueryBuilder
      Get list of required parameter names
      Specified by:
      essentialKeys in class AbstractQueryBuilder<PhotosSaveWallPhotoQuery,​java.util.List<SaveWallPhotoResponse>>
      Returns:
      list of names