Skip to content

Commit 72b0a54

Browse files
committed
fix marketplaces
1 parent 24573ea commit 72b0a54

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

Source/FikaAmazonAPI/Utils/MarketPlace.cs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,6 @@ private MarketPlace(string id, Region region, Country country, BaseCurrencyCode
2525

2626
[JsonConstructorAttribute]
2727
public MarketPlace() { }
28-
static MarketPlace()
29-
{
30-
_allMarketplaces = new List<MarketPlace>
31-
{
32-
// NorthAmerica
33-
US, Canada, Mexico, Brazil,
34-
// Europe
35-
Spain, UnitedKingdom, France, Belgium,
36-
Netherlands, Germany, Italy, Sweden,
37-
Egypt, Poland, Turkey, UnitedArabEmirates,
38-
India, SaudiArabia, SouthAfrica, Ireland,
39-
// FarEast
40-
Singapore, Australia, Japan
41-
};
42-
}
43-
44-
private static readonly List<MarketPlace> _allMarketplaces;
4528

4629
public static MarketPlace GetMarketPlaceByID(string id)
4730
{
@@ -88,5 +71,20 @@ public static MarketPlace GetMarketplaceByCountryCode(string countryCode)
8871
public static readonly MarketPlace Singapore = new MarketPlace("A19VAU5U5O7RUS", Region.FarEast, Country.SG, BaseCurrencyCode.SGD);
8972
public static readonly MarketPlace Australia = new MarketPlace("A39IBJ37TRP1C6", Region.FarEast, Country.AU, BaseCurrencyCode.AUD);
9073
public static readonly MarketPlace Japan = new MarketPlace("A1VC38T7YXB528", Region.FarEast, Country.JP, BaseCurrencyCode.JPY);
74+
75+
76+
private static readonly IReadOnlyList<MarketPlace> _allMarketplaces = new[]
77+
{
78+
// NorthAmerica
79+
US, Canada, Mexico, Brazil,
80+
// Europe
81+
Spain, UnitedKingdom, France, Belgium,
82+
Netherlands, Germany, Italy, Sweden,
83+
Egypt, Poland, Turkey, UnitedArabEmirates,
84+
India, SaudiArabia, SouthAfrica, Ireland,
85+
// FarEast
86+
Singapore, Australia, Japan
87+
};
88+
9189
}
9290
}

0 commit comments

Comments
 (0)