Class: Vk::API::Messages::Methods::MarkAsImportant

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/messages/methods/mark_as_important.rb

Overview

Marks and unmarks messages as important (starred).

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Messages::Methods::MarkAsImportant

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :message_ids (Array)

    IDs of messages to mark as important.

  • :important (Integer)

    '1' — to add a star (mark as important); '0' — to remove the star


# File 'lib/vk/api/messages/methods/mark_as_important.rb', line 15

Instance Method Details

#importantInteger

Returns '1' — to add a star (mark as important); '0' — to remove the star.

Returns:

  • (Integer)

    '1' — to add a star (mark as important); '0' — to remove the star


26
# File 'lib/vk/api/messages/methods/mark_as_important.rb', line 26

attribute :important, API::Types::Coercible::Int.optional.default(nil)

#message_idsArray

Returns IDs of messages to mark as important.

Returns:

  • (Array)

    IDs of messages to mark as important.


24
# File 'lib/vk/api/messages/methods/mark_as_important.rb', line 24

attribute :message_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int).optional.default(nil)