Skip to content
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

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

Open
anbarasu-seven opened this issue May 8, 2018 · 3 comments

Comments

@anbarasu-seven
Copy link

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 anbarasu-seven changed the title can you tell me where to put FirebaseEventListener inside this repository? can you tell me where to put FirebaseEventListener inside this MVP project? May 8, 2018
@amitshekhariitbhu
Copy link
Contributor

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

@anbarasu-seven
Copy link
Author

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
Copy link
Author

I will try that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants