mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 20:00:05 +02:00
Vehicles dictionary updater
This commit is contained in:
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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user