private async Task <IEnumerable <DashboardChartData> > SongPercentageOfArtist() { List <ItemCount> radioComData = await RadiocomDataAggregateDataClient.GetSongPlayedAndOtherPlayed(ChartDataTimeRange, ArtistWorkId); return(radioComData.Select(x => new DashboardChartData() { Label = x.Name, Value = x.Count, DataId = x.ItemId })); }
private async Task <IEnumerable <DashboardChartData> > ArtistPercentageOfArtistSongs() { List <ItemCount> radioComData = await RadiocomDataAggregateDataClient.GetArtistSongsPlayed(ChartDataTimeRange, ArtistId); CurrentDataset = radioComData; return(radioComData.Select(x => new DashboardChartData() { Label = x.Name, Value = x.Count, DataId = x.ItemId })); }
private async Task <int> TotalUniqueSongs() { return(await RadiocomDataAggregateDataClient.GetTotalUniqueSongsAsync(AggregateTimeRange)); }