Beispiel #1
0
 public List <GetAllPlayListResponseDto> GetAllPlayListsForMediaWebSocket()
 {
     return(PlayLists.Select(pl => new GetAllPlayListResponseDto
     {
         Id = pl.Id,
         Loop = pl.Loop,
         Name = pl.Name,
         NumberOfFiles = pl.Items.Count,
         Position = pl.Position,
         Shuffle = pl.Shuffle,
         TotalDuration = pl.TotalDuration
     }).ToList());
 }