public RegisteredDevice(RegisterDevice msg) { _name = msg.GetDeviceName(); _port = msg.GetDevicePort(); }