Update Osztály diagram: add generic-less BaseCommand authored by Sárközi Gergely János's avatar Sárközi Gergely János
...@@ -277,13 +277,26 @@ class CommandDispatcher { ...@@ -277,13 +277,26 @@ class CommandDispatcher {
} }
abstract BaseCommand<T : ICommandResult> abstract BaseCommand<T : ICommandResult>
CommandDispatcher --> BaseCommand abstract "BaseCommand<BiCommandResult>"
interface ICommandResult { interface ICommandResult {
+ IsSuccess() : bool + IsSuccess() : bool
} }
class BiCommandResult <<sealed>> {
+ Success : BiCommandResult
+ Failure : BiCommandResult
}
CommandDispatcher -d-> BaseCommand
CommandDispatcher -d-> ICommandResult
BaseCommand --> ICommandResult BaseCommand --> ICommandResult
"BaseCommand<BiCommandResult>" --|> BaseCommand
"BaseCommand<BiCommandResult>" --> BiCommandResult
BiCommandResult --|> ICommandResult
} }
``` ```
... ...
......