Hi!
I may possibly be doing something wrong, but when trying to fetch the list of playlist tracks Playlist.GetItems(playlistId) I get less properties in the inferred types than the JSON serialized string. I am getting a Paging<PlaylistTrack<IPlayableItem> which only includes the Type prop (as per the interface declaration).
While inspecting the item list in the debugger and logging the serialized string value of the object - everything seems correct, but both when trying to access the values in a loop and while trying to redirect the values through http - the only properties on a track are the ones of PlaylistTrack. Am i missing some kind of type declaration/cast?
I've been looking at the PlayableItemConverter and it seems that the outcome i am getting is impossible (the worst case - should throw an exception of incorrect track type) although i may be missing something myself.
Additional observations
The item count is correct as per the track count in the given playlist
The problem is fixed by casting a single item from the .Items property of the API response and logging/debug observing any of the properties on the object
Hi! I may possibly be doing something wrong, but when trying to fetch the list of playlist tracks
Playlist.GetItems(playlistId)
I get less properties in the inferred types than the JSON serialized string. I am getting aPaging<PlaylistTrack<IPlayableItem>
which only includes theType
prop (as per the interface declaration).While inspecting the item list in the debugger and logging the serialized string value of the object - everything seems correct, but both when trying to access the values in a loop and while trying to redirect the values through http - the only properties on a track are the ones of
PlaylistTrack
. Am i missing some kind of type declaration/cast?I've been looking at the
PlayableItemConverter
and it seems that the outcome i am getting is impossible (the worst case - should throw an exception of incorrect track type) although i may be missing something myself.Additional observations
.Items
property of the API response and logging/debug observing any of the properties on the object