The Realtime database result class.
class RealtimeDatabaseResult
Convert the RealtimeDatabaseResult to any type of values.
T to()
Returns:
T
- The T type value e.g. boolean, integer, float, double and string.
Check if the async task is SSE mode (HTTP Streaming) task.
bool isStream() const
Returns:
bool
- Returns true if the task is SSE mode (HTTP Streaming) task.
Get the name (random UID) of the node that will be creaated from RealtimeDatabase::Push
.
String name() const
Returns:
String
- The push UID string.
Get the ETag from Realtime database get function.
String ETag() const
Params:
String
- The ETag string.
Get the SSE mode (HTTP Streaming) event data path which is the relative path of the data that has been changed in the database.
String dataPath() const
Returns:
String
- The relative path of data that has been changed.
Get the SSE mode (HTTP Streaming)
event type string.
String event()
Returns:
String
- The event type string e.g.put
,patch
,keep-alive
,cancel
andauth_revoked
.
Get the SSE mode (HTTP Streaming) event data that has been changed.
String data()
Returns:
String
- The data that has been changed.
Get the SSE mode (HTTP Streaming) event timed out status.
bool eventTimeout()
Returns:
bool
- The SSE mode (HTTP Streaming) event timed out status.
Get the type of Realtime database data.
The realtime_database_data_type enums are included the following.
realtime_database_data_type_undefined
or -1
realtime_database_data_type_null
or 5.
realtime_database_data_type_integer
or 1.
realtime_database_data_type_float
or 2.
realtime_database_data_type_double
or 3.
realtime_database_data_type_boolean
or 4.
realtime_database_data_type_string
or 5.
realtime_database_data_type_json
or 6.
realtime_database_data_type_array
or 7.
realtime_database_data_type type()
Returns:
realtime_database_data_type
- The realtime_database_data_type enum represents the type of Realtime database data.