The async result class.
class AsyncResultGet 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 server response payload string.
String payload() constReturns:
const String- The payload string.
Get the length of response payload string.
size_t length() constReturns:
size_t- The payload string length.
Get the path of the resource of the request.
String path() constReturns:
String- The path of the resource of the request.
Get the etag of the server response headers.
String etag() constParams:
String- The ETag of response header.
Get the unique identifier of async task.
String uid() constReturns:
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.
Check if the AsyncResult data/information is available.
bool isResult()Returns:
bool- Returns true if data/information is available.
Get the reference of internal app event information.
app_log_t &EventLog()app_log_t &appEvent()Returns:
app_log_t &- The reference of internal app event.
Get the reference of internal app debug information.
app_log_t &debugLog()Returns:
app_log_t &- The reference of internal app data log.
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() constReturns:
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() constReturns:
download_data_t- The file/BLOB download information.
Check if the result is from OTA download task.
bool isOTA() constReturns:
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.