PROTOCOL
GenericClientOperationHandler
public protocol GenericClientOperationHandler
An interface declaration for customizing the handling of a GenericClientOperationActionModel
.
Methods
handleGenericClientOperation(actionModel:viewControllerProvider:onSuccess:onError:)
func handleGenericClientOperation(actionModel: GenericClientOperationActionModel,
viewControllerProvider: ((UIViewController) -> Void)?,
onSuccess: @escaping (any RepresentationActionModel, [String: Any]) -> Void,
onError: @escaping () -> Void)
Handles a GenericClientOperationActionModel
that requires a custom client implementation.
- Parameters:
- actionModel: A
GenericClientOperationActionModel
to be handled. - viewControllerProvider: A provider that may return a
UIViewController
capable of handling theactionModel
. - onSuccess: A successful closure when
actionModel
was handled successfully. It requires the action and parameters to submit. - onFailure: A failure closure when model cannot be handled.
- actionModel: A
Parameters
Name | Description |
---|---|
actionModel | A GenericClientOperationActionModel to be handled. |
viewControllerProvider | A provider that may return a UIViewController capable of handling the actionModel . |
onSuccess | A successful closure when actionModel was handled successfully. It requires the action and parameters to submit. |
onFailure | A failure closure when model cannot be handled. |