Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }