Tying the Google Calendar and task list together
We now have services that can be used to create entries into a user's Google Calendar or task list; however, having that code all over our application adds unnecessary code and bloat to the components that need to interact with the services. It would be better to use a facade pattern to encapsulate the business logic around managing our brewing calendar and task list. This way, the components that want to interact with the user's calendar or task list can do it via this new service in a more refined way.
brewCalendar service wraps the business logic needed to manage both the brewing calendar and brewing task list. It also handles the logic to create all of the calendar events and tasks for a ...