public getUsersSitesFromAccess ( UserAccess access ) : |
||
access | UserAccess | |
Результат |
private static void GetUsersSitesFromAccess() { var usersManager = new UsersManager(); usersManager.setTokenAuth("XYZ"); var users = usersManager.getUsersSitesFromAccess(UsersManager.UserAccess.view); if (users.ContainsKey("result") && users["result"].Equals("error")) { Console.WriteLine("Error! " + users["message"]); return; } foreach (DictionaryEntry pair in users) { Console.WriteLine("------------------------------"); Console.WriteLine(pair.Key + ":"); foreach (int idSite in (ArrayList)pair.Value) { Console.WriteLine(idSite); } } }