Exemple #1
0
 public Vegetable(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #2
0
 public Seed(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #3
0
        public static LegacyProduct ResolveItem(IProduct legacyProduct, InventoryItemResolverOptions options)
        {
            // ReSharper disable once PossibleInvalidOperationException
            switch ((ProductTypeEnum)legacyProduct.ProductTypeId)
            {
                case ProductTypeEnum.Metal:
                    return new Metal(legacyProduct, options);
                case ProductTypeEnum.Wood:
                    return new Wood(legacyProduct, options);
                case ProductTypeEnum.Plastic:
                    return new Plastic(legacyProduct, options);
                case ProductTypeEnum.Seed:
                    return new Seed(legacyProduct, options);
                case ProductTypeEnum.Mineral:
                    return new Mineral(legacyProduct, options);
                case ProductTypeEnum.Chemical:
                    return new Chemical(legacyProduct, options);
                case ProductTypeEnum.Textiles:
                    return new Textiles(legacyProduct, options);
                case ProductTypeEnum.SugarAndSpice:
                    return new SugarAndSpice(legacyProduct, options);
                case ProductTypeEnum.Glass:
                    return new Glass(legacyProduct, options);
                case ProductTypeEnum.AnimalFeed:
                    return new AnimalFeed(legacyProduct, options);
                case ProductTypeEnum.Hammer:
                    return new Hammer(legacyProduct, options);
                case ProductTypeEnum.MeasuringTape:
                    return new MeasuringTape(legacyProduct, options);
                case ProductTypeEnum.Shovel:
                    return new Shovel(legacyProduct, options);
                case ProductTypeEnum.KitchenUtensils:
                    return new KitchenUtensils(legacyProduct, options);
                case ProductTypeEnum.Nail:
                    return new Nail(legacyProduct, options);
                case ProductTypeEnum.Planks:
                    return new Plank(legacyProduct, options);
                case ProductTypeEnum.Brick:
                    return new Brick(legacyProduct, options);
                case ProductTypeEnum.Cement:
                    return new Cement(legacyProduct, options);
                case ProductTypeEnum.Glue:
                    return new Glue(legacyProduct, options);
                case ProductTypeEnum.Chair:
                    return new Chair(legacyProduct, options);
                case ProductTypeEnum.Table:
                    return new Table(legacyProduct, options);
                case ProductTypeEnum.Grass:
                    return new Grass(legacyProduct, options);
                case ProductTypeEnum.TreeSapling:
                    return new TreeSapling(legacyProduct, options);
                case ProductTypeEnum.LawnFurniture:
                    return new LawnFurniture(legacyProduct, options);
                case ProductTypeEnum.Vegetable:
                    return new Vegetable(legacyProduct, options);
                case ProductTypeEnum.Flour:
                    return new Flour(legacyProduct, options);
                case ProductTypeEnum.FruitsAndBerries:
                    return new FruitsAndBerries(legacyProduct, options);
                case ProductTypeEnum.Cream:
                    return new Cream(legacyProduct, options);
                case ProductTypeEnum.Donut:
                    return new Donut(legacyProduct, options);
                case ProductTypeEnum.GreenSmoothie:
                    return new GreenSmoothie(legacyProduct, options);
                case ProductTypeEnum.Cap:
                    return new Cap(legacyProduct, options);
                case ProductTypeEnum.Shoe:
                    return new Shoe(legacyProduct, options);
                case ProductTypeEnum.Watch:
                    return new Watch(legacyProduct, options);
                default:
                    throw new ApplicationException("No Implementation for Item Type " + legacyProduct.ProductTypeId);

            }
        }
Exemple #4
0
 public MeasuringTape(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #5
0
 public LawnFurniture(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #6
0
 protected LegacyProduct(IProduct legacyProduct, InventoryItemResolverOptions options)
 {
     if (options.MapQuantity)
         Quantity = legacyProduct.Quantity;
 }
Exemple #7
0
 public KitchenUtensils(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #8
0
 public GreenSmoothie(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #9
0
 public FruitsAndBerries(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #10
0
 public TreeSapling(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
Exemple #11
0
 public SugarAndSpice(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }