mirror of
https://github.com/jellyfin/jellyfin-sdk-csharp.git
synced 2024-11-23 05:39:51 +00:00
update sample for 10.9
This commit is contained in:
parent
4b5e2d6cb0
commit
d91eaac697
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user