public LeaderboardShareService(LeaderboardApi leaderboardApi, TwitterPersistenceService twitterPersistenceService) { _leaderboardApi = leaderboardApi; _twitterAccountInfo = twitterPersistenceService.Load(); }
private void Initialize() { _twitterAccountInformation = _twitterPersistenceService.Load(); _twitterService = new TwitterService(Constants.ConsumerKey, Constants.ConsumerSecret); _twitterService.AuthenticateWith(_twitterAccountInformation.AccessToken, _twitterAccountInformation.AccessTokenSecret); _twitterAccount = _twitterService.GetAccountSettings(); }