Exemple #1
0
        public static async Task <List <string> > GetUserGroups(string user, string masterPassword)
        {
            using (var ocCommand = new OCGetUserGroups(user))
            {
                ocCommand.setCredentials("admin", masterPassword);
                await ocCommand.sendRequest();

                return(ocCommand.groupsList);
            }
        }
Exemple #2
0
        public static async Task <List <string> > GetUserGroups(string user)
        {
            using (var ocCommand = new OCGetUserGroups(user))
            {
                ocCommand.setCredentials(Credentials);
                await ocCommand.sendRequest();

                return(ocCommand.groupsList);
            }
        }