Here, you should have a list of DeviceInfo in your class, look through it, locate the matching Device Info (the one with the same id) and update it's member values