Sha256: 3105e8781ad27a8a585f85b7177260785ac5b2503d54a77dcb0ba23899c264c3

Contents?: true

Size: 1.74 KB

Versions: 1

Compression:

Stored size: 1.74 KB

Contents

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

module Vk
  module API
    class Friends < Vk::Schema::Namespace
      module Methods
        # Edits a friend list of the current user.
        class EditList < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'friends.editList'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :name Name of the friend list.
          #   @option arguments [Integer] :list_id Friend list ID.
          #   @option arguments [Array] :user_ids IDs of users in the friend list.
          #   @option arguments [Array] :add_user_ids (Applies if 'user_ids' parameter is not set.); User IDs to add to the friend list.
          #   @option arguments [Array] :delete_user_ids (Applies if 'user_ids' parameter is not set.); User IDs to delete from the friend list.
          #   @return [Friends::Methods::EditList]

          # @!group Arguments

          # @return [String] Name of the friend list.
          attribute :name, API::Types::Coercible::String.optional
          # @return [Integer] Friend list ID.
          attribute :list_id, API::Types::Coercible::Int.optional
          # @return [Array] IDs of users in the friend list.
          attribute :user_ids, API::Types::Coercible::Array.optional
          # @return [Array] (Applies if 'user_ids' parameter is not set.); User IDs to add to the friend list.
          attribute :add_user_ids, API::Types::Coercible::Array.optional
          # @return [Array] (Applies if 'user_ids' parameter is not set.); User IDs to delete from the friend list.
          attribute :delete_user_ids, API::Types::Coercible::Array.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/friends/methods/edit_list.rb