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