flexyford / impagination

A lazy data layer for your paged records
102 stars 7 forks source link

Define the attributes and content on unrequesteds #23

Closed flexyford closed 8 years ago

flexyford commented 8 years ago

Defines and Documents the attributes and state of an Unrequested Record and an Unrequested Page.

These can be created via API calls: state.get(i); // Where i >= state.length dataset.setReadOffset(i); // Where i >= state.length

flexyford commented 8 years ago

Proposes changes to #11

flexyford commented 8 years ago

state.isPending means are there any pages pending. If any pages are rejected then the state is rejected.

There are such things as UnrequestedPages and Unrequested Records, but we should not generate them from the state.get endpoint.