Skip to content

Releases: FooBartn/WxTeamsSharp

v2.0.0

08 Aug 23:48
f26652d
Compare
Choose a tag to compare

Fixed

  • Getting NextPage on ItemsResult more than once

Changed

  • Major Breaking Change: Shifted from Static classes to Dependency Injection
    • New extension to easily add WxTeamsSharp dependencies to default
      Microsoft.Extensions.DependencyInjection ServiceCollection DI Container
    • Client, API, and Serializer are added via Interfaces for Mocking / Testing etc
  • Updated TeamsClient to use IHttpClientFactory because things

Misc

  • Added WxTeamsConsoleBot with DI example
  • Updated WxTeamsWebhookReceiver example for DI
  • Documentation has been updated to reflect changes

v1.1.0

05 Aug 00:17
Compare
Choose a tag to compare

Fixed

  • Added Disabled status to WebhookStatus.

Changed

  • New methods to create webhooks directly from a Room object
    • Room.AddMessageCreatedWebhookAsync()
    • Room.AddMessageDeletedWebhookAsync()
    • Room.AddUserAddedWebhookAsync()
    • Room.AddUserRemovedWebhookAsync()
  • New overloads added for Room.AddUserAsync() and .RemoveUserAsync() to take an IPerson object as a parameter
  • New WebhookData class for us in a webhook receiving api
  • New Example project to showcase WebhookData and receiving webhook callbacks
  • Added a method to Message class (not IMessage) to allow easy retreival of full message
    since the webhook callback will not include the text for security reasons
    • Message.GetFullMessageAsync()
  • Room, Membership, and Message classes are now public for use with WebhookData
  • Breaking Change: The "Async" keyword was added to the end of People methods in the WxTeamsApi
    • GetUsersByEmailAsync
    • GetUsersByDisplayNameAsync
    • GetUsersByIdListAsync
    • GetUsersByOrgIdAsync

Misc

  • Documentation has been updated to reflect changes