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

backend-refactor-61-repo_package_cleaner_convention #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

standard-librarian
Copy link
Collaborator

@standard-librarian standard-librarian commented Apr 13, 2023

Cleaner naming convention used for the repo package

added suffix -Impl to the classes and removed prefix I- from Interfaces in the repo package.

@standard-librarian standard-librarian changed the title refactor repl packing, use -impl (suffix) to the classes and remove I- (prefix) from interfaces backend-refactor-61-repo_package_cleaner_convention Apr 13, 2023
@standard-librarian standard-librarian self-assigned this Apr 13, 2023
@@ -46,13 +46,13 @@
* @author Mohamed Sallam
*/
public class LockService extends Service {
private final DetoxPeriodRepository detoxPeriodRepository;
private final DetoxPeriodRepositoryImpl detoxPeriodRepository;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private final DetoxPeriodRepositoryImpl detoxPeriodRepository;
private final DetoxPeriodRepository detoxPeriodRepository;

I think this the use of the interface.
Don't forget to import its lib.

Comment on lines +31 to +33
private DeviceRepositoryImpl deviceRepository;
private GroupRepositoryImpl groupRepository;
private DetoxPeriodRepositoryImpl detoxPeriodRepository;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private DeviceRepositoryImpl deviceRepository;
private GroupRepositoryImpl groupRepository;
private DetoxPeriodRepositoryImpl detoxPeriodRepository;
private DeviceRepository deviceRepository;
private GroupRepositoryI groupRepository;
private DetoxPeriodRepository detoxPeriodRepository;

The same as before.

@@ -33,7 +33,7 @@
* @author Mohamed Sallam
*/
public class UpdateGroupViewModel extends AndroidViewModel {
private final GroupRepository groupRepository;
private final GroupRepositoryImpl groupRepository;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private final GroupRepositoryImpl groupRepository;
private final GroupRepository groupRepository;

The same as before.

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

Successfully merging this pull request may close these issues.

[REFACTOR] Use Convenient Naming Convention for repo Package
2 participants