Beispiel #1
0
 public static DataState ReduceCancelEdit(DataState state, CancelEditAction action)
 {
     return(new DataState(state.Thootles, false, stagedThootle: null));
 }
Beispiel #2
0
 public static DataState ReduceFetchDataAction(DataState state, FetchDataAction action)
 {
     return(new DataState(state.Thootles, true));
 }
Beispiel #3
0
 public static DataState ReduceUpdate(DataState state, UpdateAction action)
 {
     return(new DataState(state.Thootles, true, stagedThootle: action.Thootle));
 }
Beispiel #4
0
 public static DataState ReduceBeginEdit(DataState state, BeginEditAction action)
 {
     return(new DataState(state.Thootles, false, stagedThootle: action.Thootle));
 }
Beispiel #5
0
 public static DataState ReduceErrorAction(DataState state, ErrorAction action)
 {
     return(new DataState(state.Thootles, false, action.Error));
 }
Beispiel #6
0
 public static DataState ReduceDeleteDataAction(DataState state, DeleteDataAction action)
 {
     return(new DataState(state.Thootles, true));
 }
Beispiel #7
0
 public static DataState ReduceFetchDataResultAction(DataState state, FetchDataResultAction action)
 {
     return(new DataState(action.Thootles, false));
 }