コード例 #1
0
        /// <summary>
        /// Registers a scope in the internal dictionary.
        /// </summary>
        /// <param name="name">The name of the scope.</param>
        internal static SpotifyScope RegisterScope(string name)
        {
            SpotifyScope scope = new SpotifyScope(name);

            Scopes.Add(scope.Name, scope);
            return(scope);
        }
コード例 #2
0
 /// <summary>
 /// Registers a scope in the internal dictionary.
 /// </summary>
 /// <param name="name">The name of the scope.</param>
 internal static SpotifyScope RegisterScope(string name) {
     SpotifyScope scope = new SpotifyScope(name);
     Scopes.Add(scope.Name, scope);
     return scope;
 }
コード例 #3
0
 /// <summary>
 /// Adds the specified <paramref name="scope"/> to the collection.
 /// </summary>
 /// <param name="scope">The scope to be added.</param>
 public void Add(SpotifyScope scope)
 {
     _list.Add(scope);
 }
コード例 #4
0
 /// <summary>
 /// Adds the specified <code>scope</code> to the collection.
 /// </summary>
 /// <param name="scope">The scope to be added.</param>
 public void Add(SpotifyScope scope) {
     _list.Add(scope);
 }