android-kotlin-mvp-architecture icon indicating copy to clipboard operation
android-kotlin-mvp-architecture copied to clipboard

can you tell me where to put FirebaseEventListener inside this MVP project?

Open anbarasu-seven opened this issue 7 years ago • 3 comments

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.

anbarasu-seven avatar May 08 '18 05:05 anbarasu-seven

You can create the class very similar to preference. It should be singleton.

amitshekhariitbhu avatar May 15 '18 09:05 amitshekhariitbhu

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.

anbarasu-seven avatar May 15 '18 09:05 anbarasu-seven

I will try that

anbarasu-seven avatar May 15 '18 09:05 anbarasu-seven