Port: Implementation of Teams batch APIs (#6655) #2180
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.
Fixes #minor
Description
Porting changes from microsoft/botbuilder-dotnet#6655 to maintain parity with
microsoft/botbuilder-dotnet
.This PR implements the new Teams batch APIs in TeamsOperations.
Specific Changes
BatchFailedEntry
,BatchOperationState
,BatchFailedEntriesResponse
,TeamMember
) to handle the operation responses and requestsRetryAction
class to handle the retry logic of the operationsTeamsOperations
andTeamsInfo
Testing
The following images shows the related unit test passing.
![teamsBatchAPI](https://private-user-images.githubusercontent.com/164224646/378863202-c6a62c5c-c9c0-4e7e-96bd-c641e33d011a.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTg5ODUsIm5iZiI6MTczOTU5ODY4NSwicGF0aCI6Ii8xNjQyMjQ2NDYvMzc4ODYzMjAyLWM2YTYyYzVjLWM5YzAtNGU3ZS05NmJkLWM2NDFlMzNkMDExYS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNTU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