Skip to content

Implementing a Proxy class for the GitHub data#83

Open
Benjamin-Pickers wants to merge 2 commits intoAaronWard:masterfrom
Benjamin-Pickers:github_proxy
Open

Implementing a Proxy class for the GitHub data#83
Benjamin-Pickers wants to merge 2 commits intoAaronWard:masterfrom
Benjamin-Pickers:github_proxy

Conversation

@Benjamin-Pickers
Copy link
Copy Markdown

I refactored the src folder so that, github.py now has a class Github and implements the interface DataInterface. The interface makes the Github class implement the function get(), which is the main function used to get the data. Once wiki.py is implemented, then it can also implement the interface.

I then implemented the Proxy pattern by adding a class called GithubProxy which acts as a proxy for the Github class. This proxy helps separate the Github object from the user by forcing them to go through the proxy, thus making it so that they cannot access any unneeded functions and they can not alter the original data.

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.

1 participant