Android: split StreamViewModel, which implements twelve interfaces #333
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
StreamViewModelimplementsRepositoryActions,Capturing,StreamReading,StateLists,Timesheets,Activities,Overviews,Notes,ChangesActions,ConfiguringandWorkingTime. Each method mostly forwards tosession.value?.x(..., Instant.now()) ?: X.Failed(NO_STREAM), sometimes followed bywritten(id).Appthen takes about 13 parameters that are all this same object.Proposal
Streamd(or overStreamSessionplus the clock andRepositoryConnection.written): states, timesheets, activities, notes, configuration, capture.Appone holder of them (for exampleAppActions) instead of thirteen parameters.StateFlows andviewModelScope.Related: the action interfaces live in three places (separate ticket).
Found in a review of the Android app.