Search in sources :

Example 1 with RemoveAccountCommandParameters

use of com.microsoft.identity.common.internal.commands.parameters.RemoveAccountCommandParameters in project microsoft-authentication-library-common-for-android by AzureAD.

the class RemoveAccountCommand method execute.

@Override
public Boolean execute() throws Exception {
    final String methodName = ":execute";
    boolean result = false;
    for (int ii = 0; ii < getControllers().size(); ii++) {
        final BaseController controller = getControllers().get(ii);
        com.microsoft.identity.common.internal.logging.Logger.verbose(TAG + methodName, "Executing with controller: " + controller.getClass().getSimpleName());
        result = controller.removeAccount((RemoveAccountCommandParameters) getParameters());
    }
    return result;
}
Also used : BaseController(com.microsoft.identity.common.internal.controllers.BaseController) RemoveAccountCommandParameters(com.microsoft.identity.common.internal.commands.parameters.RemoveAccountCommandParameters)

Aggregations

RemoveAccountCommandParameters (com.microsoft.identity.common.internal.commands.parameters.RemoveAccountCommandParameters)1 BaseController (com.microsoft.identity.common.internal.controllers.BaseController)1