Sha256: a23cb02072bc7a76e557dfdd2cd5c3d944425262402b27a55d994e603d06bbc8

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Notifications < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class NotificationsComment < Vk::Schema::Object
        # @return [Integer] Comment ID
        attribute :id, API::Types::Coercible::Int.optional
        # @return [Integer] Author ID
        attribute :owner_id, API::Types::Coercible::Int.optional
        # @return [Integer] Date when the comment has been added in Unixtime
        attribute :date, API::Types::Coercible::Int.optional
        # @return [String] Comment text
        attribute :text, API::Types::Coercible::String.optional
        # @return [API::Photos::Photo] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :photo, Dry::Types[API::Photos::Photo].optional
        # @return [API::Video::Video] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :video, Dry::Types[API::Video::Video].optional
        # @return [API::Wall::Wallpost] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :post, Dry::Types[API::Wall::Wallpost].optional
        # @return [API::Board::Topic] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :topic, Dry::Types[API::Board::Topic].optional
      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/notifications/notifications_comment.rb