Package de.sonallux.spotify.api.models
Class Device
- java.lang.Object
-
- de.sonallux.spotify.api.models.Device
-
public class Device extends Object
-
-
Field Summary
Fields Modifier and Type Field Description StringidThe device ID.booleanisActiveIf this device is the currently active device.booleanisPrivateSessionIf this device is currently in a private session.booleanisRestrictedWhether controlling this device is restricted.StringnameThe name of the device.StringtypeDevice type, such as "computer", "smartphone" or "speaker".intvolumePercentThe current volume in percent.
-
Constructor Summary
Constructors Constructor Description Device()
-
-
-
Field Detail
-
id
public String id
The device ID.
-
isActive
public boolean isActive
If this device is the currently active device.
-
isPrivateSession
public boolean isPrivateSession
If this device is currently in a private session.
-
isRestricted
public boolean isRestricted
Whether controlling this device is restricted. At present if this is "true" then no Web API commands will be accepted by this device.
-
name
public String name
The name of the device.
-
type
public String type
Device type, such as "computer", "smartphone" or "speaker".
-
volumePercent
public int volumePercent
The current volume in percent.
-
-