Exemplo n.º 1
0
        public AccountAppDotNet()
        {
            isFirstFetch = true;

            PersonalStream  = new ThreadSaveObservableCollection <ApnItem>();
            Mentions        = new ThreadSaveObservableCollection <ApnItem>();
            PrivateMessages = new ThreadSaveObservableCollection <ApnItem>();
            OtherMessages   = new ThreadSaveObservableCollection <ApnItem>();
            Reposts         = new ThreadSaveObservableCollection <ApnItem>();
            KnownChannels   = new List <Channel>();
            KnownChannelIds = new List <string>();

            backgroundWorkerPersonalStream = new BackgroundWorker();
            backgroundWorkerPersonalStream.WorkerReportsProgress      = true;
            backgroundWorkerPersonalStream.WorkerSupportsCancellation = true;
            backgroundWorkerPersonalStream.DoWork             += backgroundWorkerPersonalStream_DoWork;
            backgroundWorkerPersonalStream.RunWorkerCompleted += backgroundWorkerPersonalStream_RunWorkerCompleted;
            backgroundWorkerPersonalStream.ProgressChanged    += backgroundWorkerPersonalStream_ProgressChanged;

            backgroundWorkerMentions = new BackgroundWorker();
            backgroundWorkerMentions.WorkerReportsProgress      = true;
            backgroundWorkerMentions.WorkerSupportsCancellation = true;
            backgroundWorkerMentions.DoWork             += backgroundWorkerMentions_DoWork;
            backgroundWorkerMentions.RunWorkerCompleted += backgroundWorkerMentions_RunWorkerCompleted;
            backgroundWorkerMentions.ProgressChanged    += backgroundWorkerMentions_ProgressChanged;

            backgroundWorkerMessages = new BackgroundWorker();
            backgroundWorkerMessages.WorkerReportsProgress      = true;
            backgroundWorkerMessages.WorkerSupportsCancellation = true;
            backgroundWorkerMessages.DoWork             += backgroundWorkerMessages_DoWork;
            backgroundWorkerMessages.RunWorkerCompleted += backgroundWorkerMessages_RunWorkerCompleted;
            backgroundWorkerMessages.ProgressChanged    += backgroundWorkerMessages_ProgressChanged;
        }
Exemplo n.º 2
0
        public QuoteFmItem()
        {
            Source = new QuoteFmSource();

            Comments = new ThreadSaveObservableCollection <QuoteFmComment>();

            backgroundWorkerTimeAgo = new BackgroundWorker();
            backgroundWorkerTimeAgo.WorkerReportsProgress      = false;
            backgroundWorkerTimeAgo.WorkerSupportsCancellation = true;
            backgroundWorkerTimeAgo.DoWork             += new DoWorkEventHandler(backgroundWorkerTimeAgo_DoWork);
            backgroundWorkerTimeAgo.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerTimeAgo_RunWorkerCompleted);
        }
Exemplo n.º 3
0
        public TweetList(AccountTwitter ParentAccount)
        {
            Items   = new ThreadSaveObservableCollection <TwitterItem>();
            Members = new ObservableCollection <Person>();
            Account = ParentAccount;
            backgroundWorkerList = new BackgroundWorker();
            backgroundWorkerList.WorkerReportsProgress      = true;
            backgroundWorkerList.WorkerSupportsCancellation = true;
            backgroundWorkerList.DoWork             += new DoWorkEventHandler(backgroundWorkerList_DoWork);
            backgroundWorkerList.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerList_RunWorkerCompleted);
            backgroundWorkerList.ProgressChanged    += new ProgressChangedEventHandler(backgroundWorkerList_ProgressChanged);

            IsOwnList = true;
        }
Exemplo n.º 4
0
        public AccountQuoteFM()
        {
            Recommendations = new ThreadSaveObservableCollection <QuoteFmItem>();
            Likes           = new ThreadSaveObservableCollection <QuoteFmItem>();
            Mentions        = new ThreadSaveObservableCollection <QuoteFmItem>();
            UsersAndPages   = new ThreadSaveObservableCollection <QuoteFmItem>();

            backgroundWorkerRecommendations = new BackgroundWorker();
            backgroundWorkerRecommendations.WorkerReportsProgress      = true;
            backgroundWorkerRecommendations.WorkerSupportsCancellation = true;
            backgroundWorkerRecommendations.DoWork             += new DoWorkEventHandler(backgroundWorkerRecommendations_DoWork);
            backgroundWorkerRecommendations.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerRecommendations_RunWorkerCompleted);
            backgroundWorkerRecommendations.ProgressChanged    += new ProgressChangedEventHandler(backgroundWorkerRecommendations_ProgressChanged);
        }
Exemplo n.º 5
0
        public Search(AccountTwitter ParentAccount)
        {
            Items       = new ThreadSaveObservableCollection <TwitterItem>();
            name        = "";
            query       = "";
            CreatedAt   = DateTime.Now;
            Account     = ParentAccount;
            savedSearch = new TwitterSavedSearch();

            backgroundWorkerSearch = new BackgroundWorker();
            backgroundWorkerSearch.WorkerReportsProgress      = true;
            backgroundWorkerSearch.WorkerSupportsCancellation = true;
            backgroundWorkerSearch.DoWork             += new DoWorkEventHandler(backgroundWorkerSearch_DoWork);
            backgroundWorkerSearch.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerSearch_RunWorkerCompleted);
            backgroundWorkerSearch.ProgressChanged    += new ProgressChangedEventHandler(backgroundWorkerSearch_ProgressChanged);
        }
Exemplo n.º 6
0
        public AccountFacebook()
        {
            StatusMessages = new ThreadSaveObservableCollection <FacebookItem>();
            Links          = new ThreadSaveObservableCollection <FacebookItem>();
            Videos         = new ThreadSaveObservableCollection <FacebookItem>();
            Photos         = new ThreadSaveObservableCollection <FacebookItem>();
            Events         = new ThreadSaveObservableCollection <FacebookItem>();
            CheckIns       = new ThreadSaveObservableCollection <FacebookItem>();
            Notes          = new ThreadSaveObservableCollection <FacebookItem>();
            User           = new FacebookUser();

            LoginSuccessfull             = false;
            IsInitialFetch               = true;
            AvailableNotificationClasses = new List <string>();

            backgroundWorkerNewsFeed = new BackgroundWorker();
            backgroundWorkerNewsFeed.WorkerReportsProgress      = true;
            backgroundWorkerNewsFeed.WorkerSupportsCancellation = true;
            backgroundWorkerNewsFeed.DoWork             += new DoWorkEventHandler(backgroundWorkerNewsFeed_DoWork);
            backgroundWorkerNewsFeed.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorkerNewsFeed_RunWorkerCompleted);
            backgroundWorkerNewsFeed.ProgressChanged    += new ProgressChangedEventHandler(backgroundWorkerNewsFeed_ProgressChanged);

            accountColor = Colors.DarkBlue;
        }
Exemplo n.º 7
0
 public QuoteFmUser()
 {
     Followers       = new ThreadSaveObservableCollection <QuoteFmUser>();
     Followings      = new ThreadSaveObservableCollection <QuoteFmUser>();
     Recommendations = new ThreadSaveObservableCollection <QuoteFmItem>();
 }