-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 5.1.0 - Segregating interfaces to each functionality #97
Merged
Conversation
This file contains 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.
Changes
The main purpose of this version is to make it easier to know how does Mid replies work and make easier to use too.
Improvements
IAcknowledge
IAcknowledgeable<TAckMid>
IAnswerableBy<TAnswerMid>
IAcceptableCommand
IDeclinableCommand
ISubscription
IUnsubscription
New Features
GetAcknowledge<TAckMid>()
to get the acknowledge for the mid instance instead of finding yourself which is the ack midGetReply<TAnswerMid>()
to generate the respective reply mid of the instance instead of finding yourself which one is the reply mid. (for replies that have additional params, a raw instance will be generate with the same revision but you'll have too set other parameters by yourself)GetReply<TAnswerMid>(int revision)
same as above, however you can inform the informed revisionGetAcceptCommand<TAcceptedMid>
generateMid0005
to the accepted midGetDeclinedCommand<TAcceptedMid>
generateMid0004
to the declined mid with informed errorAssertAndGetDeclineCommand<TDeclinedMid>
same as above, however it ensures it's a documented error that you informed, if not, anArgumentException
is thrownErrors
:WRONG_TOOL_TYPE_TO_PSET_DOWNLOAD_CONNECTED
=> 26TOOL_IS_INACCESSIBLE
=> 27JOB_ABORTION_IS_IN_PROGRESS
=> 28,TOOL_DOES_NOT_EXIST
=> 29OTHER_MASTER_CLIENT_ALREADY_CONNECTED
=> 35LOCK_TYPE_NOT_SUPPORTED
=> 36PAIRING_FAILED
=> 61PAIRING_DENIED
=> 62PAIRING_OR_PAIRING_ABORTION_ATTEMPT_ON_WRONG_TOOLTYPE
=> 63PAIRING_ABORTION_DENIED
=> 64PAIRING_ABORTION_FAILED
=> 65PAIRING_DISCONNECTION_FAILED
=> 66PAIRING_IN_PROGRESS_OR_ALREADY_DONE
=> 67PAIRING_DENIED_NO_PROGRAM_CONTROL
=> 68UNSUPPORTED_EXTRA_DATA_REVISION
=> 69SUBSCRIBED_MID_UNSUPPORTED
=> 73SUBSCRIBED_MID_REVISION_UNSUPPORTED
=> 74REQUESTED_MID_UNSUPPORTED
=> 75REQUESTED_MID_REVISION_UNSUPPORTED
=> 76REQUESTED_ON_SPECIFIC_DATA_NOT_SUPPORTED
=> 77SUBSCRIPTION_ON_SPECIFIC_DATA_NOT_SUPPORTED
=> 78AUDI_EMERGENCY_STATUS_SUBSCRIPTION_EXISTS
=> 80AUDI_EMERGENCY_STATUS_SUBSCRIPTION_DOESNT_EXISTS
=> 81