update sample for 10.9

This commit is contained in:
Cody Robibero 2024-05-11 18:27:19 -06:00
parent 4b5e2d6cb0
commit d91eaac697

View File

@ -101,15 +101,15 @@ public class SimpleService : IDisposable
}
while (!validUser);
await PrintViews(userDto.Id.Value)
await PrintViews()
.ConfigureAwait(false);
}
private async Task PrintViews(Guid userId)
private async Task PrintViews()
{
try
{
var views = await _jellyfinApiClient.Users[userId].Views.GetAsync()
var views = await _jellyfinApiClient.UserViews.GetAsync()
.ConfigureAwait(false);
Console.WriteLine("Printing Views:");
foreach (var view in views.Items)