-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
bf127bd
commit 964cb13
Showing
31 changed files
with
276 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from aries_cloudagent.messaging.base_handler import ( | ||
BaseHandler, | ||
BaseResponder, | ||
RequestContext, | ||
) | ||
from dexa_protocol.v1_0.messages.deactivate_dda import DeactivateDDAMessage | ||
from dexa_sdk.managers.dexa_manager import DexaManager | ||
|
||
|
||
class DeactivateDDAMessageHandler(BaseHandler): | ||
"""Deactivate DDA message handler logic""" | ||
|
||
async def handle(self, context: RequestContext, responder: BaseResponder): | ||
"""Handle function""" | ||
|
||
assert isinstance(context.message, DeactivateDDAMessage) | ||
|
||
# Initialise the manager. | ||
mgr = DexaManager(context) | ||
|
||
# Process the message. | ||
await mgr.process_deactivate_dda_message( | ||
context.message, context.message_receipt | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from aries_cloudagent.messaging.agent_message import AgentMessage, AgentMessageSchema | ||
from dexa_protocol.v1_0.message_types import DEACTIVATE_DDA, PROTOCOL_PACKAGE | ||
from dexa_protocol.v1_0.models.deactivate_dda_model import ( | ||
DeactivateDDABodyModel, | ||
DeactivateDDABodyModelSchema, | ||
) | ||
from marshmallow import EXCLUDE, fields | ||
|
||
HANDLER_CLASS = ( | ||
f"{PROTOCOL_PACKAGE}.handlers.deactivate_dda_handler.DeactivateDDAMessageHandler" | ||
) | ||
|
||
|
||
class DeactivateDDAMessage(AgentMessage): | ||
class Meta: | ||
handler_class = HANDLER_CLASS | ||
message_type = DEACTIVATE_DDA | ||
schema_class = "DeactivateDDAMessageSchema" | ||
|
||
def __init__(self, *, body: DeactivateDDABodyModel, **kwargs): | ||
super().__init__(**kwargs) | ||
|
||
self.body = body | ||
|
||
|
||
class DeactivateDDAMessageSchema(AgentMessageSchema): | ||
class Meta: | ||
model_class = DeactivateDDAMessage | ||
unknown = EXCLUDE | ||
|
||
body = fields.Nested(DeactivateDDABodyModelSchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
dexa_protocol/v1_0/messages/negotiation/dda_negotiation_receipt.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.