Vehicles dictionary updater

This commit is contained in:
Mikhail Shabanov committed 2020-06-07 14:39:03 +02:00
1 parent 6a9b69b254
commit 4a11ed61df
11 files changed
+525 -4

No files matched your search

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using AutoMapper;
using WotBlitzStatisticsPro.Common.Dictionaries;
namespace WotBlitzStatisticsPro.Logic.Mappers
{
public class VehiclePriceProfile : Profile
{
public VehiclePriceProfile()
{
CreateMap<KeyValuePair<string, string>, VehiclePriceInXp>()
.ForMember(d => d.TankId,
o => o.MapFrom(s => Convert.ToInt64(s.Key)))
.ForMember(d => d.PricesXp,
o => o.MapFrom(s => Convert.ToInt64(s.Value)));
}
}
}