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:content:) Default implementation

    Creates a request carrying optional content alongside the action to perform. The default assistants (DefaultInteractorAssistant and DefaultAsyncInteractorAssistant) 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 content and defers to init(action:). Override this if the request should incorporate content passed into the assistant.

    Declaration

    Swift

    init(action: ActionType, content: RequestContentType?)

    Parameters

    action

    The type of action to request being performed.

    content

    Optional content to incorporate into the request.