android-kotlin-mvp-architecture
android-kotlin-mvp-architecture copied to clipboard
can you tell me where to put FirebaseEventListener inside this MVP project?
Hi, I have small doubt on using android FirebaseEventListener inside my project. I don't know where to put it inside MVP architecture, But am sure it is a kind of database Interactor, that get data from firebase db. What I planned to do is creating another class same like preference,database,api reference is enough to satisfy the firebase request coming from the view. Is it ok, if not, can you tell me what kind of class(singleton/not) i have to create and where to put that class.
You can create the class very similar to preference. It should be singleton.
Thanks, is that the way or there is any other way for doing this, because i have used some github android project they also used the same way you mentioned above.
I will try that