Skip to content

Conversation

@ZhiXuZhao
Copy link

#EECS3311
This pull request applies aggregate pattern in app/location/init.py.

Instead of def init( self, id, country, province, coordinates, last_updated, confirmed, deaths, recovered ):

create a class CaseNumbers which has attribute id, confirmed, deaths, recovered. A class Locationinfo which has attribute id, country, coordinates and province.

So class Location's constructor becomes def init(
self, id, locationinfo, last_updated, casenumbers
):

CaseNumbers, Locationinfo, coordinate and Location forms an aggregate with Location as aggregate root.

@ExpDev07
Copy link
Owner

Closing, low effort PR. Good luck in your assignment! :)

@ExpDev07 ExpDev07 closed this Jul 24, 2021
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

Successfully merging this pull request may close these issues.

2 participants