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

BUG (NuGet): Geotab.Checkmate.ObjectModel.ToVersion is a long, should be a string #155

Open
IanKemp opened this issue Oct 12, 2021 · 0 comments

Comments

@IanKemp
Copy link

IanKemp commented Oct 12, 2021

I don't know why whoever wrote the NuGet package decided to completely ignore your own API docs that say this field is a string, but this property's definition needs to be corrected. Just because it looks like a hexadecimal number, doesn't mean it's a hexadecimal number.

For anyone else struggling with this, because they need to use FeedResult.ToVersion as the fromVersion in a subsequent call to GetFeed, you need to do the following:

var fromVersion = feedResult?.ToVersion?.ToString("x16");

Of course, should this property be corrected to string, the above will no longer be necessary.

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