public class OnCommand<State,Command,OutCommand>
| Constructor and Description |
|---|
OnCommand(kotlin.reflect.KClass<Command> type,
java.util.List<de.halfbit.knot.dsl.OnCommandUpdateStateTransformer> onCommandUpdateStateTransformers,
java.util.List<de.halfbit.knot.dsl.TypedCommandToCommandTransformer> onCommandToCommandTransformers) |
| Modifier and Type | Method and Description |
|---|---|
void |
issueCommand(kotlin.jvm.functions.Function2<? super de.halfbit.knot.dsl.WithState<State>,? super io.reactivex.Observable<Command>,? extends io.reactivex.Observable<OutCommand>> transform) |
void |
updateState(kotlin.jvm.functions.Function2<? super de.halfbit.knot.dsl.WithStateReduce<State>,? super io.reactivex.Observable<Command>,? extends io.reactivex.Observable<kotlin.jvm.functions.Function1<de.halfbit.knot.dsl.WithState<State>,State>>> transform) |
public OnCommand(kotlin.reflect.KClass<Command> type,
java.util.List<de.halfbit.knot.dsl.OnCommandUpdateStateTransformer> onCommandUpdateStateTransformers,
java.util.List<de.halfbit.knot.dsl.TypedCommandToCommandTransformer> onCommandToCommandTransformers)
public void updateState(kotlin.jvm.functions.Function2<? super de.halfbit.knot.dsl.WithStateReduce<State>,? super io.reactivex.Observable<Command>,? extends io.reactivex.Observable<kotlin.jvm.functions.Function1<de.halfbit.knot.dsl.WithState<State>,State>>> transform)
public void issueCommand(kotlin.jvm.functions.Function2<? super de.halfbit.knot.dsl.WithState<State>,? super io.reactivex.Observable<Command>,? extends io.reactivex.Observable<OutCommand>> transform)