How abhiramchil/wandersync works
Main Components
• User Interface (UI) Layer: Represent Activities and Fragments.
• Primary activities such as MainActivity and SecondActivity.
• Fragments (DestinationFragment, DiningEstablishmentsFragment, AccommodationsFragment, LogisticsFragment, TransportationFragment, TravelCommunityFragment) with clear labels showing their purpose (e.g., itinerary management, dining options).
• Adapter classes as part of the UI layer (AccommodationAdapter, ReservationAdapter, TravelPostAdapter).
• ViewModel Layer:
• ViewModels (e.g., AccommodationViewModel, AccountCreationViewModel, DestinationViewModel, LoginPageViewModel, LogisticsViewModel) that mediate communication between UI and data.
• Data/Model Layer:
• Model classes (Accommodation, Reservation, TravelPost, DestinationFragmentModel, MainFragmentModel, LogisticsFragmentModel) that hold the business logic and data.
• FirebaseDatabaseHelper as the core component that manages interactions with Firebase.
• Firebase & External Services:
• Architectural Patterns:
• Use of the Singleton pattern (for shared resources like FirebaseDatabaseHelper) and adherence to SOLID design principles.
• From UI elements (Activities/Fragments) to their respective ViewModels. This demonstrates user interactions triggering business logic.
• From ViewModels to Model components to illustrate data processing and business logic.
• From Model components to the Firebase service node which handles data persistence and authentication.