Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }