InteractorRequestConfiguring
public protocol InteractorRequestConfiguring : Sendable
This protocol represents an Interactor configuration model which defines a request to perform an action.
-
An enum which defines types of actions for a particular Interactor.
Declaration
Swift
associatedtype ActionType : InteractorRequestActionTypeable -
The type of content that is sent with a request to an interactor.
Declaration
Swift
associatedtype RequestContentType : ContentTypeable -
An enum type representing the type of data that is returned from an interactor.
Declaration
Swift
associatedtype ResultData : ContentTypeable -
The type of action to request being performed.
Declaration
Swift
var action: ActionType { get } -
Undocumented
Declaration
Swift
init(action: ActionType) -
init(action:Default implementationcontent: ) Creates a request carrying optional content alongside the action to perform. The default assistants (
DefaultInteractorAssistantandDefaultAsyncInteractorAssistant) call this when building a request, so a conforming type only needs to implement this initializer and handle the content there if the request should incorporate content passed into the assistant.Default Implementation
The default implementation ignores
contentand defers toinit(action:). Override this if the request should incorporate content passed into the assistant.Declaration
Swift
init(action: ActionType, content: RequestContentType?)Parameters
actionThe type of action to request being performed.
contentOptional content to incorporate into the request.
View on GitHub