Organizations() private method

private Organizations ( ) : Uri
return System.Uri
Beispiel #1
0
        /// <summary>
        /// Returns all <see cref="Organization" />s for the specified user.
        /// </summary>
        /// <param name="user">The login of the user</param>
        /// <param name="options">Options for changing the API response</param>
        /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
        /// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
        public Task <IReadOnlyList <Organization> > GetAll(string user, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(user, "user");
            Ensure.ArgumentNotNull(options, "options");

            return(ApiConnection.GetAll <Organization>(ApiUrls.Organizations(user), options));
        }
 /// <summary>
 /// Returns all <see cref="Organization" />s for the current user.
 /// </summary>
 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
 /// <returns>A list of the current user's <see cref="Organization"/>s.</returns>
 public Task <IReadOnlyList <Organization> > GetAllForCurrent()
 {
     return(ApiConnection.GetAll <Organization>(ApiUrls.Organizations()));
 }
Beispiel #3
0
        /// <summary>
        /// Returns all <see cref="Organization" />s for the current user.
        /// </summary>
        /// <param name="options">Options for changing the API response</param>
        /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
        /// <returns>A list of the current user's <see cref="Organization"/>s.</returns>
        public Task <IReadOnlyList <Organization> > GetAllForCurrent(ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, "options");

            return(ApiConnection.GetAll <Organization>(ApiUrls.Organizations(), options));
        }