"""Represents an request for an invitation from the introduction service."""
from marshmallow import fields
from ...agent_message import AgentMessage, AgentMessageSchema
from ..message_types import INVITATION_REQUEST
HANDLER_CLASS = (
"aries_cloudagent.messaging.introduction.handlers."
+ "invitation_request_handler.InvitationRequestHandler"
)
[docs]class InvitationRequest(AgentMessage):
"""Class representing an invitation request."""
def __init__(self, *, responder: str = None, message: str = None, **kwargs):
"""
Initialize invitation request object.
Args:
responder: The name of the agent initiating the introduction
message: Comments on the introduction
"""
super(InvitationRequest, self).__init__(**kwargs)
self.responder = responder
self.message = message
[docs]class InvitationRequestSchema(AgentMessageSchema):
"""Invitation request schema class."""
responder = fields.Str(required=True)
message = fields.Str(required=False, allow_none=True)