in src/mqtt_message.c [280:295]
bool mqttmessage_getIsDuplicateMsg(MQTT_MESSAGE_HANDLE handle)
{
bool result;
if (handle == NULL)
{
/* Codes_SRS_MQTTMESSAGE_07_016: [If handle is NULL then mqttmessage_getIsDuplicateMsg shall return false.] */
LogError("Invalid Parameter handle: %p.", handle);
result = false;
}
else
{
/* Codes_SRS_MQTTMESSAGE_07_017: [mqttmessage_getIsDuplicateMsg shall return the isDuplicateMsg value contained in MQTT_MESSAGE_HANDLE handle.] */
result = handle->isDuplicateMsg;
}
return result;
}