Exemplo n.º 1
0
        public async Task GetPublicTicks()
        {
            // Public feed ticks
            List <TTFeedTick> publicTicks;

            if (string.IsNullOrEmpty(PublicTicksFilter))
            {
                publicTicks = await _client.GetPublicAllTicksAsync();
            }
            else
            {
                publicTicks = await _client.GetPublicTickAsync(PublicTicksFilter);
            }

            PublicTicks = publicTicks != null ? new ObservableCollection <FeedTickView>(publicTicks.Select(t => new FeedTickView(t))) : null;
        }