Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build warnings #317

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions SlackAPI.Tests/SlackAPI.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net452;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
<OutputType>Library</OutputType>
<DebugType>Full</DebugType>
<RootNamespace>SlackAPI.Tests</RootNamespace>
<AssemblyName>SlackAPI.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="Polly" Version="7.1.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Polly" Version="7.2.4" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="2.43.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/Channel.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/ContextMessage.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 0 additions & 4 deletions SlackAPI/Conversation.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlackAPI
{
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/DirectMessageConversation.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 0 additions & 4 deletions SlackAPI/JavascriptDateTimeConverter.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 0 additions & 4 deletions SlackAPI/Message.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlackAPI
{
Expand Down
3 changes: 0 additions & 3 deletions SlackAPI/MimeTypes.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlackAPI
{
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/OwnedStampedMessage.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/Preferences.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI
namespace SlackAPI
{
public class Preferences
{
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/AccessTokenResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/RPCMessages/AuthSigninResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI
namespace SlackAPI
{
[RequestPath("auth.signin")]
public class AuthSigninResponse : Response
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/RPCMessages/AuthStartResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI
namespace SlackAPI
{
[RequestPath("auth.start")]
public class AuthStartResponse : Response
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/AuthTestResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/RPCMessages/ChannelCreateResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI
namespace SlackAPI
{
[RequestPath("channels.create")]
public class ChannelCreateResponse : Response
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ChannelInviteResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/RPCMessages/ChannelListResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI
namespace SlackAPI
{
[RequestPath("channels.list")]
public class ChannelListResponse : Response
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ChannelMessageHistory.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsArchiveResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsCloseResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/RPCMessages/ConversationsCreateResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI
namespace SlackAPI
{
[RequestPath("conversations.create")]
public class ConversationsCreateResponse : Response
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsInviteResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsKickResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsLeaveResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsListResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsMarkResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions SlackAPI/RPCMessages/ConversationsMessageHistory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace SlackAPI.RPCMessages
namespace SlackAPI.RPCMessages
{
[RequestPath("conversations.history")]
public class ConversationsMessageHistory : MessageHistory
Expand Down
9 changes: 1 addition & 8 deletions SlackAPI/RPCMessages/ConversationsOpenResponse.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
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
{
public string no_op;
public string already_open;
public Channel channel;
public string error;
}
}
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsRenameResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsSetPurposeResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsSetTopicResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions SlackAPI/RPCMessages/ConversationsUnarchiveResponse.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions SlackAPI/RPCMessages/DeletedResponse.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlackAPI
{
Expand Down
10 changes: 2 additions & 8 deletions SlackAPI/RPCMessages/DialogOpenResponse.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Loading