Class Device

java.lang.Object
de.sonallux.spotify.api.models.Device

public class Device extends Object
DeviceObject
  • Field Details

    • 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

      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

      public String type

      Device type, such as "computer", "smartphone" or "speaker".

    • volumePercent

      public int volumePercent

      The current volume in percent.

  • Constructor Details

    • Device

      public Device()