mirror of
https://github.com/snltty/linker.git
synced 2025-10-17 22:50:44 +08:00
30 lines
704 B
C#
30 lines
704 B
C#
using linker.libs.api;
|
|
using linker.libs.extends;
|
|
|
|
namespace linker.messenger.action
|
|
{
|
|
public sealed class ActionApiController : IApiController
|
|
{
|
|
private readonly IActionStore actionStore;
|
|
|
|
public ActionApiController(IActionStore actionStore)
|
|
{
|
|
this.actionStore = actionStore;
|
|
}
|
|
|
|
|
|
public bool SetArgs(ApiControllerParamsInfo param)
|
|
{
|
|
actionStore.SetActionArg(param.Content);
|
|
return true;
|
|
}
|
|
|
|
public bool SetServerArgs(ApiControllerParamsInfo param)
|
|
{
|
|
actionStore.SetActionArgs(param.Content.DeJson<Dictionary<string, string>>());
|
|
return true;
|
|
}
|
|
}
|
|
|
|
}
|