mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Remove NodeBuilder to ensure that Params and Callback are always provided.
This commit is contained in:
committed by
Benoit Marty
parent
be03c50aaf
commit
02dc71c4c3
+4
-8
@@ -15,16 +15,12 @@ import io.element.android.libraries.architecture.NodeInputs
|
||||
import io.element.android.libraries.matrix.api.core.RoomId
|
||||
|
||||
interface SpaceEntryPoint : FeatureEntryPoint {
|
||||
fun nodeBuilder(
|
||||
fun createNode(
|
||||
parentNode: Node,
|
||||
buildContext: BuildContext,
|
||||
): NodeBuilder
|
||||
|
||||
interface NodeBuilder {
|
||||
fun inputs(inputs: Inputs): NodeBuilder
|
||||
fun callback(callback: Callback): NodeBuilder
|
||||
fun build(): Node
|
||||
}
|
||||
inputs: Inputs,
|
||||
callback: Callback
|
||||
): Node
|
||||
|
||||
data class Inputs(
|
||||
val roomId: RoomId
|
||||
|
||||
Reference in New Issue
Block a user