/// <summary>
        /// Method that brings the memeber list from the selected company
        /// @author Mauricio C.
        /// </summary>
        private async void Pull_Search_Request_U()
        {
            HttpClient client = new HttpClient();
            string     url    = "http://" + LoginPage.ip + ":6969/" + company2.Email + "/memberList";
            var        result = await client.GetAsync(url);

            var           json     = result.Content.ReadAsStringAsync().Result;
            UserListModel newmodel = UserListModel.FromJson(json);

            StartList_U(newmodel);
        }
Exemple #2
0
        /// <summary>
        /// This method brings 3 users from the user tree to be shown on the recommened section
        /// @author Jose A.
        /// </summary>
        private async void Pull_Better_Users()
        {
            HttpClient clientUsers = new HttpClient();
            string     url         = "http://" + LoginPage.ip + ":6969/getUser/userShuffledList";
            var        result      = await clientUsers.GetAsync(url);

            var           json         = result.Content.ReadAsStringAsync().Result;
            UserListModel newusermodel = UserListModel.FromJson(json);

            if (newusermodel.Length == 0)
            {
                return;
            }
            else
            {
                StartUserList(newusermodel);
            }
        }