Greetings,
Is it on purpose that the object "daily" under Seat Usage has bunch of properties rather than array of objects?
For example one of our clients has this kinda result:
{
"product": "psbWorkstationSecurity",
"summary": {
"currentSeatUsage": 17,
"monthlyMaxSeatUsages": {
"1527811200000": 17,
"1530403200000": 17
}
},
"daily": {
"1529107200000": 17,
"1529539200000": 17,
"1527811200000": 17,
"1528243200000": 17
... bunch more
}
}
This might be easy to parse with javascript to parse through all the keys under object, but what comes to c# automatically parsing result into objects this would be insane.
I would have to create a class with all the possible dates as propertynames.
Would it be possible to make this an array of objects that have timestamp and seatUsage for example?
I am skipping this completely now because I don't see any point of creating some sub-parsing method that parses this into some other objects then.
BR,
Olli Elolähde
Receptum Oy