Deprecate API interface, add user mention support #155
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
API
interfaceTeamsClient
to take its placeMicrosoft Teams message format
botapi
package (limited functionality)MessageCard
type (where needed) type to supportnew behavior
goteamsnotify.MessageCard
types/functions/methods toa new
messagecard
package and deprecate existingMessageCard
functionality provided by the
goteamsnotify
"base" packagehttp.Client
overriding the default from client code
Backwards compatibility
While making these changes I've refactored code and attempted to
clearly communicate which existing code/functionality is being
deprecated, all without introducing breaking changes for client code.
Limitations
The
botapi
package added in this collection of changes is a minimalimplementation. This package is intended to provide limited user
mention functionality for channel updates as a "bridge" until future
Adaptive Card
support can be implemented.Future
A future implementation of
Adaptive Card
support would provide amore complete experience, presumably providing a superset of the
limited support in the
botapi
package and existingMessageCard
functionality.
References
http.Client
#135