Amazon-SP-API-CSharp
Amazon-SP-API-CSharp copied to clipboard
Get rid of unneccessary custom List types
Why does this library use so many custom types that just extend List
For example:
namespace FikaAmazonAPI.Utils { public class MarketplaceIds : List<string> { } }
Used in ParameterCreateReportSpecification:
public MarketplaceIds marketplaceIds { get; set; }
Why don't just use a public List<string> marketplaceIds { get; set; } ?
This style makes it really annoying to use short-hand initialization of objects (for example with LINQ data), as you need to create a local variable for the custom list, fill it with data and then pass it to the object, instead of just doing ToList()