mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 02:17:20 +02:00
23 lines
988 B
C#
23 lines
988 B
C#
using System.Collections.Generic;
|
|
using AutoMapper;
|
|
using WotBlitzStatisticsPro.Common.Dictionaries;
|
|
using WotBlitzStatisticsPro.DataAccess.Model;
|
|
using WotBlitzStatisticsPro.WgApiClient.Model;
|
|
|
|
namespace WotBlitzStatisticsPro.Logic.Mappers
|
|
{
|
|
public class AchievementDictionaryProfile : Profile
|
|
{
|
|
public AchievementDictionaryProfile()
|
|
{
|
|
CreateMap<WotEncyclopediaAchievementsResponse, AchievementDictionary>()
|
|
.ForMember(d => d.Name, o => o.MapFrom(_ => new List<LocalizableString>()))
|
|
.ForMember(d => d.Condition, o => o.MapFrom(_ => new List<LocalizableString>()))
|
|
.ForMember(d => d.Description, o => o.MapFrom(_ => new List<LocalizableString>()))
|
|
.ForMember(d => d.HeroInfo, o => o.MapFrom(_ => new List<LocalizableString>()))
|
|
.ForMember(d => d.SectionId, o => o.MapFrom(s => s.Section))
|
|
.ForMember(d => d.Options, o => o.Ignore());
|
|
|
|
}
|
|
}
|
|
} |