61 lines
1.2 KiB
C#
61 lines
1.2 KiB
C#
using AppData;
|
|
using NKC_SDK;
|
|
using SteamWare;
|
|
using System.Web.Http;
|
|
|
|
namespace NKC_WF.Controllers
|
|
{
|
|
public class BatchProcController : ApiController
|
|
{
|
|
|
|
/// <summary>
|
|
/// Restituisce SE C'E' la richiesta di elaborazione BATCH corrente
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
// GET: api/BatchProc
|
|
[HttpGet]
|
|
public batchRequest Get()
|
|
{
|
|
batchRequest answ = new batchRequest();
|
|
// in primis: controllo su redis SE HO una richeista CURRENT di processing...
|
|
string redKey = $"{ComLib.redOutPath}:CURR";
|
|
string redVal = memLayer.ML.getRSV(redKey);
|
|
// se c'è carico "la busta" come ID
|
|
if (!string.IsNullOrEmpty(redVal))
|
|
{
|
|
|
|
// ...carico i data
|
|
|
|
// ...carico gli ORDERS
|
|
|
|
// ... carico i KITS
|
|
|
|
// ... carico gli ITEMS
|
|
|
|
}
|
|
return answ;
|
|
}
|
|
|
|
// GET: api/BatchProc/5
|
|
public string Get(int id)
|
|
{
|
|
return "value";
|
|
}
|
|
|
|
// POST: api/BatchProc
|
|
public void Post([FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// PUT: api/BatchProc/5
|
|
public void Put(int id, [FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// DELETE: api/BatchProc/5
|
|
public void Delete(int id)
|
|
{
|
|
}
|
|
}
|
|
}
|