-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: rename Handler to MessageHandler (#1161)
Signed-off-by: Timo Glastra <[email protected]> BREAKING CHANGE: Handler has been renamed to MessageHandler to be more descriptive, along with related types and methods. This means: Handler is now MessageHandler HandlerInboundMessage is now MessageHandlerInboundMessage Dispatcher.registerHandler is now Dispatcher.registerMessageHandlers
- Loading branch information
1 parent
e4e5ca1
commit 5e48696
Showing
86 changed files
with
332 additions
and
316 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
6 changes: 3 additions & 3 deletions
6
packages/action-menu/src/handlers/ActionMenuProblemReportHandler.ts
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import type { ActionMenuService } from '../services' | ||
import type { Handler, HandlerInboundMessage } from '@aries-framework/core' | ||
import type { MessageHandler, MessageHandlerInboundMessage } from '@aries-framework/core' | ||
|
||
import { ActionMenuProblemReportMessage } from '../messages' | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export class ActionMenuProblemReportHandler implements Handler { | ||
export class ActionMenuProblemReportHandler implements MessageHandler { | ||
private actionMenuService: ActionMenuService | ||
public supportedMessages = [ActionMenuProblemReportMessage] | ||
|
||
public constructor(actionMenuService: ActionMenuService) { | ||
this.actionMenuService = actionMenuService | ||
} | ||
|
||
public async handle(messageContext: HandlerInboundMessage<ActionMenuProblemReportHandler>) { | ||
public async handle(messageContext: MessageHandlerInboundMessage<ActionMenuProblemReportHandler>) { | ||
await this.actionMenuService.processProblemReport(messageContext) | ||
} | ||
} |
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
6 changes: 3 additions & 3 deletions
6
packages/action-menu/src/handlers/MenuRequestMessageHandler.ts
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
6 changes: 3 additions & 3 deletions
6
packages/core/src/modules/basic-messages/handlers/BasicMessageHandler.ts
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
6 changes: 3 additions & 3 deletions
6
packages/core/src/modules/connections/handlers/AckMessageHandler.ts
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import type { Handler, HandlerInboundMessage } from '../../../agent/Handler' | ||
import type { MessageHandler, MessageHandlerInboundMessage } from '../../../agent/MessageHandler' | ||
import type { ConnectionService } from '../services/ConnectionService' | ||
|
||
import { AckMessage } from '../../common' | ||
|
||
export class AckMessageHandler implements Handler { | ||
export class AckMessageHandler implements MessageHandler { | ||
private connectionService: ConnectionService | ||
public supportedMessages = [AckMessage] | ||
|
||
public constructor(connectionService: ConnectionService) { | ||
this.connectionService = connectionService | ||
} | ||
|
||
public async handle(inboundMessage: HandlerInboundMessage<AckMessageHandler>) { | ||
public async handle(inboundMessage: MessageHandlerInboundMessage<AckMessageHandler>) { | ||
await this.connectionService.processAck(inboundMessage) | ||
} | ||
} |
Oops, something went wrong.