-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused formatter, remove duplicate response code set, remove unnecessary casts * Add Slack login correctly done * Fix id assignation in SendActivitiesAsync method (#107) * Add some minor stylecop corrections LoginWithSlack method temporarily waited to test * Fix minor stylecop warnings, fix response sending, remove unused inclusion, start partial implementation of previously unimplemented ChannelData message assignment, add property to NewSlackMessage class * Remove ChatPostEphemeralMessageResult and ChatPostMessageResult classes * Fix message.ThreadTS assignment and cast. Complete message ChannelData assignent. Some stylecop corrections * Add stylecop corrections, not taking into account parameter documentations * Change the return type of ActivityToSlack * Remove references to Middleware * Remove Middleware files * Fix thread_ts assignation * Add PR changes * Remove commented out lines * Add PR changes: commented out code removed, some dynamic casts removed * Remove all dynamics cast to slackEvent * Add more PR changes
- Loading branch information
1 parent
f4337a7
commit 30fcf87
Showing
20 changed files
with
339 additions
and
424 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
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
// Copyright(c) Microsoft Corporation.All rights reserved. | ||
// Copyright(c) Microsoft Corporation.All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.BotKit.Adapters.Slack | ||
{ | ||
public class AdapterError | ||
{ | ||
string Name; | ||
string Error; | ||
public string Name; | ||
public string Error; | ||
|
||
public AdapterError() | ||
{ | ||
|
||
} | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
Botkit/Microsoft.BotKit.Adapters.Slack/ChatPostEphemeralMessageResult.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
Botkit/Microsoft.BotKit.Adapters.Slack/ChatPostMessageResult.cs
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
// Copyright(c) Microsoft Corporation.All rights reserved. | ||
// Copyright(c) Microsoft Corporation.All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.BotKit.Adapters.Slack | ||
{ | ||
public class DialogElement | ||
{ | ||
{ | ||
public string Label { get; set; } | ||
|
||
public string Name { get; set; } | ||
public string Value { get; set; } | ||
public Dictionary<string, string> OptionList { get; set; } | ||
public ISlackAdapterOptions Options { get; set; } | ||
|
||
public string Value { get; set; } | ||
|
||
public Dictionary<string, string> OptionList { get; set; } | ||
|
||
public ISlackAdapterOptions Options { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public string Subtype { get; set; } | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
using System; | ||
using SlackAPI.WebSocketMessages; | ||
|
||
namespace Microsoft.BotKit.Adapters.Slack | ||
{ | ||
public class NewSlackMessage : NewMessage | ||
{ | ||
public string Ephemeral { get; set; } | ||
|
||
public bool AsUser { get; set; } | ||
|
||
public string IconUrl { get; set; } | ||
|
||
public string IconEmoji { get; set; } | ||
|
||
public string ThreadTS { get; set; } | ||
} | ||
} |
Oops, something went wrong.