Sha256: acf27e9a2e586d1b9bdfff84f48ebe9e9989e97c46d57aee4798a7c5e867cad2

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

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

module Vk
  module API
    class Notes < Vk::Schema::Namespace
      module Methods
        # Adds a new comment on a note.
        class CreateComment < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'notes.createComment'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :note_id Note ID.
          #   @option arguments [Integer] :owner_id Note owner ID.
          #   @option arguments [Integer] :reply_to ID of the user to whom the reply is addressed (if the comment is a reply to another comment).;
          #   @option arguments [String] :message Comment text.
          #   @option arguments [String] :guid @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          #   @return [Notes::Methods::CreateComment]

          # @!group Arguments

          # @return [Integer] Note ID.
          attribute :note_id, API::Types::Coercible::Int.optional
          # @return [Integer] Note owner ID.
          attribute :owner_id, API::Types::Coercible::Int.optional
          # @return [Integer] ID of the user to whom the reply is addressed (if the comment is a reply to another comment).;
          attribute :reply_to, API::Types::Coercible::Int.optional
          # @return [String] Comment text.
          attribute :message, API::Types::Coercible::String.optional
          # @return [String] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          attribute :guid, API::Types::Coercible::String.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/notes/methods/create_comment.rb