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