de.sonallux.spotify.api.models.Device Maven / Gradle / Ivy
Show all versions of spotify-web-api-java Show documentation
package de.sonallux.spotify.api.models;
import lombok.*;
/**
* DeviceObject
*/
@Getter
@Setter
@NoArgsConstructor
public class Device {
/**
* The device ID. This ID is unique and persistent to some extent. However, this is not guaranteed and any cached device_id
should periodically be cleared out and refetched as necessary.
*/
public String id;
/**
* If this device is the currently active device.
*/
public boolean isActive;
/**
* If this device is currently in a private session.
*/
public boolean isPrivateSession;
/**
* Whether controlling this device is restricted. At present if this is "true" then no Web API commands will be accepted by this device.
*/
public boolean isRestricted;
/**
* 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.
*/
public String name;
/**
* If this device can be used to set the volume.
*/
public boolean supportsVolume;
/**
* Device type, such as "computer", "smartphone" or "speaker".
*/
public String type;
/**
* The current volume in percent.
*/
public int volumePercent;
}