# frozen_string_literal: true require 'vk/api/objects' require 'vk/schema/namespace' module Vk module API class Photos < Vk::Schema::Namespace # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json class Photo < Vk::Schema::Object # @return [Integer] Photo ID attribute :id, API::Types::Coercible::Int # @return [Integer] Album ID attribute :album_id, API::Types::Coercible::Int # @return [Integer] Photo owner's ID attribute :owner_id, API::Types::Coercible::Int # @return [Integer] ID of the user who have uploaded the photo attribute :user_id, API::Types::Coercible::Int.optional # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json attribute :sizes, API::Types::Coercible::Array.member(API::Photos::PhotoSizes).optional # @return [String] URL of image with 75 px width attribute :photo_75, API::Types::Coercible::String.optional # @return [String] URL of image with 130 px width attribute :photo_130, API::Types::Coercible::String.optional # @return [String] URL of image with 604 px width attribute :photo_604, API::Types::Coercible::String.optional # @return [String] URL of image with 807 px width attribute :photo_807, API::Types::Coercible::String.optional # @return [String] URL of image with 1280 px width attribute :photo_1280, API::Types::Coercible::String.optional # @return [Integer] Post ID attribute :post_id, API::Types::Coercible::Int.optional # @return [Integer] Original photo width attribute :width, API::Types::Coercible::Int.optional # @return [Integer] Original photo height attribute :height, API::Types::Coercible::Int.optional # @return [String] Photo caption attribute :text, API::Types::Coercible::String.optional # @return [Integer] Date when uploaded attribute :date, API::Types::Coercible::Int # @return [Number] Latitude attribute :lat, API::Types::Coercible::Int.optional # @return [Number] Longitude attribute :long, API::Types::Coercible::Int.optional # @return [String] Access key for the photo attribute :access_key, API::Types::Coercible::String.optional end end end end