Ejemplo n.º 1
0
 private void InitSpecialOffers(IEnumerable <JsonObject> specialOffersJson)
 {
     _specialOffers.Clear();
     specialOffersJson.ForEach(sobj =>
     {
         try
         {
             var def = new SpecialOffers.Definition(sobj);
             _specialOffers.Add(def);
             def.GetIds()
             .ForEach(id =>
             {
                 _configurationBuilder.products.Add(CreateProduct(id, ProductType.Consumable));
             });
         }
         catch (Exception x)
         {
             LogUtils.LogError(x.Message);
             LogUtils.LogError(x.StackTrace);
         }
     });
 }
Ejemplo n.º 2
0
 public DefinitionEventArgs(SpecialOffers.Definition definition)
 {
     this.definition = definition;
 }