Moved Requests classes to here. Added some checks to requests.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using HermesSocketLibrary.db;
|
||||
using HermesSocketLibrary.Requests;
|
||||
using HermesSocketLibrary.Requests.Messages;
|
||||
using ILogger = Serilog.ILogger;
|
||||
|
||||
@@ -8,7 +7,7 @@ namespace HermesSocketServer.Requests
|
||||
public class GetRedemptions : IRequest
|
||||
{
|
||||
public string Name => "get_redemptions";
|
||||
|
||||
public string[] RequiredKeys => [];
|
||||
private readonly Database _database;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
@@ -33,7 +32,7 @@ namespace HermesSocketServer.Requests
|
||||
State = r.GetBoolean(4)
|
||||
}));
|
||||
_logger.Information($"Fetched all redemptions for channel [channel: {sender}]");
|
||||
return new RequestResult(true, redemptions, notifyClientsOnAccount: false);
|
||||
return RequestResult.Successful(redemptions, notifyClientsOnAccount: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user