Skip to content

Commit 4e05ca8

Browse files
authored
Merge pull request #82 from standleypg-dev/Migrate-To-NetCord
Finalize NetCord migration implementation
2 parents aca00f8 + d2a7d9d commit 4e05ca8

39 files changed

Lines changed: 486 additions & 1883 deletions

src/Application/Interfaces/Commands/IRadioCommand.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Application/Interfaces/Services/IAudioPlayerService.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Application/Interfaces/Services/IJokeService.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Application/Interfaces/Services/IMusicQueueService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ public interface IMusicQueueService
99
void DequeueAsync(CancellationToken cancellationToken);
1010
int Count { get; }
1111
PlayRequest[] GetAllRequests();
12+
void Clear();
1213
}

src/Application/Interfaces/Services/IQueueService.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Application/Interfaces/Services/IQuoteService.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Application.Interfaces.Services;
2+
3+
public interface IRandomService
4+
{
5+
Task<string> GetAsync();
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Application.Interfaces.Services;
2+
3+
public interface IScopeExecutor
4+
{
5+
Task ExecuteAsync(Func<IServiceProvider, Task> action);
6+
void Execute(Action<IServiceProvider> action);
7+
}

src/Application/Services/JokeService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
namespace Application.Services;
77

88
public class JokeService(IHttpRequestService httpRequestService, IConfiguration configuration)
9-
: IJokeService
9+
: IRandomService
1010
{
1111
private readonly JokeQuoteSettingDto _jokeConfig = configuration.GetConfiguration<JokeQuoteSettingDto>("JokeSettings")!;
1212

13-
public async Task<string> GetJokeAsync()
13+
public async Task<string> GetAsync()
1414
{
1515
var joke = await httpRequestService.GetAsync<JokeDto>(_jokeConfig.ApiUrl);
1616
return $"{_jokeConfig.Greeting} {joke.Setup} {joke.Delivery}";

src/Application/Services/QuoteService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
namespace Application.Services;
77

8-
public class QuoteService(IHttpRequestService httpRequestService, IConfiguration configuration) : IQuoteService
8+
public class QuoteService(IHttpRequestService httpRequestService, IConfiguration configuration) : IRandomService
99
{
1010
private readonly JokeQuoteSettingDto _quoteConfig = configuration.GetConfiguration<JokeQuoteSettingDto>("QuoteSettings")!;
1111

12-
public async Task<string> GetQuoteAsync()
12+
public async Task<string> GetAsync()
1313
{
1414
var quote = await httpRequestService.GetAsync<QuoteDto>(_quoteConfig.ApiUrl);
1515
return $"{_quoteConfig.Greeting} {quote.Content} by {quote.Author}";

0 commit comments

Comments
 (0)