Skip to content

Date Range handler#5

Merged
TheOneHoff merged 15 commits intodevelopfrom
feature/daterange-handler
Jul 30, 2025
Merged

Date Range handler#5
TheOneHoff merged 15 commits intodevelopfrom
feature/daterange-handler

Conversation

@TheOneHoff
Copy link
Owner

@TheOneHoff TheOneHoff commented Jul 30, 2025

OpenElectricity does not use standard pagination for the data.

Instead, the amount of data retrieved depends on the time difference between the start_date and end_date parameters, as well as the interval parameter.

These extension functions have been added to simplify the process of splitting the requested time range into multiple requests.

Just as the default functions return a Task that must be handled by the user, these functions instead return a Collection of Tasks that must be handled by the user.

This PR also includes some minor refactoring to help with maintaining the deserialization process.

Also add an enum value that was missing before.

@TheOneHoff TheOneHoff merged commit a8748c9 into develop Jul 30, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant