DefaultInteractorAssistant
@MainActor
public struct DefaultInteractorAssistant<InteractorType, Request, ContentType> : InteractorAssisting where InteractorType : InteractorTypeable, Request : InteractorRequestConfiguring, ContentType : ContentTypeable
A default assistant to be used to configure Interactor actions. This assistant passes along the given action type and optional content with the request to the interactor. If the incoming content is the same type as the Request’s RequestContentType, it’s also passed to the request’s init(action:content:) initializer, otherwise no content is passed in.
-
Declaration
Swift
@MainActor public let interactorType: InteractorType -
Declaration
Swift
@MainActor public var requestMethod: InteractorRequestMethod -
Undocumented
Declaration
Swift
@MainActor public init(interactorType: InteractorType) -
Declaration
Swift
@MainActor public func handleRequest<Destination>(destination: Destination, actionType: Request.ActionType, content: ContentType?) where InteractorType == Destination.InteractorType, ContentType == Destination.ContentType, Destination : Destinationable
View on GitHub