Use base class for Online and Offline#151
Merged
kzscisoft merged 10 commits intosupport_v2_serverfrom Mar 5, 2024
Merged
Conversation
Closed
11 tasks
Collaborator
|
There is extensive use of |
Collaborator
Author
I have re-added the missing function |
Collaborator
|
References to |
Collaborator
|
There's an argument to |
alahiff
approved these changes
Mar 4, 2024
Collaborator
alahiff
left a comment
There was a problem hiding this comment.
After making some small corrections and adding my recent work on offline mode, I'm happy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Simvuefunction which chooses between offline and online versions of the core functionality now selects between two classes which inherit from a common base class.This has the advantage of ensuring that methods are present in both and the Simvue client requires no knowledge of which it is using calling the inherited methods.
The code for these changes can be found within the
simvue/factorysub-directory.simvue.factory