Exemple #1
0
 public TweetCashController(ITweetsCashRepository tweetCashRepository,
                            ITwitterAppAccountRepository twitterAppAccountRepository,
                            TwitterSettings twitterSettings,
                            ILog log, ITweetsManager tweetsManager)
 {
     _tweetCashRepository         = tweetCashRepository;
     _twitterAppAccountRepository = twitterAppAccountRepository;
     _twitterSettings             = twitterSettings;
     _log           = log;
     _tweetsManager = tweetsManager;
 }
 public async Task SaveTweetsCash(ITweetsCashRepository tweetCashRepository, IEnumerable <ITweetCash> tweets)
 {
     await tweetCashRepository.CreateOrUpdateAsync(tweets);
 }
 public async Task <List <ITweetCash> > GetTweetsCash(ITweetsCashRepository tweetCashRepository,
                                                      string accountId)
 {
     return((await tweetCashRepository.GetAsync(accountId)).ToList());
 }