public NHibernateIndulgeMeService(ISession session, IIndulgenceGenerator indulgenceGenerator, IFileStorage fileStorage, ITweeter tweeter)
 {
     _session = session;
     _indulgenceGenerator = indulgenceGenerator;
     _fileStorage = fileStorage;
     _tweeter = tweeter;
 }
Пример #2
0
 public NHibernateIndulgeMeService(ISession session, IIndulgenceGenerator indulgenceGenerator, IFileStorage fileStorage, ITweeter tweeter)
 {
     _session             = session;
     _indulgenceGenerator = indulgenceGenerator;
     _fileStorage         = fileStorage;
     _tweeter             = tweeter;
 }
Пример #3
0
 public MisakuraTweeter(ITweeter tweeter)
 {
     if (tweeter == null)
     {
         throw new ArgumentNullException("tweeter_");
     }
     tweeter_ = tweeter;
 }
Пример #4
0
 public TwitterTweetShareJob(string comment, string url, ITweeter tweeter)
 {
     if (comment.Length > MaxTweetLengthWithUrl)
     {
         throw new ArgumentException("Tweet description is too long. The max length is " + MaxTweetLengthWithUrl);
     }
     this.Comment = comment;
     this.Url     = url;
     this.Tweeter = tweeter;
 }
        public TwitterNewsSharerWindow(NewsArticle newsArticle, KeyValueStorage kvs, ITweeter tweeter)
        {
            InitializeComponent();

            this.Tweeter = tweeter;

            CommentTextBox.MaxLength = TwitterTweetShareJob.MaxTweetLengthWithUrl;
            CommentTextBox.Text      = newsArticle.Title;
            UrlTextBox.Text          = newsArticle.Url;

            this.SizeToContent = SizeToContent.Width;
        }
Пример #6
0
        public void Execute(object parameter)
        {
            ITweetable tweet = parameter as ITweetable;

            if (tweet == null)
            {
                return;
            }

            ITweeter author = tweet.Author;

            FilterManager.SetupMute(FilterType.User, author.ScreenName);
            Dependency.Resolve <IMessageService>().ShowLightNotification(Resources.Filtered);
        }
Пример #7
0
 public LatestCredentialsTweeter(ITweeter innerTweeter, KeyValueStorage storage)
 {
     this.InnerTweeter = innerTweeter;
     this.Storage      = storage;
 }
Пример #8
0
 public IndulgeMeService(IFileStorage fileStorage, IIndulgenceGenerator indulgenceGenerator, ITweeter tweeter)
 {
     _fileStorage = fileStorage;
     _indulgenceGenerator = indulgenceGenerator;
     _tweeter = tweeter;
 }
 public MisakuraTweeter(ITweeter tweeter)
 {
     if (tweeter == null) { throw new ArgumentNullException("tweeter_"); }
     tweeter_ = tweeter;
 }
Пример #10
0
 public IndulgeMeService(IFileStorage fileStorage, IIndulgenceGenerator indulgenceGenerator, ITweeter tweeter)
 {
     _fileStorage         = fileStorage;
     _indulgenceGenerator = indulgenceGenerator;
     _tweeter             = tweeter;
 }