public static DataState ReduceCancelEdit(DataState state, CancelEditAction action) { return(new DataState(state.Thootles, false, stagedThootle: null)); }
public static DataState ReduceFetchDataAction(DataState state, FetchDataAction action) { return(new DataState(state.Thootles, true)); }
public static DataState ReduceUpdate(DataState state, UpdateAction action) { return(new DataState(state.Thootles, true, stagedThootle: action.Thootle)); }
public static DataState ReduceBeginEdit(DataState state, BeginEditAction action) { return(new DataState(state.Thootles, false, stagedThootle: action.Thootle)); }
public static DataState ReduceErrorAction(DataState state, ErrorAction action) { return(new DataState(state.Thootles, false, action.Error)); }
public static DataState ReduceDeleteDataAction(DataState state, DeleteDataAction action) { return(new DataState(state.Thootles, true)); }
public static DataState ReduceFetchDataResultAction(DataState state, FetchDataResultAction action) { return(new DataState(action.Thootles, false)); }