/// <summary>Creates a new Primedice client instance.</summary> /// <param name="authToken">Access token used for creating an authenticated instance.</param> public PrimediceClient(string authToken = null) { WebClient = new RestWebClient(authToken); Users = new UserManager(WebClient); Bets = new BetManager(WebClient); Wallet = new WalletManager(WebClient); }
/// <summary>Creates a new instance of 1Broker API .NET's client service.</summary> /// <param name="apiToken">Your secret API token.</param> public OneBrokerClient(string apiToken) { ApiToken = apiToken; RestWebClient = new RestWebClient(apiToken, Proxy); Account = new ClientTools.Account(RestWebClient); Orders = new ClientTools.Orders(RestWebClient); Positions = new ClientTools.Positions(RestWebClient); Markets = new ClientTools.Markets(RestWebClient); }
internal BetManager(RestWebClient webClient) { WebClient = webClient; if (!webClient.IsAuthorized) { // Initialize a new simulated seed set SimulatedSeedSet = new SeedSet(); ChangeClientSeed().Wait(); for (var i = 2; i > 0; i--) { ChangeSimulatedServerSeed(); } } }
internal Account(RestWebClient restWebClient) { RestWebClient = restWebClient; }
internal Markets(RestWebClient restWebClient) { RestWebClient = restWebClient; }
internal WalletManager(RestWebClient webClient) { WebClient = webClient; }
internal Positions(RestWebClient restWebClient) { RestWebClient = restWebClient; }
internal UserManager(RestWebClient webClient) { WebClient = webClient; }
internal Orders(RestWebClient restWebClient) { RestWebClient = restWebClient; }