routeros 7.18 changelog "has put !empty sentence when API query returns nothing"; so i try to add that type, maybe works
This commit is contained in:
parent
eea99d218d
commit
986016083b
@ -46,7 +46,11 @@ class Response extends Message
|
|||||||
/**
|
/**
|
||||||
* The last response for a request.
|
* The last response for a request.
|
||||||
*/
|
*/
|
||||||
const TYPE_FINAL = '!done';
|
const TYPE_FINAL = '!done';/**
|
||||||
|
|
||||||
|
* The empty response for a request.
|
||||||
|
*/
|
||||||
|
const TYPE_EMPTY = '!empty';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A response with data.
|
* A response with data.
|
||||||
@ -246,6 +250,7 @@ class Response extends Message
|
|||||||
{
|
{
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case self::TYPE_FINAL:
|
case self::TYPE_FINAL:
|
||||||
|
case self::TYPE_EMPTY:
|
||||||
case self::TYPE_DATA:
|
case self::TYPE_DATA:
|
||||||
case self::TYPE_ERROR:
|
case self::TYPE_ERROR:
|
||||||
case self::TYPE_FATAL:
|
case self::TYPE_FATAL:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user