TinaTiel / obs-chatbot

GNU General Public License v3.0
3 stars 0 forks source link

ActionService / facade for ObsClient, TwitchClient, OsClient, etc. #21

Closed TinaTiel closed 3 years ago

TinaTiel commented 3 years ago

ActionServiceFactory will need to return a consistent type. There must be type checking in the Action since this is dynamic / known only at runtime

TinaTiel commented 3 years ago

Could just use class type, however internally the class may change in later refactors -- so abstracting it out with an enum switch case would be more resilient to modification later, even if it means doing a type check before casting.