Reputation: 574
I've written a download manager app for Android. Now i want to refactor it's structure to MVVM. but i have some questions.
Into what layer I should movedownloader
classes such as DownloadManager.java
(which manages download queue, etc), Downloader.java
(which creates an empty file then downloads data and write into that empty file), etc?
into what layer i should move Application
class which is responsible for creating database for the first time?
thanks.
Upvotes: 2
Views: 890
Reputation: 749
Let's say you have 3 layers,
Downloader.java should be in the Data layer
Upvotes: 2