/// <summary>
        /// Registers a scope in the internal dictionary.
        /// </summary>
        /// <param name="alias">The alias of the scope.</param>
        /// <param name="name">The name of the scope.</param>
        /// <param name="description">The description of the scope.</param>
        internal static InstagramScope RegisterScope(string alias, string name, string description = null)
        {
            InstagramScope scope = new InstagramScope(alias, name, description);

            Scopes.Add(scope.Alias, scope);
            return(scope);
        }
Esempio n. 2
0
 /// <summary>
 /// Adds the specified <paramref name="scope"/> to the list.
 /// </summary>
 /// <param name="scope">The scope to be added.</param>
 public void Add(InstagramScope scope)
 {
     _list.Add(scope);
 }