public NewEggConfig(NewEggPlatform platform, ThrottlingOptions throttlingOptions, NetworkOptions networkOptions) { Condition.Requires(throttlingOptions, "throttlingOptions").IsNotNull(); Condition.Requires(networkOptions, "networkOptions").IsNotNull(); this.Platform = platform; this.ThrottlingOptions = throttlingOptions; this.NetworkOptions = networkOptions; this.OrdersPageSize = 100; }
private string GetPlatformUrl(NewEggPlatform platform) { switch (platform) { case NewEggPlatform.NewEggBusiness: { return("/b2b"); } case NewEggPlatform.NewEggCA: { return("/can"); } default: return(string.Empty); } }
public NewEggConfig(NewEggPlatform platform) : this(platform, ThrottlingOptions.NewEggDefaultOptions, NetworkOptions.NewEggDefaultOptions) { }