Esempio n. 1
0
        /// <summary>
        /// Method to get a list of all the Users listed in a current city from the DWP Api
        /// </summary>
        /// <param name="city"> A string representing the city i.e. "London" </param>
        /// <returns> List<User> representing all the users listed in the given city </returns>
        public static async Task <List <User> > GetAllUsersListedInCity(string city)
        {
            string      url   = baseUrl + String.Format("city/{0}/users", city);
            List <User> users = new List <User>();

            users = await DwpApiRequests.GetRequiredUsers(url);

            return(users);
        }
Esempio n. 2
0
        /// <summary>
        /// Method to get a list of all the current Users from the DWP Api
        /// </summary>
        /// <returns> List<User> representing all the current users </returns>
        public static async Task <List <User> > GetAllUsers()
        {
            string      url   = baseUrl + "users";
            List <User> users = new List <User>();

            users = await DwpApiRequests.GetRequiredUsers(url);

            return(users);
        }