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

Added "offset" to Result. #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

de-zakauff
Copy link

While working with the SDK, I realized that there is no way to get the offset, so if you don't retain that when passing it to the SDK for querying, the value is lost.

  • Added a new "private" field, _offset, which holds the offset value from the result XML, if it is present.
  • Added a public getter for the _offset field.
  • Updated the constructor so that if the Result XML has an offset attribute, it attempts to parse it to an integer and then set it to the _offset field.
  • Updated ResultTest to add tests for the expected offset data.

While working with the SDK, I realized that there is no way to get the offset, so if you don't retain that when passing it to the SDK for querying, the value is lost.

* Added a new "private" field, `_offset`, which holds the offset value from the result XML, if it is present.
* Added a public getter for the `_offset` field.
* Updated the constructor so that if the Result XML has an `offset` attribute, it attempts to parse it to an integer and then set it to the `_offset` field.
* Updated ResultTest to add tests for the expected `offset` data.
@de-zakauff de-zakauff changed the base branch from master to v2.2.0 May 3, 2024 16:12
@de-zakauff de-zakauff changed the base branch from v2.2.0 to master May 3, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant