AllOrganizations() public static method

Returns the Uri that returns all of the organizations.
public static AllOrganizations ( ) : Uri
return System.Uri
Ejemplo n.º 1
0
        /// <summary>
        /// Returns all <see cref="Organization" />s.
        /// </summary>
        /// <param name="request">Search parameters of the last organization seen</param>
        /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
        /// <returns>A list of <see cref="Organization"/>s.</returns>
        public Task <IReadOnlyList <Organization> > GetAll(OrganizationRequest request)
        {
            Ensure.ArgumentNotNull(request, "request");

            var url = ApiUrls.AllOrganizations(request.Since);

            return(ApiConnection.GetAll <Organization>(url));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns all <see cref="Organization" />s.
 /// </summary>
 /// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
 /// <returns>A list of <see cref="Organization"/>s.</returns>
 public Task <IReadOnlyList <Organization> > GetAll()
 {
     return(ApiConnection.GetAll <Organization>(ApiUrls.AllOrganizations()));
 }