aafe24eafb
* Move Router, Callbacks and GetResponse over to ValueTask * Assign empty deserializedObject for now, keep todo * Cleanup GetResponse * Re-add logger for request
33 lines
860 B
C#
33 lines
860 B
C#
using SPTarkov.DI.Annotations;
|
|
using SPTarkov.Server.Core.Callbacks;
|
|
using SPTarkov.Server.Core.DI;
|
|
using SPTarkov.Server.Core.Models.Eft.ItemEvent;
|
|
using SPTarkov.Server.Core.Utils;
|
|
|
|
namespace SPTarkov.Server.Core.Routers.Static;
|
|
|
|
[Injectable]
|
|
public class ItemEventStaticRouter : StaticRouter
|
|
{
|
|
public ItemEventStaticRouter(
|
|
JsonUtil jsonUtil,
|
|
ItemEventCallbacks itemEventCallbacks
|
|
) : base(
|
|
jsonUtil,
|
|
[
|
|
new RouteAction(
|
|
"/client/game/profile/items/moving",
|
|
async (
|
|
url,
|
|
info,
|
|
sessionID,
|
|
output
|
|
) => await itemEventCallbacks.HandleEvents(url, info as ItemEventRouterRequest, sessionID),
|
|
typeof(ItemEventRouterRequest)
|
|
)
|
|
]
|
|
)
|
|
{
|
|
}
|
|
}
|