in src/mqtt_message.c [297:312]
bool mqttmessage_getIsRetained(MQTT_MESSAGE_HANDLE handle)
{
bool result;
if (handle == NULL)
{
/* Codes_SRS_MQTTMESSAGE_07_018: [If handle is NULL then mqttmessage_getIsRetained shall return false.] */
LogError("Invalid Parameter handle: %p.", handle);
result = false;
}
else
{
/* Codes_SRS_MQTTMESSAGE_07_019: [mqttmessage_getIsRetained shall return the isRetained value contained in MQTT_MESSAGE_HANDLE handle.] */
result = handle->isMessageRetained;
}
return result;
}