Skip to content

All outstanding work done.

Latest
Compare
Choose a tag to compare
@rmuit rmuit released this 05 Nov 16:49
· 8 commits to master since this release

More things have changed than expected since the beta, and I'm breaking compatibility again (which isn't nice, but given the very low user base I think I can get away with it still). The concept of the existing methods hasn't changed but some of them have been renamed and moved to different classes.

Renamed classes

  • CopernicaRestClient -> RestClient
  • CopernicaHelper -> Helper

Moved methods

  • CopernicaRestClient::getEntitiesNextBatch() -> BatchableRestClient::getMoreEntities()
  • CopernicaRestClient::lastEntitiesDatasetIsComplete() -> BatchableRestClient::allEntitiesFetched()
  • CopernicaRestClient::backupState() -> BatchableRestClient:: getState()
  • CopernicaRestClient::restoreState() -> BatchableRestClient:: setState()

Additions

Batched fetching has its dedicated class now, BatchableRestClient, which extends RestClient for some separation of the extra necessary logic/state. Besides the older getMoreEntities(), an alternative getMoreEntitiesOrdered() has been added which does the same using different, often safer, logic. (See the code comments.)