\App\IqrfNetModule\RequestsApiRequest

JSON API request

Summary

Methods
Properties
Constants
__construct()
setRequest()
toArray()
toJson()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\IqrfNetModule\Requests\MessageIdManager  msgIdManager) : 

Constructor

Parameters

\App\IqrfNetModule\Requests\MessageIdManager msgIdManager

Message ID manager

Returns

setRequest()

setRequest(  request) : 

Sets the IQRF JSON API request

Parameters

request

IQRF JSON API request

Returns

toArray()

toArray() : mixed||string|int

Converts the IQRF JSON API request to a array

Throws

\App\IqrfNetModule\Requests\JsonException

Returns

mixed||string|int —

IQRF JSON API request

toJson()

toJson(  pretty = false) : 

Converts the IQRF JSON DPA request to JSON string

Parameters

pretty

Pretty formatted JSON

Throws

\App\IqrfNetModule\Requests\JsonException

Returns

JSON string