The reason for this question is because I am building a Windows App. This App will have to compose a webservice request with data which comes from the following locations:
The part I am unsure about is if and how I can specify which property will be serialized in which scenario. I would like to be able to make use of attribues saying a Property will be serialized to DeviceSettings or RoamingSettings or to the webservide or to all for that matter.
Can this be done with the current state of the code?
- other domain objects (in memory)
- local storage (stored as JSON)
- device settings (stored as JSON)
-
roaming settings (stored as JSON)
- partial fill it with data from all above mentioned locations (deserialize JSON to domain object, copy from in memory objects)
- allow the user to modify the settings in the GUI
- add process output
- send a subset of the domain model to the webservice
- save another subset of the domain model back to the roaming settings
- save yet another subset of the domain model back to the device settings
-
save yet another subset of the domain model to local storage
The part I am unsure about is if and how I can specify which property will be serialized in which scenario. I would like to be able to make use of attribues saying a Property will be serialized to DeviceSettings or RoamingSettings or to the webservide or to all for that matter.
Can this be done with the current state of the code?