Skip to content

Commit 69c1ec3

Browse files
chore: rename conventions
1 parent 12d2c92 commit 69c1ec3

File tree

13 files changed

+114
-96
lines changed

13 files changed

+114
-96
lines changed

src/Nullinside.Api.Common/Desktop/GithubLatestReleaseJson.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Diagnostics.CodeAnalysis;
1+
// <autogenerated />
2+
// ReSharper disable All
3+
4+
using System.Diagnostics.CodeAnalysis;
25

36
namespace Nullinside.Api.Common.Desktop;
47

src/Nullinside.Api.Common/Twitch/Json/TwitchModeratedChannelsResponse.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Diagnostics.CodeAnalysis;
1+
// <autogenerated />
2+
// ReSharper disable All
3+
4+
using System.Diagnostics.CodeAnalysis;
25

36
namespace Nullinside.Api.Common.Twitch.Json;
47

src/Nullinside.Api.Common/Twitch/Support/TwitchBotLoginErrors.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ public enum TwitchBotLoginErrors {
77
/// <summary>
88
/// An error with the token that twitch provided us.
99
/// </summary>
10-
TwitchErrorWithToken,
10+
TWITCH_ERROR_WITH_TOKEN,
1111

1212
/// <summary>
1313
/// The twitch account doesn't have an email address associated with it.
1414
/// </summary>
15-
TwitchAccountHasNoEmail,
15+
TWITCH_ACCOUNT_HAS_NO_EMAIL,
1616

1717
/// <summary>
1818
/// An internal error in the web server having nothing to do with the outside world.
1919
/// </summary>
20-
InternalError
20+
INTERNAL_ERROR
2121
}

src/Nullinside.Api.Common/Twitch/TwitchApiProxy.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class TwitchApiProxy : ITwitchApiProxy {
2727
/// <summary>
2828
/// The logger.
2929
/// </summary>
30-
private static readonly ILog Log = LogManager.GetLogger(typeof(TwitchApiProxy));
30+
private static readonly ILog LOG = LogManager.GetLogger(typeof(TwitchApiProxy));
3131

3232
/// <summary>
3333
/// Initializes a new instance of the <see cref="TwitchApiProxy" /> class.
@@ -213,14 +213,14 @@ public virtual async Task<IEnumerable<BannedUser>> BanChannelUsers(string channe
213213
}
214214

215215
bannedUsers.AddRange(response.Data);
216-
Log.Info($"Banned {user.Username} ({user.Id}) in {channelId}: {reason}");
216+
LOG.Info($"Banned {user.Username} ({user.Id}) in {channelId}: {reason}");
217217
}
218218
catch (HttpResponseException ex) {
219219
string exceptionReason = await ex.HttpResponse.Content.ReadAsStringAsync(token);
220-
Log.Debug($"Failed to ban {user.Username} ({user.Id}) in {channelId}: {exceptionReason}", ex);
220+
LOG.Debug($"Failed to ban {user.Username} ({user.Id}) in {channelId}: {exceptionReason}", ex);
221221
}
222222
catch (Exception ex) {
223-
Log.Debug($"Failed to ban {user.Username} ({user.Id}) in {channelId}", ex);
223+
LOG.Debug($"Failed to ban {user.Username} ({user.Id}) in {channelId}", ex);
224224
}
225225
}
226226

0 commit comments

Comments
 (0)