static TwoFactorType ParseTwoFactorType(ApiException exception) { return(exception == null ? TwoFactorType.None : Connection.ParseTwoFactorType(exception.HttpResponse)); }