-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e449b3c
commit 3e88d9a
Showing
10 changed files
with
459 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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,42 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// Describes feedback loop information. | ||
/// </summary> | ||
public partial class FeedbackInfo | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FeedbackInfo"/> class. | ||
/// </summary> | ||
public FeedbackInfo() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FeedbackInfo"/> class. | ||
/// </summary> | ||
/// <param name="type">Unique identifier representing a team.</param> | ||
public FeedbackInfo(string type = FeedbackInfoTypes.Default) | ||
{ | ||
Type = type; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the feedback loop type. Possible values include: 'default', 'custom'. | ||
/// </summary> | ||
/// <value> | ||
/// The feedback loop type (see <see cref="FeedbackInfoTypes"/>). | ||
/// </value> | ||
[JsonProperty(PropertyName = "type")] | ||
public string Type { get; set; } | ||
|
||
partial void CustomInit(); | ||
} | ||
} |
This file contains 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,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Defines feedback loop type. Depending on the type, the feedback window will have a different structure. | ||
/// </summary> | ||
public static class FeedbackInfoTypes | ||
{ | ||
/// <summary> | ||
/// The type value for default feedback window form. | ||
/// </summary> | ||
public const string Default = "default"; | ||
|
||
/// <summary> | ||
/// The type value for custom feedback window, can be either an AdaptiveCard or website. | ||
/// </summary> | ||
public const string Custom = "custom"; | ||
} | ||
} |
This file contains 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,57 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// Envelope for Feedback Response. | ||
/// </summary> | ||
public partial class FeedbackResponse | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FeedbackResponse"/> class. | ||
/// </summary> | ||
public FeedbackResponse() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FeedbackResponse"/> class. | ||
/// </summary> | ||
/// <param name="actionName">Unique identifier representing a team.</param> | ||
/// <param name="actionValue">Unique identifier representing a team2.</param> | ||
/// <param name="replyToId">Unique identifier representing a team3.</param> | ||
public FeedbackResponse(string actionName = default, FeedbackResponseActionValue actionValue = default, string replyToId = default) | ||
{ | ||
ActionName = actionName; | ||
ActionValue = actionValue; | ||
ReplyToId = replyToId; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the action name. | ||
/// </summary> | ||
/// <value>Name of the action.</value> | ||
public string ActionName { get; set; } = "feedback"; | ||
|
||
/// <summary> | ||
/// Gets or sets the response for the action value. | ||
/// </summary> | ||
/// <value>The action value that contains the feedback reaction and message.</value> | ||
[JsonProperty(PropertyName = "actionValue")] | ||
public FeedbackResponseActionValue ActionValue { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the ID of the message to which this message is a reply. | ||
/// </summary> | ||
/// <value>Value of the ID to reply.</value> | ||
[JsonProperty(PropertyName = "replyToId")] | ||
public string ReplyToId { get; set; } | ||
|
||
partial void CustomInit(); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
libraries/Microsoft.Bot.Schema/Teams/FeedbackResponseActionValue.cs
This file contains 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,49 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// Envelope for Feedback ActionValue Response. | ||
/// </summary> | ||
public partial class FeedbackResponseActionValue | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FeedbackResponseActionValue"/> class. | ||
/// </summary> | ||
public FeedbackResponseActionValue() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="FeedbackResponseActionValue"/> class. | ||
/// </summary> | ||
/// <param name="reaction">The reaction of the feedback.</param> | ||
/// <param name="feedback">The feedback content.</param> | ||
public FeedbackResponseActionValue(string reaction = default, string feedback = default) | ||
{ | ||
Reaction = reaction; | ||
Feedback = feedback; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the reaction, either "like" or "dislike". | ||
/// </summary> | ||
/// <value>val.</value> | ||
[JsonProperty(PropertyName = "reaction")] | ||
public string Reaction { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the feedback content provided by the user when prompted with "What did you like/dislike?". | ||
/// </summary> | ||
/// <value>val.</value> | ||
[JsonProperty(PropertyName = "feedback")] | ||
public string Feedback { get; set; } | ||
|
||
partial void CustomInit(); | ||
} | ||
} |
This file contains 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 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
Oops, something went wrong.