Package se.michaelthelin.spotify.enums
Enum Class AuthorizationScope
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationScope>
,java.lang.constant.Constable
An enumeration of all possible authorization scopes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApp remote control authorization scope.Playlist modify private authorization scope.Playlist modify public authorization scope.Playlist read collaborative authorization scope.Playlist read private authorization scope.Streaming authorization scope.UGC image upload authorization scope.User follow modify authorization scope.User follow read authorization scope.User library modify authorization scope.User library read authorization scope.User modify playback state authorization scope.User read currently playing authorization scope.User read email authorization scope.User read playback position authorization scope.User read playback state authorization scope.User read private authorization scope.User read recently played authorization scope.User top read authorization scope. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGetScope()
Get the authorization scope as a string.static AuthorizationScope
Get an AuthorizationScope by its type string.static AuthorizationScope
Returns the enum constant of this class with the specified name.static AuthorizationScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APP_REMOTE_CONTROL
App remote control authorization scope. -
PLAYLIST_MODIFY_PRIVATE
Playlist modify private authorization scope. -
PLAYLIST_MODIFY_PUBLIC
Playlist modify public authorization scope. -
PLAYLIST_READ_COLLABORATIVE
Playlist read collaborative authorization scope. -
PLAYLIST_READ_PRIVATE
Playlist read private authorization scope. -
STREAMING
Streaming authorization scope. -
UGC_IMAGE_UPLOAD
UGC image upload authorization scope. -
USER_FOLLOW_MODIFY
User follow modify authorization scope. -
USER_FOLLOW_READ
User follow read authorization scope. -
USER_LIBRARY_MODIFY
User library modify authorization scope. -
USER_LIBRARY_READ
User library read authorization scope. -
USER_MODIFY_PLAYBACK_STATE
User modify playback state authorization scope. -
USER_READ_CURRENTLY_PLAYING
User read currently playing authorization scope. -
USER_READ_EMAIL
User read email authorization scope. -
USER_READ_PLAYBACK_POSITION
User read playback position authorization scope. -
USER_READ_PLAYBACK_STATE
User read playback state authorization scope. -
USER_READ_PRIVATE
User read private authorization scope. -
USER_READ_RECENTLY_PLAYED
User read recently played authorization scope. -
USER_TOP_READ
User top read authorization scope.
-
-
Field Details
-
scope
The authorization scope string.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
keyOf
Get an AuthorizationScope by its type string.- Parameters:
type
- The scope type string.- Returns:
- The corresponding AuthorizationScope or null if not found.
-
GetScope
Get the authorization scope as a string.- Returns:
- Authorization scope as string.
-