This PR slightly refactors the adapter inheritance for Slack-like adapters.
It adds in an intermediary SlackLikeAdapter for the Slack-like providers. This should make it easier to use DefaultAdapter methods in subclasses, like with what is done in SparkAdapter.formatData and SlackLikeAdapter.normalizeCommand.
I also removed the normalizeAddressee from the MS Teams adapter, since it was an override of the same function from DefaultAdapter (and the MS Teams adapter inherits from DefaultAdapter). The two functions were identical, however, so it makes no sense to override that function. And since the two functions were identical, I didn't need to change the tests at all for this fix.
~Once #190 is merged, I will either rebase and merge this with GitHub, or I will manually rebase this branch on that one, force push, and merge it.~ Done.
This PR is on top of #190.
This PR slightly refactors the adapter inheritance for Slack-like adapters.
It adds in an intermediary
SlackLikeAdapter
for the Slack-like providers. This should make it easier to useDefaultAdapter
methods in subclasses, like with what is done inSparkAdapter.formatData
andSlackLikeAdapter.normalizeCommand
.This makes things a bit easier:
I also removed the
normalizeAddressee
from the MS Teams adapter, since it was an override of the same function fromDefaultAdapter
(and the MS Teams adapter inherits fromDefaultAdapter
). The two functions were identical, however, so it makes no sense to override that function. And since the two functions were identical, I didn't need to change the tests at all for this fix.~Once #190 is merged, I will either rebase and merge this with GitHub, or I will manually rebase this branch on that one, force push, and merge it.~ Done.