27 lines
610 B
C#
27 lines
610 B
C#
|
using System;
|
|||
|
using MusicTools.Fire;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MusicTools.CLI
|
|||
|
{
|
|||
|
class Program
|
|||
|
{
|
|||
|
static async Task Main(string[] args)
|
|||
|
{
|
|||
|
var repo = new UserRepo(projectId: "sarsooxyz");
|
|||
|
|
|||
|
var user = await repo.GetUser("andy");
|
|||
|
var playlists = await repo.GetPlaylists("andy");
|
|||
|
|
|||
|
await foreach (var playlist in playlists)
|
|||
|
{
|
|||
|
var dict = playlist.ToDictionary();
|
|||
|
var playlistObj = playlist.ConvertTo<Playlist>();
|
|||
|
}
|
|||
|
|
|||
|
Console.WriteLine(user);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|