lib/ury_rapid/baps/requests/handlers/playlist.rb
# Copies an item from another playlist to the one being handled
#
# This is an implementation of the playlist API type 'copy'.
# BAPS does not support foreign playlist moves; use 'move' instead.
#
# The target ID is ignored by this call, because BAPS does not
# support it.
#
# @api semipublic
# @example  Copy from index 5 on playlist 0 to the handled playlist.
#   handler.copy_from_foreign_playlist(0, 5)
#
# @param old_playlist [Integer]  The source playlist ID.  BAPS only
#   supports integral playlist IDs.
# @param old_index [Integer]  The source playlist index, starting
#   from 0.
#
# @return [void]
Copies an item from another playlist to the one being handled
This is an implementation of the playlist API type 'copy'.
BAPS does not support foreign playlist moves; use 'move' instead.

The target ID is ignored by this call, because BAPS does not
support it.
Copies an item from another playlist to the one being handled This is an implementation of the playlist API type ' copy ' . BAPS does not support foreign playlist moves ; use ' move ' instead . The target ID is ignored by this call because BAPS does not support it .
def copy_from_foreign_playlist(old_playlist, old_index)
            new_playlist = caller_id
            request Codes::Playlist::COPY_ITEM_TO_PLAYLIST, old_playlist do
              uint32 old_index, new_playlist
            end
          end
def copy_from_foreign_playlist ( old_playlist , old_index ) new_playlist = caller_id request Codes :: Playlist :: COPY_ITEM_TO_PLAYLIST , old_playlist do uint32 old_index , new_playlist end end
Copies an item from another playlist to the one being handled
This is an implementation of the playlist API type 'copy'.
Copies an item from another playlist to the one being handled This is an implementation of the playlist API type ' copy ' .
None
void
old_playlist
The source playlist ID. BAPS only supports integral playlist IDs.
The source playlist ID . BAPS only supports integral playlist IDs .
old_index
The source playlist index, starting from 0.
The source playlist index starting from 0 .
api
None
example
Copy from index 5 on playlist 0 to the handled playlist. handler.copy_from_foreign_playlist(0, 5)
Copy from index 5 on playlist 0 to the handled playlist . handler . copy_from_foreign_playlist ( 0 5 )