eatkinola Posted October 14, 2018 Share Posted October 14, 2018 Hi @Jason Carr. I get the following error when trying to use the new API call to GetAllParents(). Would you please check it out when you have time? Unable to cast object of type 'System.Collections.Generic.KeyValuePair`2[System.String,Unbroken.LaunchBox.Data.Parent]' to type 'Unbroken.LaunchBox.Plugins.Data.IParent'. I'm trying to adapt my plugins to the new nesting scheme. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 15, 2018 Share Posted October 15, 2018 Will do @eatkinola. Sorry for the trouble. 1 Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 16, 2018 Share Posted October 16, 2018 I have this fixed for the next beta @eatkinola. 1 Quote Link to comment Share on other sites More sharing options...
eatkinola Posted October 17, 2018 Author Share Posted October 17, 2018 7 hours ago, Jason Carr said: I have this fixed for the next beta @eatkinola. Thanks, Jason -- no more error! I have a follow up question ... do all platforms (and potentially playlists if treated like platforms) still have a platform category? I know platform.Category will now just return an empty string, but would navigating up the nested structure always lead to a category? 1 Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2018 Share Posted October 17, 2018 14 hours ago, eatkinola said: Thanks, Jason -- no more error! I have a follow up question ... do all platforms (and potentially playlists if treated like platforms) still have a platform category? I know platform.Category will now just return an empty string, but would navigating up the nested structure always lead to a category? No, not necessarily. Platforms are not guaranteed to have a parent if the user chooses to place them in the root. It's also important to note that categories, platforms, and playlists can all also be placed in multiple locations (multiple parents). Quote Link to comment Share on other sites More sharing options...
eatkinola Posted October 17, 2018 Author Share Posted October 17, 2018 2 hours ago, Jason Carr said: No, not necessarily. Platforms are not guaranteed to have a parent if the user chooses to place them in the root. It's also important to note that categories, platforms, and playlists can all also be placed in multiple locations (multiple parents). Thanks -- I really appreciate you steering me in the right direction. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.