Module mydata_did.v1_0.handlers.data_agreement_qr_code_problem_report_handler
Expand source code
from aries_cloudagent.messaging.base_handler import BaseHandler, BaseResponder, RequestContext
from ..messages.data_agreement_qr_code_problem_report import DataAgreementQrCodeProblemReport
from ..manager import ADAManager
import json
class DataAgreementQrCodeProblemReportHandler(BaseHandler):
"""Handle for data-agreement-qr-code/1.0/problem-report message"""
async def handle(self, context: RequestContext, responder: BaseResponder):
"""
Message handler logic for data-agreement-qr-code/1.0/problem-report message.
"""
# Assert if received message is of type DataAgreementQrCodeProblemReport
assert isinstance(context.message, DataAgreementQrCodeProblemReport)
self._logger.info(
"Received data-agreement-qr-code/1.0/problem-report message: \n%s",
json.dumps(context.message.serialize(), indent=4)
)
Classes
class DataAgreementQrCodeProblemReportHandler
-
Handle for data-agreement-qr-code/1.0/problem-report message
Initialize a BaseHandler instance.
Expand source code
class DataAgreementQrCodeProblemReportHandler(BaseHandler): """Handle for data-agreement-qr-code/1.0/problem-report message""" async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for data-agreement-qr-code/1.0/problem-report message. """ # Assert if received message is of type DataAgreementQrCodeProblemReport assert isinstance(context.message, DataAgreementQrCodeProblemReport) self._logger.info( "Received data-agreement-qr-code/1.0/problem-report message: \n%s", json.dumps(context.message.serialize(), indent=4) )
Ancestors
- aries_cloudagent.messaging.base_handler.BaseHandler
- abc.ABC
Methods
async def handle(self, context: aries_cloudagent.messaging.request_context.RequestContext, responder: aries_cloudagent.messaging.responder.BaseResponder)
-
Message handler logic for data-agreement-qr-code/1.0/problem-report message.
Expand source code
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for data-agreement-qr-code/1.0/problem-report message. """ # Assert if received message is of type DataAgreementQrCodeProblemReport assert isinstance(context.message, DataAgreementQrCodeProblemReport) self._logger.info( "Received data-agreement-qr-code/1.0/problem-report message: \n%s", json.dumps(context.message.serialize(), indent=4) )