@@ -167,16 +167,16 @@ |
||
167 | 167 | $this->_deviceId = $device->MyQDeviceId; |
168 | 168 | foreach ($device->Attributes as $attr) { |
169 | 169 | switch ($attr->AttributeDisplayName) { |
170 | - case 'desc': |
|
171 | - $this->_doorName = $attr->Value; |
|
172 | - break; |
|
173 | - case 'doorstate': |
|
174 | - $this->_doorState = $attr->Value; |
|
175 | - // UpdatedTime is a timestamp in ms, so we truncate |
|
176 | - $this->_doorStateTime = (int)$attr->UpdatedTime / 1000; |
|
177 | - break; |
|
178 | - default: |
|
179 | - continue; |
|
170 | + case 'desc': |
|
171 | + $this->_doorName = $attr->Value; |
|
172 | + break; |
|
173 | + case 'doorstate': |
|
174 | + $this->_doorState = $attr->Value; |
|
175 | + // UpdatedTime is a timestamp in ms, so we truncate |
|
176 | + $this->_doorStateTime = (int)$attr->UpdatedTime / 1000; |
|
177 | + break; |
|
178 | + default: |
|
179 | + continue; |
|
180 | 180 | } |
181 | 181 | } |
182 | 182 | } |
@@ -204,6 +204,9 @@ |
||
204 | 204 | } |
205 | 205 | } |
206 | 206 | |
207 | + /** |
|
208 | + * @param string $url |
|
209 | + */ |
|
207 | 210 | public static function makeUrlRequst($url, $options) { |
208 | 211 | $method = isset($options['method']) ? $options['method'] : 'GET'; |
209 | 212 | $query = isset($options['query']) ? |