Quantcast
Channel: convert an object list with lists to a single list
Viewing all articles
Browse latest Browse all 3

convert an object list with lists to a single list

$
0
0

Hi I have an object list. the objects are like:

Userobject{
    username
    userage...
    userrolesList // is a List<userrole>}

userrole{
    rolid
    rolname
    rolcommission}

the userrolesList can have one or more userroleobjects, and I need to send this list to other system, but the other system only accepts a list of objects like:

Userobject{
    username
    userage...
    userroleobject // is a userrole object}

userrole{
    rolid
    rolname
    rolcommission}

in this case if one user have 10 roles I need to send 10 different objects to the other system any suggestion how I can make this easily and not affect the performance, please let me know


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>