Hi ASerge, what you don't understand is:
- The server returns the string that's passed to that function, and always is ok.
- I never pass any string to it made by the user / myself, so passing 'Some trash text' is not the point.
If you say that it needs a default value, it looses it's functionality, to convert from string to enum, to one that is already fine in the response.
You say that I need to add a new enum value like rjError, rjDefault? And if there is none found return that?
Well, I think about that, but I choose to don't do that, since I have a lot of enums, and adding non compatible values with the API of the fiscal printer, it will make more problems, like passing rjDefault to one of the commands, and having error with that.
If the string is always ok, what's the point?