|
@@ -55,7 +55,7 @@ class DeviceListener
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param LifecycleEventArgs $arg
|
|
|
+ * @param LifecycleEventArgs $args
|
|
|
* @param string $url
|
|
|
* @param string $method
|
|
|
*/
|
|
@@ -63,11 +63,7 @@ class DeviceListener
|
|
|
{
|
|
|
$entity = $args->getEntity();
|
|
|
if ($entity instanceof DeviceInterface) {
|
|
|
- $data = array(
|
|
|
- 'deviceType' => get_class($entity),
|
|
|
- 'deviceId' => $entity->getId(),
|
|
|
- 'ip' => $entity->getIp(),
|
|
|
- );
|
|
|
+ $data = $entity->getDeviceData();
|
|
|
|
|
|
return $this->webservice->makeGetRequest($url, $method, $data);
|
|
|
}
|