Skip to content

Commit

Permalink
Adds sumnmaries to sope enum #minor
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlubb14 committed Aug 1, 2020
1 parent 3146d8c commit 366e3b1
Showing 1 changed file with 68 additions and 5 deletions.
73 changes: 68 additions & 5 deletions SpotifyNet/Scope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,125 @@

namespace SpotifyNet
{
/// <summary>
/// Scopes provide Spotify users using third-party apps the confidence that only the
/// information they choose to share will be shared, and nothing more.
/// </summary>
[Flags]
public enum Scope : uint
{
//None = 0,

All = ~0u,

/// <summary>
/// No scopes
/// </summary>
None = 0,

/// <summary>
/// Read access to user’s subscription details (type of user account).
/// </summary>
[Description("user-read-private")]
UserReadPrivate = 1,

/// <summary>
/// Read access to user’s email address.
/// </summary>
[Description("user-read-email")]
UserReadEmail = 2 << 0,

/// <summary>
/// Read access to user’s birthdate.
/// </summary>
[Obsolete("Does not exist anymore")]
[Description("user-read-birthdate")]
UserReadBirthday = 2 << 1,

/// <summary>
/// Read access to user's private playlists.
/// </summary>
[Description("playlist-read-private")]
PlaylistReadPrivate = 2 << 2,

/// <summary>
/// Write access to a user's private playlists.
/// </summary>
[Description("playlist-modify-private")]
PlaylistModifyPrivate = 2 << 3,

/// <summary>
/// Write access to a user's public playlists.
/// </summary>
[Description("playlist-modify-public")]
PlaylistModifyPublic = 2 << 4,

/// <summary>
/// Include collaborative playlists when requesting a user's playlists.
/// </summary>
[Description("playlist-read-collaborative")]
PlaylistReadCollaborative = 2 << 5,

/// <summary>
/// Read access to a user's top artists and tracks.
/// </summary>
[Description("user-top-read")]
UserTopRead = 2 << 6,

/// <summary>
/// Read access to a user’s recently played tracks.
/// </summary>
[Description("user-read-recently-played")]
UserReadRecentlyPlayed = 2 << 7,

/// <summary>
/// Read access to a user's "Your Music" library.
/// </summary>
[Description("user-library-read")]
UserLibraryRead = 2 << 8,

/// <summary>
/// Write/delete access to a user's "Your Music" library.
/// </summary>
[Description("user-library-modify")]
UserLibraryModify = 2 << 9,

/// <summary>
/// Read access to a user’s currently playing content.
/// </summary>
[Description("user-read-currently-playing")]
UserReadCurrentlyPlaying = 2 << 10,

/// <summary>
/// Write access to a user’s playback state.
/// </summary>
[Description("user-modify-playback-state")]
UserModifyPlaybackState = 2 << 11,

/// <summary>
/// Read access to a user’s player state.
/// </summary>
[Description("user-read-playback-state")]
UserReadPlaybackState = 2 << 12,

/// <summary>
/// Write/delete access to the list of artists and other users that the user follows.
/// </summary>
[Description("user-follow-modify")]
UserFollowModify = 2 << 13,

/// <summary>
/// Read access to the list of artists and other users that the user follows.
/// </summary>
[Description("user-follow-read")]
UserFollowRead = 2 << 14,

/// <summary>
/// Control playback of a Spotify track. This scope is currently available to the Web Playback SDK.
/// The user must have a Spotify Premium account.
/// </summary>
[Description("streaming")]
Streaming = 2 << 15
Streaming = 2 << 15,

/// <summary>
/// All scopes which are inside <see cref="Scope"/>.
/// </summary>
All = ~0u
}
}

0 comments on commit 366e3b1

Please sign in to comment.