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