Пример #1
0
 public TradingService(IHttpClientFactory factory, IRokiConfig config, RokiContext context, ICurrencyService currency, IConfigurationService service)
 {
     _factory  = factory;
     _config   = config;
     _context  = context;
     _currency = currency;
     _service  = service;
 }
Пример #2
0
 public TwitterCommands(IRokiConfig config)
 {
     _twitterCtx = new TwitterContext(new SingleUserAuthorizer
     {
         CredentialStore = new SingleUserInMemoryCredentialStore
         {
             ConsumerKey       = config.TwitterConsumer,
             ConsumerSecret    = config.TwitterConsumerSecret,
             AccessToken       = config.TwitterAccessToken,
             AccessTokenSecret = config.TwitterAccessSecret
         }
     });
 }
Пример #3
0
 public StocksService(IRokiConfig config, IHttpClientFactory httpFactory)
 {
     _config      = config;
     _httpFactory = httpFactory;
 }
Пример #4
0
 public InfoCommands(DiscordSocketClient client, IStatsService stats, IRokiConfig config)
 {
     _client = client;
     _stats  = stats;
     _config = config;
 }
Пример #5
0
 public SearchService(IHttpClientFactory http, IRokiConfig config)
 {
     _http   = http;
     _config = config;
 }
Пример #6
0
 public Searches(IRokiConfig config, IGoogleApiService google, IHttpClientFactory http)
 {
     _config = config;
     _google = google;
     _http   = http;
 }
Пример #7
0
 public PortfolioService(IHttpClientFactory factory, IRokiConfig config, RokiContext context)
 {
     _factory = factory;
     _config  = config;
     _context = context;
 }