Skip to content

feat: added chain of responsibility pattern#48

Merged
TarasBlatnoi merged 1 commit into
mainfrom
feature/chainOfResponsibility
Sep 30, 2025
Merged

feat: added chain of responsibility pattern#48
TarasBlatnoi merged 1 commit into
mainfrom
feature/chainOfResponsibility

Conversation

@TarasBlatnoi
Copy link
Copy Markdown
Collaborator

Implemented Chain of Responsibility Pattern for GameGateway Handling
Introduced the IHandler interface and a BaseHandler class to define a consistent structure for all handlers.
Created multiple concrete handlers extending BaseHandler, each responsible for handling specific logic.
Added a helper class to construct and execute the chain, calling canHandle() on each handler in sequence.
Refactored the GameGateway method to use this pattern, improving code modularity, readability, and maintainability.

@TarasBlatnoi TarasBlatnoi self-assigned this May 29, 2025
@TarasBlatnoi TarasBlatnoi added the enhancement New feature or request label May 29, 2025
@TarasBlatnoi TarasBlatnoi merged commit 7210dc4 into main Sep 30, 2025
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant