@svrooij/sonos
Advanced tools
Comparing version 2.5.0-beta.8 to 2.5.0-beta.9
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
import { GetZoneInfoResponse, GetZoneAttributesResponse, AddURIToQueueResponse, MusicService } from './services'; | ||
import { PlayNotificationOptions, Alarm, TransportState, ExtendedTransportState, PatchAlarm, PlayTtsOptions, BrowseResponse, ZoneGroup } from './models'; | ||
import { PlayNotificationOptions, Alarm, TransportState, ExtendedTransportState, PatchAlarm, PlayTtsOptions, BrowseResponse, ZoneGroup, PlayMode } from './models'; | ||
import { StrongSonosEvents } from './models/strong-sonos-events'; | ||
@@ -323,2 +323,11 @@ import { SmapiClient } from './musicservices/smapi-client'; | ||
get GroupName(): string | undefined; | ||
private currentPlayMode?; | ||
/** | ||
* Current play mode, only set when subscribed to events. | ||
* | ||
* @readonly | ||
* @type {(string | undefined)} | ||
* @memberof SonosDevice | ||
*/ | ||
get CurrentPlayMode(): PlayMode | undefined; | ||
private currentTrackUri?; | ||
@@ -325,0 +334,0 @@ /** |
@@ -705,2 +705,5 @@ "use strict"; | ||
} | ||
if (data.CurrentPlayMode) { | ||
this.currentPlayMode = data.CurrentPlayMode; | ||
} | ||
} | ||
@@ -781,2 +784,12 @@ handleRenderingControlEvent(data) { | ||
/** | ||
* Current play mode, only set when subscribed to events. | ||
* | ||
* @readonly | ||
* @type {(string | undefined)} | ||
* @memberof SonosDevice | ||
*/ | ||
get CurrentPlayMode() { | ||
return this.currentPlayMode; | ||
} | ||
/** | ||
* Current track uri, only set when subscribed to events. | ||
@@ -783,0 +796,0 @@ * |
@@ -101,3 +101,3 @@ "use strict"; | ||
this.devices.push(newDevice); | ||
this.events.emit('NewDevice', coordinator); | ||
this.events.emit('NewDevice', newDevice); | ||
}); | ||
@@ -104,0 +104,0 @@ g.members.forEach((m) => { |
{ | ||
"name": "@svrooij/sonos", | ||
"version": "2.5.0-beta.8", | ||
"version": "2.5.0-beta.9", | ||
"description": "A node library to control your sonos devices, written in typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
465628
10935