// Elenco utenti collegati private static async Task Scenario_6() { string account = "me"; string url = Constants.REST_MULTIDIALOGO_STAGE_HOST + "/users/" + account + "/users?include=user-profiles"; HttpResponseMessage response = await SendRequest(url, null, "Get"); if (response == null || response.Content == null) { return; } string responseBody = await response.Content.ReadAsStringAsync(); UserResponse userResponse = JsonConvert.DeserializeObject <UserResponse>(responseBody); Console.WriteLine("Utenti:"); Console.WriteLine("----------------------------------------------"); Console.WriteLine("Id | IsActive | Group | Username | Displayname"); Console.WriteLine("----------------------------------------------"); foreach (UserExtended u in userResponse.GetUsers()) { Console.WriteLine(u); } }