//
// Copyright © 2023 Nevis Security AG. All rights reserved.
//

import NevisMobileAuthentication

protocol UserInteractionMethodHandler: MethodHandler {
	func execute(using client: MobileAuthenticationClient, with message: ChannelInMessage, operation: UserInteractionOperation)
}

extension UserInteractionMethodHandler {
	func execute(using client: MobileAuthenticationClient, with message: ChannelInMessage) {
		let operation: UserInteractionOperation = OperationCache.shared.read(by: message.operationId)
		execute(using: client, with: message, operation: operation)
	}
}
