Exemplo n.º 1
0
        private async ValueTask GetAndUpdateStatusesAsync(Timeline timeline)
        {
            var mentions = await GetMentionsAsync().ConfigureAwait(true);

            var statuses = await titterService.TwitterApi.HomeTimeline().ConfigureAwait(true);

            await UpdateStatusesTask.Execute(statuses.Concat(mentions), timeline).ConfigureAwait(true);
        }
Exemplo n.º 2
0
        public HomeTimelineViewModel(ISettings settings, ITwitterService twitterService)
        {
            titterService = twitterService;
            var name = App.GetString("tab-home-name");

            HomeTimeline = new Timeline(name: name, intervalInMinutes: 1.1, updateTasks: Tasks(), settings: settings);

            // ReSharper disable once AsyncVoidLambda
            PubSubs.AddStatus.Subscribe(status =>
            {
                var unused = UpdateStatusesTask.Execute(new[] { status }, HomeTimeline);
            });
        }
Exemplo n.º 3
0
        private async ValueTask GetAndUpdateStatusesAsync(Timeline timeline)
        {
            var statuses = await twitterService.TwitterApi.FavoritesTimeline().ConfigureAwait(true);

            await UpdateStatusesTask.Execute(statuses, timeline).ConfigureAwait(true);
        }