ResponsePacket
class ResponsePacket extends Packet
Rpc Response Packet
Constants
SINGLE_MODE |
Single Mode |
BATCH_MODE |
Batch Mode |
Properties
protected string | $jtlrpc | A String specifying the version of the JSON-RPC protocol. | from Packet |
protected string | $id | An identifier established by the Client that MUST contain a String, Number, or NULL value if included. | from Packet |
protected integer | $result | This member is REQUIRED on success. | |
protected Error | $error | This member is REQUIRED on error This member MUST NOT exist if there was no error triggered during invocation. |
Methods
setOptions(stdClass $object = null, array $options = null)
Sets Properties with matching Array Values
from Model
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))
Convert the Model into stdClass Object
from Model
integer
getResult()
Getter for $result
validate()
Validates a Rpc Response Packet
Details
in Model at line 33
multitype:
getProperties()
Get the Model Properties
in Model at line 45
Model
setOptions(stdClass $object = null, array $options = null)
Sets Properties with matching Array Values
in Model at line 82
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))
Convert the Model into stdClass Object
in Model at line 115
toJson()
in Packet at line 63
string
getJtlrpc()
Getter for $jtlrpc
in Packet at line 85
string
getId()
Getter for $id
at line 45
integer
getResult()
Getter for $result
at line 56
Packet
setResult(integer $result)
Setter for $result
at line 67
Error
getError()
Getter for $error
at line 89
final
validate()
Validates a Rpc Response Packet