Sha256: f2196c0cff49a5431d42d67b3fd8d0f760000d03d050720f233ab85c0673a1d7

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

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

module Vk
  module API
    class Audio < Vk::Schema::Namespace
      module Methods
        # Activates an audio broadcast to the status of a user or community.
        class SetBroadcast < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'audio.setBroadcast'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :audio ID of the audio file to be shown in status (e.g., '1_190442705'). If the parameter is not set, the audio status of given communities and user will be deleted.
          #   @option arguments [Array] :target_ids IDs of communities and user whose statuses will be included in the broadcast. Use a negative value to designate a community ID. By default, current user ID.
          #   @return [Audio::Methods::SetBroadcast]

          # @!group Arguments

          # @return [String] ID of the audio file to be shown in status (e.g., '1_190442705'). If the parameter is not set, the audio status of given communities and user will be deleted.
          attribute :audio, API::Types::Coercible::String.optional
          # @return [Array] IDs of communities and user whose statuses will be included in the broadcast. Use a negative value to designate a community ID. By default, current user ID.
          attribute :target_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/audio/methods/set_broadcast.rb