Skip to content

Conversation

@Billa32
Copy link

@Billa32 Billa32 commented Aug 16, 2021

Why I did it?
Within the Structural Patterns I decided to use Adapter Design Method to allow objects with incompatible interfaces to collaborate

How I did it?
I Created a Replica of location class because serializer function has different behavior for CSBS LOCATION Class thus we created a class Location adapter "making changes in "init_py"
and using the Csbs.py i had to update serializer response and removed it from csbslocation class.

Billa32 added 5 commits July 25, 2021 23:24
reason of creating a base_url cause it was assigned hardcoded in scripts and it is better to set hardcoded variables seperately in a class thus created a new baseurl
files that are being used for baseurls.py
Why I did it?
I have used the factory design pattern to do my creational pattern where i had to provide an interface for creating objects in superclass, but allowing subclasses to alter the type of objects that will be created. 
How i did it?
I created a new interface class for location to implement creational pattern and the interface for location class is missing so i just added an interface class and serialized the location into a dict.
@Kilo59 Kilo59 closed this Aug 21, 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