-
Notifications
You must be signed in to change notification settings - Fork 10
Refactor: ResetPasswordViewController - ViewModel #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Refactor: ResetPasswordViewController - ViewModel #27
Conversation
| success ? self.delegate?.showSuccess() : self.delegate?.showError( | ||
| "Algo de errado aconteceu. Tente novamente mais tarde." | ||
| ) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
salve salve @ppedroam !
Como a BadNetworkLayer.shared.resetPassword precisa de uma referencia pra viewModel fiquei com receio de criar a camada de service e passar uma referencia de viewController para a camada de serviço. Alguma sugestão?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
salve salve @ppedroam ! Acha que vale também neste PR conter as alterações de view para viewCode? |
| textLabel.text = "Ocorreu um erro inesperado" | ||
| } | ||
| extension LuzResetPasswordViewController: LuzResetPasswordViewModelDelegate { | ||
| func showError(_ message: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show error what? alerta? melhorar nome
| return [ | ||
| "email" : email | ||
| ] | ||
| func showSuccess() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showSucces what? melhorar nome
ppedroam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code review 1

Apenas refatora e reset password view controller para separação de camadas