-
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
Ying Du
committed
May 17, 2023
1 parent
bb6a077
commit 7215218
Showing
6 changed files
with
176 additions
and
0 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,37 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Specifies bot config authe, including type and suggestedActions. | ||
/// </summary> | ||
public class BotConfigAuth | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BotConfigAuth"/> class. | ||
/// </summary> | ||
public BotConfigAuth() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets type of bot config auth. | ||
/// </summary> | ||
/// <value> | ||
/// The type of bot config auth. | ||
/// </value> | ||
[JsonProperty(PropertyName = "type")] | ||
public string Type { get; set; } = "auth"; | ||
|
||
/// <summary> | ||
/// Gets or sets suggested actions. | ||
/// </summary> | ||
/// <value> | ||
/// The suggested actions of bot config auth. | ||
/// </value> | ||
[JsonProperty(PropertyName = "suggestedActions")] | ||
public SuggestedActions SuggestedActions { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
libraries/Microsoft.Bot.Schema/Teams/ConfigAuthResponse.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,18 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Envelope for Config Auth Response. | ||
/// </summary> | ||
public partial class ConfigAuthResponse : ConfigResponse<BotConfigAuth> | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConfigAuthResponse"/> class. | ||
/// </summary> | ||
public ConfigAuthResponse() | ||
{ | ||
} | ||
} | ||
} |
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,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// Envelope for Config Response Payload. | ||
/// </summary> | ||
/// <typeparam name="T">The first generic type parameter.</typeparam>. | ||
public partial class ConfigResponse<T> : InvokeResponseBase | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConfigResponse{T}"/> class. | ||
/// </summary> | ||
public ConfigResponse() | ||
{ | ||
ResponseType = "config"; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the response to the config message. | ||
/// Possible values for the config type include: 'auth'or 'task'. | ||
/// </summary> | ||
/// <value> | ||
/// Response to a config request. | ||
/// </value> | ||
[JsonProperty(PropertyName = "config")] | ||
public T Config { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
libraries/Microsoft.Bot.Schema/Teams/ConfigTaskResponse.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,18 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Envelope for Config Task Response. | ||
/// </summary> | ||
public partial class ConfigTaskResponse : ConfigResponse<TaskModuleResponseBase> | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConfigTaskResponse"/> class. | ||
/// </summary> | ||
public ConfigTaskResponse() | ||
{ | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
libraries/Microsoft.Bot.Schema/Teams/InvokeResponseBase.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,38 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Specifies Invoke response base including response type. | ||
/// </summary> | ||
public class InvokeResponseBase | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvokeResponseBase"/> class. | ||
/// </summary> | ||
protected InvokeResponseBase() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets response type invoke request. | ||
/// </summary> | ||
/// <value> | ||
/// Invoke request response type. | ||
/// </value> | ||
[JsonProperty("responseType")] | ||
public string ResponseType { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets response cache Info. | ||
/// </summary> | ||
/// <value> | ||
/// Value of cache info. | ||
/// </value> | ||
[JsonProperty(PropertyName = "cacheInfo")] | ||
public CacheInfo CacheInfo { get; set; } | ||
} | ||
} |