return generic style
This commit is contained in:
parent
1a63c13680
commit
e97d8dcafb
|
|
@ -9,8 +9,11 @@ import ru.touchin.roboswag.mvi_arch.marker.ViewState
|
||||||
/**
|
/**
|
||||||
* Interface with the main MVI methods and fields
|
* Interface with the main MVI methods and fields
|
||||||
*/
|
*/
|
||||||
interface IMvi<NavArgs : Parcelable, Action : ViewAction, State : ViewState, VM>
|
interface IMvi<NavArgs, Action, State, VM>
|
||||||
where VM : MviViewModel<NavArgs, Action, State> {
|
where NavArgs : Parcelable,
|
||||||
|
State : ViewState,
|
||||||
|
Action : ViewAction,
|
||||||
|
VM : MviViewModel<NavArgs, Action, State> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use [viewModel] extension to get an instance of your view model class.
|
* Use [viewModel] extension to get an instance of your view model class.
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ import javax.inject.Inject
|
||||||
*/
|
*/
|
||||||
abstract class MviFragment<NavArgs, State, Action, VM>(
|
abstract class MviFragment<NavArgs, State, Action, VM>(
|
||||||
@LayoutRes layout: Int
|
@LayoutRes layout: Int
|
||||||
) : BaseFragment<BaseActivity>(layout), IMvi<NavArgs, State, Action, VM>
|
) : BaseFragment<BaseActivity>(layout), IMvi<NavArgs, Action, State, VM>
|
||||||
where NavArgs : Parcelable,
|
where NavArgs : Parcelable,
|
||||||
State : ViewState,
|
State : ViewState,
|
||||||
Action : ViewAction,
|
Action : ViewAction,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue