-
Notifications
You must be signed in to change notification settings - Fork 0
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
Some points on a naming convention and redundant code check #16
Comments
Calling it an adapter is the convention I'm used to using, but I have no objections to renaming the classes to mapper since that is their main function 😄
I decided on calling them repositories for consistency with
Yes we can get rid of this, the only usage is the hardcoded
These are oversights on my part, will remove both |
Another approach is we could use
👍 We would move to another package |
Removed unused code and renamed classes in PR #19 |
@ryan-conway Just a minor thing, should we rename the |
SurveyAdapter
andTokenAdapter
to convert the object to the entity by mapping the object's properties, so I think it should bemapper
class instead ofadapter
. How do you think?It means that we could use the repository class in case working with the data sources. With the
DispatcherRepository
from the project, If I am not wrong, you only use it to share theio
andmain
dispatch to ViewModel therefore I would suggest renaming this class toDispatcherProvider
. It's the same asTimeRepository
. Do you have any intention to use the current name? Don't hesitate to share your idea.survey-exam/domain/src/main/java/com/example/nimblesurveys/domain/repository/DispatcherRepository.kt
Lines 5 to 8 in 3ae3ac7
This class is not being invoked from any place, could we get rid of this class?
survey-exam/data/src/main/java/com/example/nimblesurveys/data/api/Retrofit.kt
Lines 9 to 24 in 3ae3ac7
Redundant breakline on SignInRequest class
survey-exam/data/src/main/java/com/example/nimblesurveys/data/api/auth/SignInRequest.kt
Lines 5 to 16 in 3ae3ac7
The onBackPressed on the MainActivity is not being used.
survey-exam/app/src/main/java/com/example/nimblesurveys/MainActivity.kt
Lines 46 to 48 in 3ae3ac7
The text was updated successfully, but these errors were encountered: