예제 #1
0
        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;
        }
예제 #2
0
        private string GetPlatformUrl(NewEggPlatform platform)
        {
            switch (platform)
            {
            case NewEggPlatform.NewEggBusiness:
            {
                return("/b2b");
            }

            case NewEggPlatform.NewEggCA:
            {
                return("/can");
            }

            default:
                return(string.Empty);
            }
        }
예제 #3
0
 public NewEggConfig(NewEggPlatform platform) : this(platform, ThrottlingOptions.NewEggDefaultOptions, NetworkOptions.NewEggDefaultOptions)
 {
 }