3 using System.Web.Script.Serialization;
5 namespace Sage.
ES.S50.Features
7 internal class FeaturesRequest
13 public string Id {
get;
set; }
18 public DateTime FechaPeticion {
get;
set; }
23 public DateTime FechaProximaPeticion {
get;
set; }
32 return _oResult is ResultadoRequest ? _oResult.Code == 0 :
false;
36 private ResultadoRequest _oResult;
43 public FeaturesRequest(
string tcId,
string tcResult)
46 FechaPeticion = DateTime.Now;
47 FechaProximaPeticion = FechaPeticion.AddDays(1);
51 _oResult =
new JavaScriptSerializer().Deserialize<ResultadoRequest>(tcResult);
55 DB.Registrar_Error(loEx);
60 internal class FeaturesServerRequest
67 public FeaturesServerRequest()
68 :base(
"serverrequest",
"")
70 FechaProximaPeticion = FechaPeticion.AddHours(1);