public Mobypicture(Twitter twitter, TwitterConfiguration twitterConfig) { this.twitter = twitter ?? throw new ArgumentNullException(nameof(twitter)); this.twitterConfig = twitterConfig ?? throw new ArgumentNullException(nameof(twitterConfig)); this.mobypictureApi = new MobypictureApi(twitter.Api); }
public Mobypicture(Twitter twitter, TwitterConfiguration twitterConfig) { if (twitter == null) { throw new ArgumentNullException("twitter"); } if (twitterConfig == null) { throw new ArgumentNullException("twitterConfig"); } this.twitter = twitter; this.twitterConfig = twitterConfig; this.mobypictureApi = new MobypictureApi(twitter.AccessToken, twitter.AccessTokenSecret); }
public Mobypicture(Twitter twitter, TwitterConfiguration twitterConfig) { if (twitter == null) throw new ArgumentNullException(nameof(twitter)); if (twitterConfig == null) throw new ArgumentNullException(nameof(twitterConfig)); this.twitter = twitter; this.twitterConfig = twitterConfig; this.mobypictureApi = new MobypictureApi(twitter.AccessToken, twitter.AccessTokenSecret); }