chanjungskim
03/27/2023, 2:09 AMColton Idle
03/27/2023, 6:22 AMJavier
03/27/2023, 11:23 AMefemoney
03/27/2023, 1:07 PMchanjungskim
03/30/2023, 3:04 PMJishin Dev [JD]
04/06/2023, 6:45 AMrepository
talks to the data layer (api/local dbs etc)
• usecase
uses repository
to get the required data (discount code validation, discount calculation, etc) and also manipulate final response if required.
• viewmodel
calls the usecase
upon user action and also handles UI update at the end.
this way, business logic would stay within usecase
, viewmodel
would only be responsible for user actions and ui updates, repository
abstracts the data layer.Jan
04/12/2023, 7:37 PM