Class Connect
- java.lang.Object
-
- marc.nguyen.minesweeper.client.domain.usecases.Connect
-
- All Implemented Interfaces:
UseCase<Connect.Params,io.reactivex.rxjava3.core.Maybe<Connect.Result>>
@Singleton public class Connect extends java.lang.Object implements UseCase<Connect.Params,io.reactivex.rxjava3.core.Maybe<Connect.Result>>
A user should be able to connect to a Minesweeper server based on a port and an IP address.The result should be :
- The minefield of the server.
- An observable to listen changes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Connect.Params
static class
Connect.Result
-
Constructor Summary
Constructors Constructor Description Connect(dagger.Lazy<ServerSocketDevice> deviceLazy, dagger.Lazy<WatchServerTiles> watchServerTilesLazy, dagger.Lazy<FetchMinefield> fetchMinefieldLazy, dagger.Lazy<WatchServerStartGame> watchServerStartGame, dagger.Lazy<WatchEndGameMessages> watchEndGameMessages, dagger.Lazy<WatchServerPlayerList> watchServerPlayerList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull io.reactivex.rxjava3.core.Maybe<Connect.Result>
execute(@NotNull Connect.Params params)
-
-
-
Constructor Detail
-
Connect
@Inject public Connect(dagger.Lazy<ServerSocketDevice> deviceLazy, dagger.Lazy<WatchServerTiles> watchServerTilesLazy, dagger.Lazy<FetchMinefield> fetchMinefieldLazy, dagger.Lazy<WatchServerStartGame> watchServerStartGame, dagger.Lazy<WatchEndGameMessages> watchEndGameMessages, dagger.Lazy<WatchServerPlayerList> watchServerPlayerList)
-
-
Method Detail
-
execute
@NotNull public @NotNull io.reactivex.rxjava3.core.Maybe<Connect.Result> execute(@NotNull @NotNull Connect.Params params)
- Specified by:
execute
in interfaceUseCase<Connect.Params,io.reactivex.rxjava3.core.Maybe<Connect.Result>>
-
-