-
Couldn't load subscription status.
- Fork 492
Support bot sdk dot net for targeted meeting notification #6570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| namespace Microsoft.Bot.Schema.Teams | ||
| { | ||
| using Newtonsoft.Json; | ||
|
|
||
| /// <summary> | ||
| /// Specifies attribution for notifications. | ||
| /// </summary> | ||
| public partial class OnBehalfOf | ||
yingduyingdu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="OnBehalfOf"/> class. | ||
| /// </summary> | ||
| public OnBehalfOf() | ||
| { | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the identification of the item. Default is 0. | ||
| /// </summary> | ||
| /// <value>The item id.</value> | ||
| [JsonProperty(PropertyName = "itemId")] | ||
| public int ItemId { get; set; } = 0; | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the mention type. Default is "person". | ||
| /// </summary> | ||
| /// <value>The mention type.</value> | ||
| [JsonProperty(PropertyName = "mentionType")] | ||
| public string MentionType { get; set; } = "person"; | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets message resource identifier (MRI) of the person on whose behalf the message is sent. | ||
| /// Message sender name would appear as "[user] through [bot name]". | ||
| /// </summary> | ||
| /// <value>The message resource identifier of the person.</value> | ||
| [JsonProperty(PropertyName = "mri")] | ||
| public string Mri { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets name of the person. Used as fallback in case name resolution is unavailable. | ||
| /// </summary> | ||
| /// <value>The name of the person.</value> | ||
| [JsonProperty(PropertyName = "displayName")] | ||
| public string DisplayName { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// An initialization method that performs custom operations like setting defaults. | ||
| /// </summary> | ||
| partial void CustomInit(); | ||
| } | ||
| } | ||
53 changes: 53 additions & 0 deletions
53
libraries/Microsoft.Bot.Schema/Teams/TeamsMeetingNotification.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| namespace Microsoft.Bot.Schema.Teams | ||
| { | ||
| using Newtonsoft.Json; | ||
|
|
||
| /// <summary> | ||
| /// Specifies meeting notification including channel data, type and value. | ||
| /// </summary> | ||
| public partial class TeamsMeetingNotification | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="TeamsMeetingNotification"/> class. | ||
| /// </summary> | ||
| public TeamsMeetingNotification() | ||
| { | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets Activty type. | ||
| /// </summary> | ||
| /// <value> | ||
| /// Activity type. | ||
| /// </value> | ||
| [JsonProperty(PropertyName = "type")] | ||
| public string Type { get; set; } = "targetedMeetingNotification"; | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets Teams meeting notification information. | ||
| /// </summary> | ||
| /// <value> | ||
| /// Teams meeting notification information. | ||
| /// </value> | ||
| [JsonProperty(PropertyName = "value")] | ||
| public TeamsMeetingNotificationInfo Value { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets Teams meeting notification channel data. | ||
| /// </summary> | ||
| /// <value> | ||
| /// Teams meeting notification channel data. | ||
| /// </value> | ||
| [JsonProperty(PropertyName = "channelData")] | ||
| public TeamsMeetingNotificationChannelData ChannelData { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// An initialization method that performs custom operations like setting defaults. | ||
| /// </summary> | ||
| partial void CustomInit(); | ||
| } | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
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?