Skip to content

Commit 23b0ae7

Browse files
author
Justin Skiles
committed
Removing support for DOTA2 GetSchema until I rework the types and mappings.
1 parent 4e121cb commit 23b0ae7

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

SteamWebAPI2/AutoMapperConfiguration.cs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static void Initialize()
8888
CreateSteamWebResponseMap<MatchHistoryBySequenceNumberResultContainer, IReadOnlyCollection<MatchHistoryMatchModel>>(x);
8989
CreateSteamWebResponseMap<TeamInfoResultContainer, IReadOnlyCollection<TeamInfoModel>>(x);
9090
CreateSteamWebResponseMap<EconItemResultContainer, EconItemResultModel>(x);
91-
CreateSteamWebResponseMap<SchemaResultContainer, Steam.Models.DOTA2.SchemaModel>(x);
91+
//CreateSteamWebResponseMap<SchemaResultContainer, Steam.Models.DOTA2.SchemaModel>(x);
9292
CreateSteamWebResponseMap<SchemaResultContainer, Steam.Models.TF2.SchemaModel>(x);
9393
CreateSteamWebResponseMap<SchemaUrlResultContainer, string>(x);
9494
CreateSteamWebResponseMap<StoreMetaDataResultContainer, StoreMetaDataModel>(x);
@@ -162,9 +162,21 @@ public static void Initialize()
162162
x.CreateMap<SchemaResultContainer, Steam.Models.TF2.SchemaModel>().ConvertUsing(
163163
src => Mapper.Map<SchemaResult, Steam.Models.TF2.SchemaModel>(src.Result)
164164
);
165-
x.CreateMap<SchemaResultContainer, Steam.Models.DOTA2.SchemaModel>().ConvertUsing(
166-
src => Mapper.Map<SchemaResult, Steam.Models.DOTA2.SchemaModel>(src.Result)
167-
);
165+
166+
// TODO: Rework the way Schema models are used for different games (TF2 / DOTA2)
167+
//x.CreateMap<SchemaQualities, Steam.Models.DOTA2.SchemaQualityModel>()
168+
// .ForMember(dest => dest.Name, opts => opts.Ignore())
169+
// .ForMember(dest => dest.Value, opts => opts.Ignore())
170+
// .ForMember(dest => dest.HexColor, opts => opts.Ignore());
171+
//x.CreateMap<SchemaResult, Steam.Models.DOTA2.SchemaModel>()
172+
// .ForMember(dest => dest.GameInfo, opts => opts.Ignore())
173+
// .ForMember(dest => dest.Rarities, opts => opts.Ignore())
174+
// .ForMember(dest => dest.Colors, opts => opts.Ignore())
175+
// .ForMember(dest => dest.Prefabs, opts => opts.Ignore())
176+
// .ForMember(dest => dest.ItemAutographs, opts => opts.Ignore());
177+
//x.CreateMap<SchemaResultContainer, Steam.Models.DOTA2.SchemaModel>().ConvertUsing(
178+
// src => Mapper.Map<SchemaResult, Steam.Models.DOTA2.SchemaModel>(src.Result)
179+
//);
168180

169181
x.CreateMap<Rarity, RarityModel>();
170182
x.CreateMap<RarityResultContainer, IReadOnlyCollection<RarityModel>>().ConvertUsing(

0 commit comments

Comments
 (0)