?
-
what would be an appropriate name for a factory class that has a public
static method that accepts a string and returns a Message or Reply
object depending on the command found in the string?
e.g:
string format : prefix command param1 param2 ....
will return a Message if command is ABC
will return a Reply if command is 123
static method that accepts a string and returns a Message or Reply
object depending on the command found in the string?
e.g:
string format : prefix command param1 param2 ....
will return a Message if command is ABC
will return a Reply if command is 123