The async result class.
class AsyncResult
Get the pointer to the internal response payload string buffer.
const char *c_str()
Returns:
const char *
- The pointer to internal response payload string.
Get the copy of server response payload string.
String payload() const
Get the length of response payload string.
size_t length() const
Returns:
String
- The copy of payload string.
Get the path of the resource of the request.
String path() const
Returns:
String
- The path of the resource of the request.
Get the Etag of the server response headers.
String etag() const
Params:
String
- The ETag of response header.
Get the unique identifier of async task.
String uid() const
Returns:
String
- The UID of async task.
Get the debug information.
String debug()
Returns:
String
- The debug information.
Clear the async result.
void clear()
Get the reference to the internal RealtimeDatabaseResult object.
RealtimeDatabaseResult &to()
Returns:
RealtimeDatabaseResult &
- The reference to the internal RealtimeDatabaseResult object.
Get the number of bytes of available response payload.
int available()
Returns:
int
- The number of bytes available.
Get the reference of internal app event information.
app_event_t &appEvent()
Returns:
app_event_t &
- The reference of internal app event.
Check if file/BLOB upload information is available.
bool uploadProgress()
Returns:
bool
- Returns true if upload information is available.
Get the file/BLOB upload information.
upload_data_t uploadInfo() const
Returns:
upload_data_t
- The file/BLOB upload information.
Check if the file/BLOB download information is availablle.
bool downloadProgress()
Returns:
bool
- Returns true if download information is available.
Get the file/BLOB download information.
download_data_t downloadInfo() const
Returns:
download_data_t
- The file/BLOB download information.
Check if the result is from OTA download task.
bool isOTA() const
Returns:
bool
- Returns true if the result is from OTA download task.
Check if the error occurred in async task.
bool isError()
Returns:
bool
- Returns true if error occurred.
Check if the debug information in available.
bool isDebug()
Returns:
bool
- Returns true if debug information in available.
Check if the app event information in available.
bool isEvent()
Returns:
bool
- Returns true if app event information in available.
Get the reference of internal FirebaseError object.
FirebaseError &error()
Returns:
FirebaseError &
- The internal FirebaseError object.