From 2df3480f43efbe6f2d8dadbffdd2d65c24b4f8ec Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 14 Nov 2016 12:19:58 +0100 Subject: [PATCH] internal -> public --- src/NadekoBot/DataStructures/PlatformHelper.cs | 4 ++-- .../Modules/Administration/Commands/Migration/0_9..cs | 2 +- src/NadekoBot/Modules/Music/Classes/MusicControls.cs | 2 +- src/NadekoBot/NadekoBot.xproj | 3 +++ src/NadekoBot/Services/CleverBotApi/Cleverbot.cs | 4 ++-- src/NadekoBot/Services/CleverBotApi/Pandorabots.cs | 4 ++-- src/NadekoBot/Services/CleverBotApi/Utils.cs | 2 +- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/NadekoBot/DataStructures/PlatformHelper.cs b/src/NadekoBot/DataStructures/PlatformHelper.cs index d0b5a4ba..8c523ec9 100644 --- a/src/NadekoBot/DataStructures/PlatformHelper.cs +++ b/src/NadekoBot/DataStructures/PlatformHelper.cs @@ -2,14 +2,14 @@ namespace ConcurrentCollections { - internal static class PlatformHelper + public static class PlatformHelper { private const int ProcessorCountRefreshIntervalMs = 30000; private static volatile int _processorCount; private static volatile int _lastProcessorCountRefreshTicks; - internal static int ProcessorCount { + public static int ProcessorCount { get { var now = Environment.TickCount; if (_processorCount == 0 || (now - _lastProcessorCountRefreshTicks) >= ProcessorCountRefreshIntervalMs) diff --git a/src/NadekoBot/Modules/Administration/Commands/Migration/0_9..cs b/src/NadekoBot/Modules/Administration/Commands/Migration/0_9..cs index 7606cf82..28e5d949 100644 --- a/src/NadekoBot/Modules/Administration/Commands/Migration/0_9..cs +++ b/src/NadekoBot/Modules/Administration/Commands/Migration/0_9..cs @@ -162,7 +162,7 @@ namespace NadekoBot.Modules.Administration.Commands.Migration } } - internal class ServerSpecificConfig + public class ServerSpecificConfig { public bool VoicePlusTextEnabled { get; set; } public bool SendPrivateMessageOnMention { get; set; } diff --git a/src/NadekoBot/Modules/Music/Classes/MusicControls.cs b/src/NadekoBot/Modules/Music/Classes/MusicControls.cs index 53a2c736..6cc3560d 100644 --- a/src/NadekoBot/Modules/Music/Classes/MusicControls.cs +++ b/src/NadekoBot/Modules/Music/Classes/MusicControls.cs @@ -245,7 +245,7 @@ namespace NadekoBot.Modules.Music.Classes }); } - internal async Task UpdateSongDurationsAsync() + public async Task UpdateSongDurationsAsync() { var curSong = CurrentSong; var toUpdate = playlist.Where(s => s.SongInfo.ProviderType == MusicType.Normal && diff --git a/src/NadekoBot/NadekoBot.xproj b/src/NadekoBot/NadekoBot.xproj index 901e69fd..902d10fa 100644 --- a/src/NadekoBot/NadekoBot.xproj +++ b/src/NadekoBot/NadekoBot.xproj @@ -18,5 +18,8 @@ + + + \ No newline at end of file diff --git a/src/NadekoBot/Services/CleverBotApi/Cleverbot.cs b/src/NadekoBot/Services/CleverBotApi/Cleverbot.cs index 328c0500..5599d7b0 100644 --- a/src/NadekoBot/Services/CleverBotApi/Cleverbot.cs +++ b/src/NadekoBot/Services/CleverBotApi/Cleverbot.cs @@ -22,7 +22,7 @@ using System.Threading.Tasks; namespace Services.CleverBotApi { - internal class Cleverbot : ChatterBot + public class Cleverbot : ChatterBot { private readonly int endIndex; private readonly string baseUrl; @@ -41,7 +41,7 @@ namespace Services.CleverBotApi } } - internal class CleverbotSession : ChatterBotSession + public class CleverbotSession : ChatterBotSession { private readonly int endIndex; private readonly string url; diff --git a/src/NadekoBot/Services/CleverBotApi/Pandorabots.cs b/src/NadekoBot/Services/CleverBotApi/Pandorabots.cs index 384b2e63..0d1d8246 100644 --- a/src/NadekoBot/Services/CleverBotApi/Pandorabots.cs +++ b/src/NadekoBot/Services/CleverBotApi/Pandorabots.cs @@ -22,7 +22,7 @@ using System.Threading.Tasks; namespace Services.CleverBotApi { - internal class Pandorabots : ChatterBot + public class Pandorabots : ChatterBot { private readonly string botid; @@ -37,7 +37,7 @@ namespace Services.CleverBotApi } } - internal class PandorabotsSession : ChatterBotSession + public class PandorabotsSession : ChatterBotSession { private readonly IDictionary vars; diff --git a/src/NadekoBot/Services/CleverBotApi/Utils.cs b/src/NadekoBot/Services/CleverBotApi/Utils.cs index 3f4596a7..8954afc6 100644 --- a/src/NadekoBot/Services/CleverBotApi/Utils.cs +++ b/src/NadekoBot/Services/CleverBotApi/Utils.cs @@ -28,7 +28,7 @@ using System.Xml.XPath; namespace Services.CleverBotApi { - internal static class Utils + public static class Utils { public static string ParametersToWWWFormURLEncoded(IDictionary parameters) {