Package de.sonallux.spotify.api.models
Class Device
java.lang.Object
de.sonallux.spotify.api.models.Device
DeviceObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe device ID.booleanIf this device is the currently active device.booleanIf this device is currently in a private session.booleanWhether controlling this device is restricted.A human-readable name for the device.Device type, such as "computer", "smartphone" or "speaker".intThe current volume in percent. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
The device ID.
-
isActive
public boolean isActiveIf this device is the currently active device.
-
isPrivateSession
public boolean isPrivateSessionIf this device is currently in a private session.
-
isRestricted
public boolean isRestrictedWhether controlling this device is restricted. At present if this is "true" then no Web API commands will be accepted by this device.
-
name
A human-readable name for the device. Some devices have a name that the user can configure (e.g. "Loudest speaker") and some devices have a generic name associated with the manufacturer or device model.
-
type
Device type, such as "computer", "smartphone" or "speaker".
-
volumePercent
public int volumePercentThe current volume in percent.
-
-
Constructor Details
-
Device
public Device()
-