diff --git a/SlackAPI.Tests/SlackAPI.Tests.csproj b/SlackAPI.Tests/SlackAPI.Tests.csproj index bc4dc3b4..8eab28a0 100644 --- a/SlackAPI.Tests/SlackAPI.Tests.csproj +++ b/SlackAPI.Tests/SlackAPI.Tests.csproj @@ -1,7 +1,7 @@  - net452;netcoreapp2.1 + net452;netcoreapp3.1 Library Full SlackAPI.Tests @@ -9,11 +9,11 @@ - - + + - + all runtime; build; native; contentfiles; analyzers diff --git a/SlackAPI/Channel.cs b/SlackAPI/Channel.cs index c45d1c23..affc88c2 100644 --- a/SlackAPI/Channel.cs +++ b/SlackAPI/Channel.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class Channel : Conversation { diff --git a/SlackAPI/ContextMessage.cs b/SlackAPI/ContextMessage.cs index 764c17a3..f1347a3c 100644 --- a/SlackAPI/ContextMessage.cs +++ b/SlackAPI/ContextMessage.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class ContextMessage : Message { diff --git a/SlackAPI/Conversation.cs b/SlackAPI/Conversation.cs index def8d1a2..5b5c013b 100644 --- a/SlackAPI/Conversation.cs +++ b/SlackAPI/Conversation.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/DirectMessageConversation.cs b/SlackAPI/DirectMessageConversation.cs index 2241fe6b..9debbd38 100644 --- a/SlackAPI/DirectMessageConversation.cs +++ b/SlackAPI/DirectMessageConversation.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class DirectMessageConversation : Conversation { diff --git a/SlackAPI/JavascriptDateTimeConverter.cs b/SlackAPI/JavascriptDateTimeConverter.cs index 438df1a8..27fb566a 100644 --- a/SlackAPI/JavascriptDateTimeConverter.cs +++ b/SlackAPI/JavascriptDateTimeConverter.cs @@ -1,9 +1,5 @@ using System; -using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/Message.cs b/SlackAPI/Message.cs index 6077ec6c..bc25ebda 100644 --- a/SlackAPI/Message.cs +++ b/SlackAPI/Message.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/MimeTypes.cs b/SlackAPI/MimeTypes.cs index 9fb77943..706c7d96 100644 --- a/SlackAPI/MimeTypes.cs +++ b/SlackAPI/MimeTypes.cs @@ -1,8 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/OwnedStampedMessage.cs b/SlackAPI/OwnedStampedMessage.cs index d756e4b0..ec058770 100644 --- a/SlackAPI/OwnedStampedMessage.cs +++ b/SlackAPI/OwnedStampedMessage.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class OwnedStampedMessage { diff --git a/SlackAPI/Preferences.cs b/SlackAPI/Preferences.cs index f0931eec..4c0f965a 100644 --- a/SlackAPI/Preferences.cs +++ b/SlackAPI/Preferences.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { public class Preferences { diff --git a/SlackAPI/RPCMessages/AccessTokenResponse.cs b/SlackAPI/RPCMessages/AccessTokenResponse.cs index 9c4266bb..eac61451 100644 --- a/SlackAPI/RPCMessages/AccessTokenResponse.cs +++ b/SlackAPI/RPCMessages/AccessTokenResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("oauth.access")] public class AccessTokenResponse : Response diff --git a/SlackAPI/RPCMessages/AuthSigninResponse.cs b/SlackAPI/RPCMessages/AuthSigninResponse.cs index c0865816..30e5fdee 100644 --- a/SlackAPI/RPCMessages/AuthSigninResponse.cs +++ b/SlackAPI/RPCMessages/AuthSigninResponse.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("auth.signin")] public class AuthSigninResponse : Response diff --git a/SlackAPI/RPCMessages/AuthStartResponse.cs b/SlackAPI/RPCMessages/AuthStartResponse.cs index 93dde36d..70b7c922 100644 --- a/SlackAPI/RPCMessages/AuthStartResponse.cs +++ b/SlackAPI/RPCMessages/AuthStartResponse.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("auth.start")] public class AuthStartResponse : Response diff --git a/SlackAPI/RPCMessages/AuthTestResponse.cs b/SlackAPI/RPCMessages/AuthTestResponse.cs index 2e9657e3..7fb89e64 100644 --- a/SlackAPI/RPCMessages/AuthTestResponse.cs +++ b/SlackAPI/RPCMessages/AuthTestResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("auth.test", true)] public class AuthTestResponse : Response diff --git a/SlackAPI/RPCMessages/ChannelCreateResponse.cs b/SlackAPI/RPCMessages/ChannelCreateResponse.cs index b5273651..87c22bee 100644 --- a/SlackAPI/RPCMessages/ChannelCreateResponse.cs +++ b/SlackAPI/RPCMessages/ChannelCreateResponse.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("channels.create")] public class ChannelCreateResponse : Response diff --git a/SlackAPI/RPCMessages/ChannelInviteResponse.cs b/SlackAPI/RPCMessages/ChannelInviteResponse.cs index 41b2108b..00f7a270 100644 --- a/SlackAPI/RPCMessages/ChannelInviteResponse.cs +++ b/SlackAPI/RPCMessages/ChannelInviteResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("channels.invite")] public class ChannelInviteResponse : Response diff --git a/SlackAPI/RPCMessages/ChannelListResponse.cs b/SlackAPI/RPCMessages/ChannelListResponse.cs index 22280c1f..0e3d5c19 100644 --- a/SlackAPI/RPCMessages/ChannelListResponse.cs +++ b/SlackAPI/RPCMessages/ChannelListResponse.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("channels.list")] public class ChannelListResponse : Response diff --git a/SlackAPI/RPCMessages/ChannelMessageHistory.cs b/SlackAPI/RPCMessages/ChannelMessageHistory.cs index 27fb0594..b8af5cb0 100644 --- a/SlackAPI/RPCMessages/ChannelMessageHistory.cs +++ b/SlackAPI/RPCMessages/ChannelMessageHistory.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("channels.history")] public class ChannelMessageHistory : MessageHistory diff --git a/SlackAPI/RPCMessages/ConversationsArchiveResponse.cs b/SlackAPI/RPCMessages/ConversationsArchiveResponse.cs index d3203251..4b1e9fe8 100644 --- a/SlackAPI/RPCMessages/ConversationsArchiveResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsArchiveResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.archive")] public class ConversationsArchiveResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsCloseResponse.cs b/SlackAPI/RPCMessages/ConversationsCloseResponse.cs index d8a7fca8..021be729 100644 --- a/SlackAPI/RPCMessages/ConversationsCloseResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsCloseResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.close")] public class ConversationsCloseResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsCreateResponse.cs b/SlackAPI/RPCMessages/ConversationsCreateResponse.cs index ec71d2e3..40261c27 100644 --- a/SlackAPI/RPCMessages/ConversationsCreateResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsCreateResponse.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.create")] public class ConversationsCreateResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsInviteResponse.cs b/SlackAPI/RPCMessages/ConversationsInviteResponse.cs index 95f04de4..86e30f6f 100644 --- a/SlackAPI/RPCMessages/ConversationsInviteResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsInviteResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.invite")] public class ConversationsInviteResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsKickResponse.cs b/SlackAPI/RPCMessages/ConversationsKickResponse.cs index daa081e3..4819a256 100644 --- a/SlackAPI/RPCMessages/ConversationsKickResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsKickResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.kick")] public class ConversationsKickResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsLeaveResponse.cs b/SlackAPI/RPCMessages/ConversationsLeaveResponse.cs index 0f66be8f..94a5966f 100644 --- a/SlackAPI/RPCMessages/ConversationsLeaveResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsLeaveResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.leave")] public class ConversationsLeaveResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsListResponse.cs b/SlackAPI/RPCMessages/ConversationsListResponse.cs index 005938f6..28d14fdd 100644 --- a/SlackAPI/RPCMessages/ConversationsListResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsListResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI.RPCMessages +namespace SlackAPI.RPCMessages { [RequestPath("conversations.list")] public class ConversationsListResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsMarkResponse.cs b/SlackAPI/RPCMessages/ConversationsMarkResponse.cs index fe7d6665..f315db7a 100644 --- a/SlackAPI/RPCMessages/ConversationsMarkResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsMarkResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.mark")] public class ConversationsMarkResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsMessageHistory.cs b/SlackAPI/RPCMessages/ConversationsMessageHistory.cs index ffff5abc..658fff1f 100644 --- a/SlackAPI/RPCMessages/ConversationsMessageHistory.cs +++ b/SlackAPI/RPCMessages/ConversationsMessageHistory.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI.RPCMessages +namespace SlackAPI.RPCMessages { [RequestPath("conversations.history")] public class ConversationsMessageHistory : MessageHistory diff --git a/SlackAPI/RPCMessages/ConversationsOpenResponse.cs b/SlackAPI/RPCMessages/ConversationsOpenResponse.cs index 527f8f16..c7cb7dfa 100644 --- a/SlackAPI/RPCMessages/ConversationsOpenResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsOpenResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.open")] public class ConversationsOpenResponse : Response @@ -12,6 +6,5 @@ public class ConversationsOpenResponse : Response public string no_op; public string already_open; public Channel channel; - public string error; } } diff --git a/SlackAPI/RPCMessages/ConversationsRenameResponse.cs b/SlackAPI/RPCMessages/ConversationsRenameResponse.cs index e633eddd..9a4ac64c 100644 --- a/SlackAPI/RPCMessages/ConversationsRenameResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsRenameResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.rename")] public class ConversationsRenameResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsSetPurposeResponse.cs b/SlackAPI/RPCMessages/ConversationsSetPurposeResponse.cs index 20d4fafe..2eb48e68 100644 --- a/SlackAPI/RPCMessages/ConversationsSetPurposeResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsSetPurposeResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.setPurpose")] public class ConversationsSetPurposeResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsSetTopicResponse.cs b/SlackAPI/RPCMessages/ConversationsSetTopicResponse.cs index 61ead8db..919ac584 100644 --- a/SlackAPI/RPCMessages/ConversationsSetTopicResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsSetTopicResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.setTopic")] public class ConversationsSetTopicResponse : Response diff --git a/SlackAPI/RPCMessages/ConversationsUnarchiveResponse.cs b/SlackAPI/RPCMessages/ConversationsUnarchiveResponse.cs index 1d894e01..028fb9d7 100644 --- a/SlackAPI/RPCMessages/ConversationsUnarchiveResponse.cs +++ b/SlackAPI/RPCMessages/ConversationsUnarchiveResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("conversations.unarchive")] public class ConversationsUnarchiveResponse : Response diff --git a/SlackAPI/RPCMessages/DeletedResponse.cs b/SlackAPI/RPCMessages/DeletedResponse.cs index 89b5af83..59bd7a9f 100644 --- a/SlackAPI/RPCMessages/DeletedResponse.cs +++ b/SlackAPI/RPCMessages/DeletedResponse.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/RPCMessages/DialogOpenResponse.cs b/SlackAPI/RPCMessages/DialogOpenResponse.cs index 926a339a..c0352972 100644 --- a/SlackAPI/RPCMessages/DialogOpenResponse.cs +++ b/SlackAPI/RPCMessages/DialogOpenResponse.cs @@ -1,15 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI.RPCMessages +namespace SlackAPI.RPCMessages { [RequestPath("dialog.open")] public class DialogOpenResponse : Response { - public ResponseMetadata response_metadata { get; set; } + public new ResponseMetadata response_metadata { get; set; } public class ResponseMetadata { diff --git a/SlackAPI/RPCMessages/DirectMessageConversationListResponse.cs b/SlackAPI/RPCMessages/DirectMessageConversationListResponse.cs index 59746ad0..8f9ccd5f 100644 --- a/SlackAPI/RPCMessages/DirectMessageConversationListResponse.cs +++ b/SlackAPI/RPCMessages/DirectMessageConversationListResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("im.list")] public class DirectMessageConversationListResponse : Response diff --git a/SlackAPI/RPCMessages/FileDeleteResponse.cs b/SlackAPI/RPCMessages/FileDeleteResponse.cs index 81c637a7..727cf96c 100644 --- a/SlackAPI/RPCMessages/FileDeleteResponse.cs +++ b/SlackAPI/RPCMessages/FileDeleteResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("files.delete")] public class FileDeleteResponse : Response diff --git a/SlackAPI/RPCMessages/FileInfoResponse.cs b/SlackAPI/RPCMessages/FileInfoResponse.cs index 38270a8e..41455c6a 100644 --- a/SlackAPI/RPCMessages/FileInfoResponse.cs +++ b/SlackAPI/RPCMessages/FileInfoResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("files.info")] public class FileInfoResponse : Response diff --git a/SlackAPI/RPCMessages/FileListResponse.cs b/SlackAPI/RPCMessages/FileListResponse.cs index 2771abac..6b1968b6 100644 --- a/SlackAPI/RPCMessages/FileListResponse.cs +++ b/SlackAPI/RPCMessages/FileListResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("files.list")] public class FileListResponse : Response diff --git a/SlackAPI/RPCMessages/FileUploadResponse.cs b/SlackAPI/RPCMessages/FileUploadResponse.cs index dcf80f46..9ca74bd1 100644 --- a/SlackAPI/RPCMessages/FileUploadResponse.cs +++ b/SlackAPI/RPCMessages/FileUploadResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("files.upload")] public class FileUploadResponse : Response diff --git a/SlackAPI/RPCMessages/FindTeamResponse.cs b/SlackAPI/RPCMessages/FindTeamResponse.cs index d0b2d092..261e84f5 100644 --- a/SlackAPI/RPCMessages/FindTeamResponse.cs +++ b/SlackAPI/RPCMessages/FindTeamResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { /// /// This is an undocumented response from an undocumented API. If anyone finds more info on this, please create a pull request. diff --git a/SlackAPI/RPCMessages/GroupArchiveResponse.cs b/SlackAPI/RPCMessages/GroupArchiveResponse.cs index d043012f..545bfead 100644 --- a/SlackAPI/RPCMessages/GroupArchiveResponse.cs +++ b/SlackAPI/RPCMessages/GroupArchiveResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.archive")] public class GroupArchiveResponse : Response diff --git a/SlackAPI/RPCMessages/GroupCloseResponse.cs b/SlackAPI/RPCMessages/GroupCloseResponse.cs index d0fdcd20..61ec8e68 100644 --- a/SlackAPI/RPCMessages/GroupCloseResponse.cs +++ b/SlackAPI/RPCMessages/GroupCloseResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.close")] public class GroupCloseResponse : Response diff --git a/SlackAPI/RPCMessages/GroupCreateChildResponse.cs b/SlackAPI/RPCMessages/GroupCreateChildResponse.cs index 51d495e9..59380fc4 100644 --- a/SlackAPI/RPCMessages/GroupCreateChildResponse.cs +++ b/SlackAPI/RPCMessages/GroupCreateChildResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.createChild")] public class GroupCreateChildResponse : GroupResponse diff --git a/SlackAPI/RPCMessages/GroupCreateResponse.cs b/SlackAPI/RPCMessages/GroupCreateResponse.cs index b5082e01..3fa08050 100644 --- a/SlackAPI/RPCMessages/GroupCreateResponse.cs +++ b/SlackAPI/RPCMessages/GroupCreateResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.create")] public class GroupCreateResponse : GroupResponse diff --git a/SlackAPI/RPCMessages/GroupInviteResponse.cs b/SlackAPI/RPCMessages/GroupInviteResponse.cs index 21551786..74966786 100644 --- a/SlackAPI/RPCMessages/GroupInviteResponse.cs +++ b/SlackAPI/RPCMessages/GroupInviteResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.invite")] public class GroupInviteResponse : GroupResponse diff --git a/SlackAPI/RPCMessages/GroupKickResponse.cs b/SlackAPI/RPCMessages/GroupKickResponse.cs index 3213fb22..e67d7db8 100644 --- a/SlackAPI/RPCMessages/GroupKickResponse.cs +++ b/SlackAPI/RPCMessages/GroupKickResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.kick")] public class GroupKickResponse : Response diff --git a/SlackAPI/RPCMessages/GroupLeaveResponse.cs b/SlackAPI/RPCMessages/GroupLeaveResponse.cs index 9c961224..93afe7ee 100644 --- a/SlackAPI/RPCMessages/GroupLeaveResponse.cs +++ b/SlackAPI/RPCMessages/GroupLeaveResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.leave")] public class GroupLeaveResponse : Response diff --git a/SlackAPI/RPCMessages/GroupListResponse.cs b/SlackAPI/RPCMessages/GroupListResponse.cs index d8ad777e..99d351ff 100644 --- a/SlackAPI/RPCMessages/GroupListResponse.cs +++ b/SlackAPI/RPCMessages/GroupListResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.list")] public class GroupListResponse : Response diff --git a/SlackAPI/RPCMessages/GroupMarkResponse.cs b/SlackAPI/RPCMessages/GroupMarkResponse.cs index b4cb7429..930e32fc 100644 --- a/SlackAPI/RPCMessages/GroupMarkResponse.cs +++ b/SlackAPI/RPCMessages/GroupMarkResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.mark")] public class GroupMarkResponse : Response diff --git a/SlackAPI/RPCMessages/GroupMessageHistory.cs b/SlackAPI/RPCMessages/GroupMessageHistory.cs index 5708ca84..934f364f 100644 --- a/SlackAPI/RPCMessages/GroupMessageHistory.cs +++ b/SlackAPI/RPCMessages/GroupMessageHistory.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.history")] public class GroupMessageHistory : MessageHistory diff --git a/SlackAPI/RPCMessages/GroupOpenResponse.cs b/SlackAPI/RPCMessages/GroupOpenResponse.cs index 70c2ffcc..23c307bd 100644 --- a/SlackAPI/RPCMessages/GroupOpenResponse.cs +++ b/SlackAPI/RPCMessages/GroupOpenResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.open")] public class GroupOpenResponse : Response diff --git a/SlackAPI/RPCMessages/GroupRenameResponse.cs b/SlackAPI/RPCMessages/GroupRenameResponse.cs index 65905767..6e34419b 100644 --- a/SlackAPI/RPCMessages/GroupRenameResponse.cs +++ b/SlackAPI/RPCMessages/GroupRenameResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.rename")] public class GroupRenameResponse : Response diff --git a/SlackAPI/RPCMessages/GroupResponse.cs b/SlackAPI/RPCMessages/GroupResponse.cs index f8834bc8..c17623eb 100644 --- a/SlackAPI/RPCMessages/GroupResponse.cs +++ b/SlackAPI/RPCMessages/GroupResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class GroupResponse : Response { diff --git a/SlackAPI/RPCMessages/GroupSetPurposeResponse.cs b/SlackAPI/RPCMessages/GroupSetPurposeResponse.cs index 93a061c7..306096b4 100644 --- a/SlackAPI/RPCMessages/GroupSetPurposeResponse.cs +++ b/SlackAPI/RPCMessages/GroupSetPurposeResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.setPurpose")] public class GroupSetPurposeResponse : Response diff --git a/SlackAPI/RPCMessages/GroupSetTopicResponse.cs b/SlackAPI/RPCMessages/GroupSetTopicResponse.cs index f8adab97..fcfff185 100644 --- a/SlackAPI/RPCMessages/GroupSetTopicResponse.cs +++ b/SlackAPI/RPCMessages/GroupSetTopicResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.setTopic")] public class GroupSetTopicResponse : Response diff --git a/SlackAPI/RPCMessages/GroupUnarchiveResponse.cs b/SlackAPI/RPCMessages/GroupUnarchiveResponse.cs index d68061c2..639d5adc 100644 --- a/SlackAPI/RPCMessages/GroupUnarchiveResponse.cs +++ b/SlackAPI/RPCMessages/GroupUnarchiveResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("groups.unarchive")] public class GroupUnarchiveResponse : Response diff --git a/SlackAPI/RPCMessages/LoginResponse.cs b/SlackAPI/RPCMessages/LoginResponse.cs index d048f316..5f5a4cf5 100644 --- a/SlackAPI/RPCMessages/LoginResponse.cs +++ b/SlackAPI/RPCMessages/LoginResponse.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/RPCMessages/MarkResponse.cs b/SlackAPI/RPCMessages/MarkResponse.cs index 976b0c91..24fbaae5 100644 --- a/SlackAPI/RPCMessages/MarkResponse.cs +++ b/SlackAPI/RPCMessages/MarkResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { /// /// This is used for moving the read cursor in the channel. diff --git a/SlackAPI/RPCMessages/MessageHistory.cs b/SlackAPI/RPCMessages/MessageHistory.cs index 8fb797a1..0dcb9f40 100644 --- a/SlackAPI/RPCMessages/MessageHistory.cs +++ b/SlackAPI/RPCMessages/MessageHistory.cs @@ -1,5 +1,4 @@ using System; -using Newtonsoft.Json.Serialization; namespace SlackAPI { diff --git a/SlackAPI/RPCMessages/SearchResponseAll.cs b/SlackAPI/RPCMessages/SearchResponseAll.cs index 80d224b0..0094ff91 100644 --- a/SlackAPI/RPCMessages/SearchResponseAll.cs +++ b/SlackAPI/RPCMessages/SearchResponseAll.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("search.all")] public class SearchResponseAll : Response diff --git a/SlackAPI/RPCMessages/SearchResponseFiles.cs b/SlackAPI/RPCMessages/SearchResponseFiles.cs index 4cf8ebe1..f248a658 100644 --- a/SlackAPI/RPCMessages/SearchResponseFiles.cs +++ b/SlackAPI/RPCMessages/SearchResponseFiles.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("search.files")] public class SearchResponseFiles : Response diff --git a/SlackAPI/RPCMessages/SearchResponseMessages.cs b/SlackAPI/RPCMessages/SearchResponseMessages.cs index 8b1eef70..b66ceef9 100644 --- a/SlackAPI/RPCMessages/SearchResponseMessages.cs +++ b/SlackAPI/RPCMessages/SearchResponseMessages.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("search.messages")] public class SearchResponseMessages : Response diff --git a/SlackAPI/RPCMessages/StarListResponse.cs b/SlackAPI/RPCMessages/StarListResponse.cs index 2fe3e7de..14cfd377 100644 --- a/SlackAPI/RPCMessages/StarListResponse.cs +++ b/SlackAPI/RPCMessages/StarListResponse.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("stars.list")] public class StarListResponse : Response diff --git a/SlackAPI/RPCMessages/UserCountsResponse.cs b/SlackAPI/RPCMessages/UserCountsResponse.cs index 2e820260..a4b0cd90 100644 --- a/SlackAPI/RPCMessages/UserCountsResponse.cs +++ b/SlackAPI/RPCMessages/UserCountsResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("users.counts")] public class UserCountsResponse : Response diff --git a/SlackAPI/RPCMessages/UserListResponse.cs b/SlackAPI/RPCMessages/UserListResponse.cs index 4e2a3ec4..50ad988d 100644 --- a/SlackAPI/RPCMessages/UserListResponse.cs +++ b/SlackAPI/RPCMessages/UserListResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("users.list")] public class UserListResponse : Response diff --git a/SlackAPI/RPCMessages/UserPreferencesResponse.cs b/SlackAPI/RPCMessages/UserPreferencesResponse.cs index f8f69c05..16489175 100644 --- a/SlackAPI/RPCMessages/UserPreferencesResponse.cs +++ b/SlackAPI/RPCMessages/UserPreferencesResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("users.prefs.get")] public class UserPreferencesResponse: Response diff --git a/SlackAPI/ReactionAddedResponse.cs b/SlackAPI/ReactionAddedResponse.cs index b641ac32..d526eb80 100644 --- a/SlackAPI/ReactionAddedResponse.cs +++ b/SlackAPI/ReactionAddedResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { [RequestPath("reactions.add")] public class ReactionAddedResponse : Response diff --git a/SlackAPI/Request.cs b/SlackAPI/Request.cs index e7ed01a5..3a0377ad 100644 --- a/SlackAPI/Request.cs +++ b/SlackAPI/Request.cs @@ -1,12 +1,9 @@ -using Newtonsoft.Json; -using System; +using System; using System.Collections.Concurrent; using System.Diagnostics; using System.IO; using System.Net; using System.Reflection; -using System.Text; -using System.Threading; namespace SlackAPI { diff --git a/SlackAPI/RequestStateForTask.cs b/SlackAPI/RequestStateForTask.cs index f535f5a4..f5aad056 100644 --- a/SlackAPI/RequestStateForTask.cs +++ b/SlackAPI/RequestStateForTask.cs @@ -1,10 +1,6 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; +using System; using System.IO; -using System.Linq; using System.Net; -using System.Text; using System.Threading.Tasks; namespace SlackAPI diff --git a/SlackAPI/Response.cs b/SlackAPI/Response.cs index 8cd5e2c7..7d890ef4 100644 --- a/SlackAPI/Response.cs +++ b/SlackAPI/Response.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { @@ -24,7 +20,7 @@ public abstract class Response public void AssertOk() { if (!(ok)) - throw new InvalidOperationException(string.Format("An error occurred: {0}", this.error)); + throw new InvalidOperationException(string.Format("An error occurred: {0}", error)); } public ResponseMetaData response_metadata; diff --git a/SlackAPI/SlackAPI.csproj b/SlackAPI/SlackAPI.csproj index 934c5356..721d05c0 100644 --- a/SlackAPI/SlackAPI.csproj +++ b/SlackAPI/SlackAPI.csproj @@ -1,14 +1,14 @@  - net45;netstandard2.0 + net45;netstandard2.1 Full SlackAPI SlackAPI - + diff --git a/SlackAPI/SlackScope.cs b/SlackAPI/SlackScope.cs index 3819c05a..f110e620 100644 --- a/SlackAPI/SlackScope.cs +++ b/SlackAPI/SlackScope.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/TeamPreferences.cs b/SlackAPI/TeamPreferences.cs index e157d951..5c643b86 100644 --- a/SlackAPI/TeamPreferences.cs +++ b/SlackAPI/TeamPreferences.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class TeamPreferences { diff --git a/SlackAPI/User.cs b/SlackAPI/User.cs index eba1f1a3..a756316d 100644 --- a/SlackAPI/User.cs +++ b/SlackAPI/User.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SlackAPI { diff --git a/SlackAPI/UserTeamCombo.cs b/SlackAPI/UserTeamCombo.cs index 95a19c7a..87a58fb3 100644 --- a/SlackAPI/UserTeamCombo.cs +++ b/SlackAPI/UserTeamCombo.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI +namespace SlackAPI { public class UserTeamCombo { diff --git a/SlackAPI/Utilities/ILockFree.cs b/SlackAPI/Utilities/ILockFree.cs index 781e0739..5f7bdbfa 100644 --- a/SlackAPI/Utilities/ILockFree.cs +++ b/SlackAPI/Utilities/ILockFree.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI.Utilities +namespace SlackAPI.Utilities { public abstract class ILockFree where T : class { diff --git a/SlackAPI/WebSocketMessages/Hello.cs b/SlackAPI/WebSocketMessages/Hello.cs index beb4825a..e561dd95 100644 --- a/SlackAPI/WebSocketMessages/Hello.cs +++ b/SlackAPI/WebSocketMessages/Hello.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI.WebSocketMessages +namespace SlackAPI.WebSocketMessages { [SlackSocketRouting("hello")] public class Hello : SlackSocketMessage diff --git a/SlackAPI/WebSocketMessages/Ping.cs b/SlackAPI/WebSocketMessages/Ping.cs index 01322536..42a4bb6c 100644 --- a/SlackAPI/WebSocketMessages/Ping.cs +++ b/SlackAPI/WebSocketMessages/Ping.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI.WebSocketMessages +namespace SlackAPI.WebSocketMessages { [SlackSocketRouting("ping")] public class Ping : SlackSocketMessage diff --git a/SlackAPI/WebSocketMessages/Pong.cs b/SlackAPI/WebSocketMessages/Pong.cs index 6979303f..571ccadb 100644 --- a/SlackAPI/WebSocketMessages/Pong.cs +++ b/SlackAPI/WebSocketMessages/Pong.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI.WebSocketMessages +namespace SlackAPI.WebSocketMessages { [SlackSocketRouting("pong")] public class Pong : SlackSocketMessage diff --git a/SlackAPI/WebSocketMessages/PresenceChangeSubscription.cs b/SlackAPI/WebSocketMessages/PresenceChangeSubscription.cs index 7f533e11..bf08ca0b 100644 --- a/SlackAPI/WebSocketMessages/PresenceChangeSubscription.cs +++ b/SlackAPI/WebSocketMessages/PresenceChangeSubscription.cs @@ -1,6 +1,4 @@ -using System.Linq; - -namespace SlackAPI.WebSocketMessages +namespace SlackAPI.WebSocketMessages { [SlackSocketRouting("presence_sub")] public class PresenceChangeSubscription : SlackSocketMessage diff --git a/SlackAPI/WebSocketMessages/ReactionAdded.cs b/SlackAPI/WebSocketMessages/ReactionAdded.cs index 277e721c..f401aded 100644 --- a/SlackAPI/WebSocketMessages/ReactionAdded.cs +++ b/SlackAPI/WebSocketMessages/ReactionAdded.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SlackAPI.WebSocketMessages +namespace SlackAPI.WebSocketMessages { [SlackSocketRouting("reaction_added")] public class ReactionAdded : SlackSocketMessage diff --git a/SlackAPI/WebSocketMessages/Typing.cs b/SlackAPI/WebSocketMessages/Typing.cs index 29794096..55e0bd16 100644 --- a/SlackAPI/WebSocketMessages/Typing.cs +++ b/SlackAPI/WebSocketMessages/Typing.cs @@ -1,6 +1,4 @@ -using System; - -namespace SlackAPI.WebSocketMessages +namespace SlackAPI.WebSocketMessages { [SlackSocketRouting("typing")] [SlackSocketRouting("user_typing")] diff --git a/appveyor.yml b/appveyor.yml index 23ec30c1..aee491f6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -image: Visual Studio 2017 +image: Visual Studio 2022 pull_requests: do_not_increment_build_number: false diff --git a/build.cake b/build.cake index 2859cd18..a21c5cc3 100644 --- a/build.cake +++ b/build.cake @@ -102,7 +102,7 @@ Task("Test") // - replace assembly name in test report // - manualy push test result - foreach (var framework in new[] { "net452", "netcoreapp2.1"}) + foreach (var framework in new[] { "net452", "netcoreapp3.1"}) { DotNetCoreTest( testProject,