Jump to content

UserDataManager.GetAllUserData Key Maps to what?


Recommended Posts

Posted

Whats the key map too? Id assume it was the baseItem internalId but that doesnt seem to be the case.

var items = _libraryManager.GetItemList(new InternalItemsQuery
                                        {
                                            IsVirtualItem = false
                                        });

 

var userData = _userDataManager.GetAllUserData(user.InternalId);
foreach (var userItemData in userData)
{
    var item = items.FirstOrDefault(x => x.InternalId == long.Parse(userItemData.Key));
    if (item == null)
        continue;

 

{
        "Key": "628900",
        "PlaybackPositionTicks": 0,
        "PlayCount": 1,
        "IsFavorite": false,
        "HideFromResume": false,
        "LastPlayedDate": "2025-01-31T05:49:31.0000000Z",
        "Played": true,
        "RatingLastModified": "2025-01-31T05:49:31.0000000Z",
        "PlaystateLastModified": "2025-01-31T05:49:31.0000000Z"
    }

 

Posted

This will map to a value in the UserDataKeys table.

Posted
36 minutes ago, Luke said:

This will map to a value in the UserDataKeys table.

And what service has those because it doesnt seem to be part of the _userDataManager.

Posted

What are you trying to do?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...