Skip to content

Commit 2cadc45

Browse files
authored
Merge pull request microsoft#1005 from Microsoft/jassow-channels
added channels to connector
2 parents da221be + bf46287 commit 2cadc45

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

libraries/Microsoft.Bot.Builder.Dialogs/Choices/Channel.cs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4+
using System;
5+
46
namespace Microsoft.Bot.Builder.Dialogs.Choices
57
{
68
public class Channel
@@ -64,22 +66,12 @@ public static bool HasMessageFeed(string channelId)
6466
public static string GetChannelId(ITurnContext turnContext) => string.IsNullOrEmpty(turnContext.Activity.ChannelId)
6567
? string.Empty : turnContext.Activity.ChannelId;
6668

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
6874
{
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";
8375
}
8476
}
8577
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
namespace Microsoft.Bot.Connector
5+
{
6+
public class Channels
7+
{
8+
public const string Facebook = "facebook";
9+
public const string Skype = "skype";
10+
public const string Msteams = "msteams";
11+
public const string Telegram = "telegram";
12+
public const string Kik = "kik";
13+
public const string Email = "email";
14+
public const string Slack = "slack";
15+
public const string Groupme = "groupme";
16+
public const string Sms = "sms";
17+
public const string Emulator = "emulator";
18+
public const string Directline = "directline";
19+
public const string Webchat = "webchat";
20+
public const string Console = "console";
21+
public const string Cortana = "cortana";
22+
}
23+
}

0 commit comments

Comments
 (0)