Пример #1
0
 public Song(string id, SongMetadata metadata, string fileId, SongCollection collection)
 {
     Id              = id;
     Metadata        = metadata;
     FileId          = fileId;
     this.collection = collection;
 }
Пример #2
0
            private async Task GetMetadata()
            {
                var info = await client.GetVideoAsync(videoId);

                Metadata = new SongMetadata(info.Title, info.Author, info.GetUrl(), info.Duration);
            }