Implement the equivalent of the following AAT Android Worker:
FailTrackable
As part of this, we should introduce the notion of "final" trackable states. Setting a "final" state a second time, or trying to update the trackable state (via various calls to updateTrackableState) should not succeed if a "final" state has been entered.
A final state is entered when:
A trackable is failed (see FailTrackableWorker). At this point the state should be set to FAILED.
A trackable is in the process of being removed (called before we start to disconnect the ably channel). At this point the state should be set to OFFLINE.
A trackables final state should be removed when:
The trackable has finished being removed (if the state being final is stored somewhere outside the trackable itself)
The FailTrackableWorker:
Disconnects the Ably channel
Sets the final state of Failed (along with ErrorInformation) for the trackable.
Implement the equivalent of the following AAT Android Worker:
As part of this, we should introduce the notion of "final" trackable states. Setting a "final" state a second time, or trying to update the trackable state (via various calls to updateTrackableState) should not succeed if a "final" state has been entered.
A final state is entered when:
A trackables final state should be removed when:
The FailTrackableWorker:
This work depends on: