ESPHome 2025.10.2
Loading...
Searching...
No Matches
esphome::api::ActionResponse Class Reference

#include <homeassistant_service.h>

Public Member Functions

 ActionResponse (bool success, std::string error_message="")
 
 ActionResponse (bool success, std::string error_message, const uint8_t *data, size_t data_len)
 
bool is_success () const
 
const std::string & get_error_message () const
 
JsonObjectConst get_json () const
 

Protected Attributes

bool success_
 
std::string error_message_
 
JsonDocument json_document_
 

Detailed Description

Definition at line 54 of file homeassistant_service.h.

Constructor & Destructor Documentation

◆ ActionResponse() [1/2]

esphome::api::ActionResponse::ActionResponse ( bool success,
std::string error_message = "" )
inline

Definition at line 56 of file homeassistant_service.h.

◆ ActionResponse() [2/2]

esphome::api::ActionResponse::ActionResponse ( bool success,
std::string error_message,
const uint8_t * data,
size_t data_len )
inline

Definition at line 60 of file homeassistant_service.h.

Member Function Documentation

◆ get_error_message()

const std::string & esphome::api::ActionResponse::get_error_message ( ) const
inline

Definition at line 69 of file homeassistant_service.h.

◆ get_json()

JsonObjectConst esphome::api::ActionResponse::get_json ( ) const
inline

Definition at line 73 of file homeassistant_service.h.

◆ is_success()

bool esphome::api::ActionResponse::is_success ( ) const
inline

Definition at line 68 of file homeassistant_service.h.

Field Documentation

◆ error_message_

std::string esphome::api::ActionResponse::error_message_
protected

Definition at line 78 of file homeassistant_service.h.

◆ json_document_

JsonDocument esphome::api::ActionResponse::json_document_
protected

Definition at line 80 of file homeassistant_service.h.

◆ success_

bool esphome::api::ActionResponse::success_
protected

Definition at line 77 of file homeassistant_service.h.


The documentation for this class was generated from the following file: