@@ -32,6 +32,7 @@ util.inherits(AVTransport, Service)
3232 * @param {number } options.InstanceID The instance you want to control is always `0`
3333 * @param {string } options.CurrentURI The new URI you wish to set.
3434 * @param {string } options.CurrentURIMetaData The metadata of the uri you wish to set.
35+ * @returns {Object } Parsed response data.
3536 */
3637AVTransport . prototype . SetAVTransportURI = async function ( options ) { return this . _request ( 'SetAVTransportURI' , options ) }
3738
@@ -43,6 +44,7 @@ AVTransport.prototype.SetAVTransportURI = async function (options) { return this
4344 * @param {number } options.EnqueuedURIMetaData The Metadata of the track you wish to add, see `Helpers.GenerateMetadata`
4445 * @param {number } options.DesiredFirstTrackNumberEnqueued The position in the queue
4546 * @param {number } options.EnqueueAsNext To Queue this item as the next item set to `1`
47+ * @returns {Object } Parsed response data.
4648 */
4749AVTransport . prototype . AddURIToQueue = async function ( options ) { return this . _request ( 'AddURIToQueue' , options ) }
4850AVTransport . prototype . AddMultipleURIsToQueue = async function ( options ) { return this . _request ( 'AddMultipleURIsToQueue' , options ) }
@@ -55,6 +57,7 @@ AVTransport.prototype.AddMultipleURIsToQueue = async function (options) { return
5557 * @param {number } options.StartingIndex The index of the first song you want to move.
5658 * @param {number } options.NumberOfTracks How many tracks do you want to move?
5759 * @param {number } options.InsertBefore Where should these tracks be inserted?
60+ * @returns {Object } Parsed response data.
5861 */
5962AVTransport . prototype . ReorderTracksInQueue = async function ( options ) { return this . _request ( 'ReorderTracksInQueue' , options ) }
6063AVTransport . prototype . RemoveTrackFromQueue = async function ( options ) { return this . _request ( 'RemoveTrackFromQueue' , options ) }
@@ -81,6 +84,7 @@ AVTransport.prototype.PreviousSection = async function (options) { return this._
8184/**
8285 * Set the new playmode
8386 * @param {string } playmode One of the following `NORMAL` `REPEAT_ALL` `SHUFFLE` `SHUFFLE_NOREPEAT`
87+ * @returns {Object } Parsed response data.
8488 */
8589AVTransport . prototype . SetPlayMode = async function ( playmode ) { return this . _request ( 'SetPlayMode' , { InstanceID : 0 , NewPlayMode : playmode } ) }
8690AVTransport . prototype . SetCrossfadeMode = async function ( options ) { return this . _request ( 'SetCrossfadeMode' , options ) }
@@ -94,6 +98,7 @@ AVTransport.prototype.BecomeGroupCoordinatorAndSource = async function (options)
9498/**
9599 * Configure a sleeptimer.
96100 * @param {string } duration the duration as 'ISO8601Time', needs sample!
101+ * @returns {Object } Parsed response data.
97102 */
98103AVTransport . prototype . ConfigureSleepTimer = async function ( duration ) { return this . _request ( 'ConfigureSleepTimer' , { InstanceID : 0 , NewSleepTimerDuration : duration } ) }
99104AVTransport . prototype . GetRemainingSleepTimerDuration = async function ( ) { return this . _request ( 'GetRemainingSleepTimerDuration' , { InstanceID : 0 } ) }
@@ -104,11 +109,13 @@ AVTransport.prototype.GetRunningAlarmProperties = async function (options) { ret
104109/**
105110 * Snooze the current running alarm for a number of minutes.
106111 * @param {string } duration The duration, as 'ISO8601Time', needs sample!
112+ * @returns {Object } Parsed response data.
107113 */
108114AVTransport . prototype . SnoozeAlarm = async function ( duration ) { return this . _request ( 'SnoozeAlarm' , { InstanceID : 0 , Duration : duration } ) }
109115
110116/**
111117 * Get information about the current track, parsed version of `GetPositionInfo()`
118+ * @returns {Object } The current playing track
112119 */
113120AVTransport . prototype . CurrentTrack = async function ( ) {
114121 return this . GetPositionInfo ( )
0 commit comments