Enum Class AuthorizationScope

java.lang.Object
java.lang.Enum<AuthorizationScope>
se.michaelthelin.spotify.enums.AuthorizationScope
All Implemented Interfaces:
Serializable, Comparable<AuthorizationScope>, java.lang.constant.Constable

public enum AuthorizationScope extends Enum<AuthorizationScope>
An enumeration of all possible authorization scopes.
  • Enum Constant Details

    • APP_REMOTE_CONTROL

      public static final AuthorizationScope APP_REMOTE_CONTROL
      App remote control authorization scope.
    • PLAYLIST_MODIFY_PRIVATE

      public static final AuthorizationScope PLAYLIST_MODIFY_PRIVATE
      Playlist modify private authorization scope.
    • PLAYLIST_MODIFY_PUBLIC

      public static final AuthorizationScope PLAYLIST_MODIFY_PUBLIC
      Playlist modify public authorization scope.
    • PLAYLIST_READ_COLLABORATIVE

      public static final AuthorizationScope PLAYLIST_READ_COLLABORATIVE
      Playlist read collaborative authorization scope.
    • PLAYLIST_READ_PRIVATE

      public static final AuthorizationScope PLAYLIST_READ_PRIVATE
      Playlist read private authorization scope.
    • STREAMING

      public static final AuthorizationScope STREAMING
      Streaming authorization scope.
    • UGC_IMAGE_UPLOAD

      public static final AuthorizationScope UGC_IMAGE_UPLOAD
      UGC image upload authorization scope.
    • USER_FOLLOW_MODIFY

      public static final AuthorizationScope USER_FOLLOW_MODIFY
      User follow modify authorization scope.
    • USER_FOLLOW_READ

      public static final AuthorizationScope USER_FOLLOW_READ
      User follow read authorization scope.
    • USER_LIBRARY_MODIFY

      public static final AuthorizationScope USER_LIBRARY_MODIFY
      User library modify authorization scope.
    • USER_LIBRARY_READ

      public static final AuthorizationScope USER_LIBRARY_READ
      User library read authorization scope.
    • USER_MODIFY_PLAYBACK_STATE

      public static final AuthorizationScope USER_MODIFY_PLAYBACK_STATE
      User modify playback state authorization scope.
    • USER_READ_CURRENTLY_PLAYING

      public static final AuthorizationScope USER_READ_CURRENTLY_PLAYING
      User read currently playing authorization scope.
    • USER_READ_EMAIL

      public static final AuthorizationScope USER_READ_EMAIL
      User read email authorization scope.
    • USER_READ_PLAYBACK_POSITION

      public static final AuthorizationScope USER_READ_PLAYBACK_POSITION
      User read playback position authorization scope.
    • USER_READ_PLAYBACK_STATE

      public static final AuthorizationScope USER_READ_PLAYBACK_STATE
      User read playback state authorization scope.
    • USER_READ_PRIVATE

      public static final AuthorizationScope USER_READ_PRIVATE
      User read private authorization scope.
    • USER_READ_RECENTLY_PLAYED

      public static final AuthorizationScope USER_READ_RECENTLY_PLAYED
      User read recently played authorization scope.
    • USER_TOP_READ

      public static final AuthorizationScope USER_TOP_READ
      User top read authorization scope.
  • Field Details

    • scope

      public final String scope
      The authorization scope string.
  • Method Details

    • values

      public static AuthorizationScope[] 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

      public static AuthorizationScope valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • keyOf

      public static AuthorizationScope keyOf(String type)
      Get an AuthorizationScope by its type string.
      Parameters:
      type - The scope type string.
      Returns:
      The corresponding AuthorizationScope or null if not found.
    • GetScope

      public String GetScope()
      Get the authorization scope as a string.
      Returns:
      Authorization scope as string.