package com.reduks.reduks.repository

import com.reduks.reduks.Action
import com.reduks.reduks.Store

class FakeData {

    companion object Provider {
        var store = Store(
                FakeState(0, ""),
                { state, action -> action.action(state) }
        )
    }
}

data class FakeState(val id: Int, val name: String)

sealed class FakeActions : Action<FakeState> {

    class SetValidState : FakeActions() {
        override fun action(state: FakeState): FakeState = FakeState(1, "Bloder")
    }
}
package com.reduks.reduks.repository

import com.reduks.reduks.Action
import com.reduks.reduks.Store

class FakeData {

    companion object Provider {
        var store = Store(
                FakeState(0, ""),
                { state, action -> action.action(state) }
        )
    }
}

data class FakeState(val id: Int, val name: String)

sealed class FakeActions : Action<FakeState> {

    class SetValidState : FakeActions() {
        override fun action(state: FakeState): FakeState = FakeState(1, "Bloder")
    }

    class EmptyAction : FakeActions()
}
Create empty action as example
Create empty action as example

Reduks/Reduks