Sha256: 9645b68e6bbf25179e99b9f0c0ca3c07d1f1aa3ce9add251732bc108cea651ff

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Photos < Vk::Schema::Namespace
      module Methods
        # Returns the server address for market photo upload.
        class GetMarketUploadServer < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'photos.getMarketUploadServer'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :group_id Community ID.
          #   @option arguments [Boolean] :main_photo '1' if you want to upload the main item photo.
          #   @option arguments [Integer] :crop_x X coordinate of the crop left upper corner.
          #   @option arguments [Integer] :crop_y Y coordinate of the crop left upper corner.
          #   @option arguments [Integer] :crop_width Width of the cropped photo in px.
          #   @return [Photos::Methods::GetMarketUploadServer]

          # @!group Arguments

          # @return [Integer] Community ID.
          attribute :group_id, API::Types::Coercible::Int.optional
          # @return [Boolean] '1' if you want to upload the main item photo.
          attribute :main_photo, API::Types::Bool.optional
          # @return [Integer] X coordinate of the crop left upper corner.
          attribute :crop_x, API::Types::Coercible::Int.optional
          # @return [Integer] Y coordinate of the crop left upper corner.
          attribute :crop_y, API::Types::Coercible::Int.optional
          # @return [Integer] Width of the cropped photo in px.
          attribute :crop_width, API::Types::Coercible::Int.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/photos/methods/get_market_upload_server.rb