Skip to content
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

Enum values in data types. #3

Open
jjttjj opened this issue Sep 28, 2020 · 0 comments
Open

Enum values in data types. #3

jjttjj opened this issue Sep 28, 2020 · 0 comments

Comments

@jjttjj
Copy link
Owner

jjttjj commented Sep 28, 2020

Example: the algoStrategy property in com.ib.client.Order is a string internally but has setters for both a string and the com.ib.client.Types$AlgoStrategy enum, but that enum contains a subset of the valid algostrategy types and the remaining must be set with the string setter. The getter method .algoStrategy returns the enum, which will have a value of "None" if it is not a valid com.ib.client.Types$AlgoStrategy value. We need to use getAlgoStrategy to get the string version.

Should the getters with a possible getX value as well as a enum getter always return the string getX variant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant