Beispiel #1
0
 public FilterList(string ownerAndslug)
 {
     var splited = ownerAndslug.Split('/');
     if (splited.Length < 2 || splited.Length > 3)
     {
         throw new ArgumentException("owner and slug must be separated as slash, once.");
     }
     if (splited.Length == 2)
     {
         _listInfo = new ListInfo(splited[0], splited[1]);
         this._receiverScreenName = splited[0];
     }
     else
     {
         _listInfo = new ListInfo(splited[1], splited[2]);
         this._receiverScreenName = splited[0];
     }
     _watcher = new ListWatcher(_listInfo);
     _watcher.OnListMemberUpdated += this.RaiseInvalidateRequired;
 }
Beispiel #2
0
        public FilterList(string ownerAndslug)
        {
            var splited = ownerAndslug.Split('/');

            if (splited.Length < 2 || splited.Length > 3)
            {
                throw new ArgumentException("owner and slug must be separated as slash, once.");
            }
            if (splited.Length == 2)
            {
                _listInfo = new ListInfo(splited[0], splited[1]);
                this._receiverScreenName = splited[0];
            }
            else
            {
                _listInfo = new ListInfo(splited[1], splited[2]);
                this._receiverScreenName = splited[0];
            }
            _watcher = new ListWatcher(_listInfo);
            _watcher.OnListMemberUpdated += this.RaiseInvalidateRequired;
        }
Beispiel #3
0
        public FilterList(string ownerAndslug)
        {
            var splited = ownerAndslug.Split('/');

            if (splited.Length < 2 || splited.Length > 3)
            {
                throw new ArgumentException("owner and slug must be separated as slash, once.");
            }
            if (splited.Length == 2)
            {
                _listInfo           = new ListInfo(splited[0], splited[1]);
                _receiverScreenName = splited[0];
            }
            else
            {
                _listInfo           = new ListInfo(splited[1], splited[2]);
                _receiverScreenName = splited[0];
            }
            _watcher = new ListWatcher(_listInfo);
            System.Diagnostics.Debug.WriteLine("#INVALIDATION: List Information Loaded");
            _watcher.OnListMemberUpdated += RaiseInvalidateRequired;
        }
Beispiel #4
0
 public ListMembers(string userScreenName, string listSlug)
 {
     _listInfo = new ListInfo(userScreenName, listSlug);
     _watcher  = new ListWatcher(_listInfo);
     _watcher.OnListMemberUpdated += this.RaiseReapplyFilter;
 }
Beispiel #5
0
 public ListMembers(string userScreenName, string listSlug)
 {
     _listInfo = new ListInfo(userScreenName, listSlug);
     _watcher = new ListWatcher(_listInfo);
     _watcher.OnListMemberUpdated += this.RaiseInvalidateFilter;
 }
Beispiel #6
0
 public void Setup()
 {
     _integerEnumerable = new[] { 1, 2, 3, 4 };
     _listWatcher       = new ListWatcher();
     _watchedEnumerable = new WatchedEnumerable <int>(_integerEnumerable, "base", _listWatcher);
 }
Beispiel #7
0
 public void Setup()
 {
     _listWatcher      = new ListWatcher();
     _integerQueryable = (new[] { 1, 2, 3, 4, 5 }).AsQueryable();
     _watchedQueryable = new WatchedQueryable <int>(_integerQueryable, "base", _listWatcher);
 }
Beispiel #8
0
 public ListMembers(string userScreenName, string listSlug)
 {
     _listInfo = new ListInfo(userScreenName, listSlug);
     _watcher  = new ListWatcher(_listInfo);
     _watcher.OnListMemberUpdated += RaiseInvalidateFilter;
 }