Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Services API: Fix inconsistent results
- Fix the bug in the existing code. The code for xml translates enum variables to their names (if they use Q_ENUM), but the code for json does not. Add the missing code to the json serializer so that enum variables are treated the same in all cases. - Change the Status field to be an int so that it always returns the numeric value - Add a field StatusName that is defined as a RecStatus enum and returns the enum value name. - Change the RecStatusToString and RecStatusToDescription methods to take either the numeric Status value or the enum value name. Fixes #740
- Loading branch information
1 parent
09c82a1
commit 902a1f7
Showing
6 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
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
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