Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Support bot sdk dot net for targeted meeting notification - #6570

Merged
yingduyingdu merged 4 commits into
mainfrom
yingdu/meetingNotification
Dec 21, 2022
Merged

Support bot sdk dot net for targeted meeting notification#6570
yingduyingdu merged 4 commits into
mainfrom
yingdu/meetingNotification

Conversation

@yingduyingdu

@yingduyingdu yingduyingdu commented Dec 15, 2022

Copy link
Copy Markdown
Contributor

Description

This feature aims to extend the dot Net Bot SDK so that developers can send targeted meeting notifications in Microsoft Teams meetings.

Add TeamsInfo.SendMeetingNotificationAsync

Closes #6571

Changes

Microsoft.Bot.Builder/Teams

  • add SendMeetingNotificationAsync method in TeamsInfo.cs

Microsoft.Bot.Connector/Teams

  • Construct and send meeting notification request

Microsft.Bot.Schema/Teams

  • Create classes for Teams meeting notification

Testing

Test SendMeetingNotificationAsync for different status codes in TeamsInfoTests.cs.

@yingduyingdu
yingduyingdu requested a review from a team as a code owner December 15, 2022 18:10
@yingduyingdu yingduyingdu self-assigned this Dec 15, 2022
@yingduyingdu yingduyingdu added the Automation: No parity PR does not need to be applied to other languages. label Dec 15, 2022
}

/// <summary>
/// Sends a notification to meeting participants. This functionality is available only in teams meeting scoped conversations.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that this feature won't work in a group chat meeting?

Comment thread libraries/Microsoft.Bot.Schema/Teams/OnBehalfOf.cs
@singhk97

Kavin (singhk97) commented Dec 15, 2022

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 333683

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 56 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.009%) to 79.054%

Files with Coverage Reduction New Missed Lines %
/libraries/Microsoft.Bot.Connector/Teams/TeamsOperationsExtensions.cs 1 85.71%
/libraries/Microsoft.Bot.Builder/Teams/TeamsInfo.cs 12 71.76%
/libraries/Microsoft.Bot.Connector/Teams/TeamsOperations.cs 43 59.9%
Totals Coverage Status
Change from base Build 332211: -0.009%
Covered Lines: 25800
Relevant Lines: 32636

💛 - Coveralls

Does it make sense to fix the missed lines with unit tests?

Hi Kavin (@singhk97) , according to previous code coverage in the same class, we don't write unit test for trace report and throw exception.

Comment thread libraries/Microsoft.Bot.Builder/Teams/TeamsInfo.cs
@yingduyingdu
yingduyingdu force-pushed the yingdu/meetingNotification branch from a5268f5 to 468c6df Compare December 16, 2022 19:33
@johnataylor

Copy link
Copy Markdown
Contributor

/azp run BotBuilder-DotNet-CI-PR-(MacLinux)-yaml

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@johnataylor johnataylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the comment style. We don't want C style comments.

I have some minor comments on the code, but what you have is consistent with the old generated code so I think we can leave it.

Comment thread libraries/Microsoft.Bot.Connector/Teams/TeamsOperations.cs
Comment thread libraries/Microsoft.Bot.Connector/Teams/TeamsOperations.cs

if ((int)statusCode == 207)
{
/* 207: if the notifications are sent only to parital number of recipients because

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use C style comments /* */ just use //

}
else if ((int)statusCode != 202)
{
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use C style comments /* */ just use //

[InlineData("403")]
public async Task TestSendMeetingNotificationAsync(string statusCode)
{
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use C style comments /* */ just use //

@johnataylor

Copy link
Copy Markdown
Contributor

yingduyingdu I've made the Mac build pipeline optional for this PR, so it's not blocking, we'll fix the pipeline week after next.

@yingduyingdu
yingduyingdu force-pushed the yingdu/meetingNotification branch from 468c6df to d07ec16 Compare December 20, 2022 21:31
@BruceHaley

Copy link
Copy Markdown
Contributor

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll
✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll
✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll

This was referenced May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Automation: No parity PR does not need to be applied to other languages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Bot SDK Dot Net for Targeted Meeting Notification

4 participants