diff options
| author | Roy <Roy.mail.net@gmail.com> | 2023-07-10 08:59:22 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2023-07-10 08:59:22 +0300 |
| commit | 29c5cb29d6653164328720f7b360f234d9b68a56 (patch) | |
| tree | 2b8161289e919194d69cdc1922c4c0b0673eb98c /Software/Visual_Studio/Tango.Integration | |
| parent | 63aabf3e7a17feaf9765049c2cf515cfb35d42d8 (diff) | |
| download | Tango-29c5cb29d6653164328720f7b360f234d9b68a56.tar.gz Tango-29c5cb29d6653164328720f7b360f234d9b68a56.zip | |
Added support for GetVersionDescriptors, ResetCard and new Events Table.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs | 13 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 20 |
2 files changed, 33 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs index 5db477b6b..68ed696fa 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs @@ -593,5 +593,18 @@ namespace Tango.Integration.Operation /// </summary> /// <param name="approved">Approve or decline the sequence.</param> Task CompleteWasteReplacement(bool approved); + + /// <summary> + /// Gets the list of firmware version descriptors. + /// </summary> + /// <returns></returns> + Task<List<VersionFileDescriptor>> GetFirmwareVersionDescriptors(); + + /// <summary> + /// Resets the firmware card by the specified card id. + /// </summary> + /// <param name="cardID">The card identifier.</param> + /// <returns></returns> + Task ResetCard(int cardID); } } diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 430533768..2d066a78f 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -4637,6 +4637,26 @@ namespace Tango.Integration.Operation } } + /// <summary> + /// Gets the list of firmware version descriptors. + /// </summary> + /// <returns></returns> + public async Task<List<VersionFileDescriptor>> GetFirmwareVersionDescriptors() + { + var response = await SendRequest<GetVersionDescriptorsRequest, GetVersionDescriptorsResponse>(new GetVersionDescriptorsRequest()); + return response.Message.Descriptors.ToList(); + } + + /// <summary> + /// Resets the firmware card by the specified card id. + /// </summary> + /// <param name="cardID">The card identifier.</param> + /// <returns></returns> + public Task ResetCard(int cardID) + { + return SendRequest<ResetCardRequest, ResetCardResponse>(new ResetCardRequest() { }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(10) }); + } + #endregion } } |
