|
1 | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
2 | 2 | // Licensed under the MIT License. |
3 | 3 |
|
| 4 | +using System; |
| 5 | + |
4 | 6 | namespace Microsoft.Bot.Builder.Dialogs.Choices |
5 | 7 | { |
6 | 8 | public class Channel |
@@ -64,22 +66,12 @@ public static bool HasMessageFeed(string channelId) |
64 | 66 | public static string GetChannelId(ITurnContext turnContext) => string.IsNullOrEmpty(turnContext.Activity.ChannelId) |
65 | 67 | ? string.Empty : turnContext.Activity.ChannelId; |
66 | 68 |
|
67 | | - public class Channels |
| 69 | + // This class has been deprecated in favor of the class in Microsoft.Bot.Connector.Channels located |
| 70 | + // at https://github.com/Microsoft/botbuilder-dotnet/libraries/Microsoft.Bot.Connector/Channels.cs. |
| 71 | + // This change is non-breaking and this class now inherits from the class in the connector library. |
| 72 | + [Obsolete("This class is deprecated. Please use Microsoft.Bot.Connector.Channels.")] |
| 73 | + public class Channels : Connector.Channels |
68 | 74 | { |
69 | | - public const string Facebook = "facebook"; |
70 | | - public const string Skype = "skype"; |
71 | | - public const string Msteams = "msteams"; |
72 | | - public const string Telegram = "telegram"; |
73 | | - public const string Kik = "kik"; |
74 | | - public const string Email = "email"; |
75 | | - public const string Slack = "slack"; |
76 | | - public const string Groupme = "groupme"; |
77 | | - public const string Sms = "sms"; |
78 | | - public const string Emulator = "emulator"; |
79 | | - public const string Directline = "directline"; |
80 | | - public const string Webchat = "webchat"; |
81 | | - public const string Console = "console"; |
82 | | - public const string Cortana = "cortana"; |
83 | 75 | } |
84 | 76 | } |
85 | 77 | } |
0 commit comments