redfish-core/lib/systems.hpp
inline std::string dbusToRfWatchdogAction(const std::string& dbusAction)
{
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.None")
    {
        return "None";
    }
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.HardReset")
    {
        return "ResetSystem";
    }
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.PowerOff")
    {
        return "PowerDown";
    }
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.PowerCycle")
    {
        return "PowerCycle";
    }

    return "";
}
/**
 * @brief Translates watchdog timeout action DBUS property value to redfish.
 *
 * @param[in] dbusAction    The watchdog timeout action in D-BUS.
 *
 * @return Returns as a string, the timeout action in Redfish terms. If
 * translation cannot be done, returns an empty string.
 */
@brief Translates watchdog timeout action DBUS property value to redfish.
@param[in] dbusAction    The watchdog timeout action in D-BUS.

@return Returns as a string, the timeout action in Redfish terms. If
translation cannot be done, returns an empty string.
@brief Translates watchdog timeout action DBUS property value to redfish . @param [ in ] dbusAction The watchdog timeout action in D - BUS . @return Returns as a string the timeout action in Redfish terms . If translation cannot be done returns an empty string .
inline std::string dbusToRfWatchdogAction(const std::string& dbusAction)
{
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.None")
    {
        return "None";
    }
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.HardReset")
    {
        return "ResetSystem";
    }
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.PowerOff")
    {
        return "PowerDown";
    }
    if (dbusAction == "xyz.openbmc_project.State.Watchdog.Action.PowerCycle")
    {
        return "PowerCycle";
    }
    return "";
}
inline std :: string dbusToRfWatchdogAction ( const std :: string & dbusAction ) { if ( dbusAction == " " ) { return " " ; } if ( dbusAction == " " ) { return " " ; } if ( dbusAction == " " ) { return " " ; } if ( dbusAction == " " ) { return " " ; } return " " ; }
@brief Translates watchdog timeout action DBUS property value to redfish.
@brief Translates watchdog timeout action DBUS property value to redfish .