Add setting the icon image in NSSetMessagePayload.
Add NS_ATTRIBUTE_ICON_IMAGE in NSConstants.h
Change-Id: Ia1327da32c80737283ea54f8b2e9f2d4f376efb5
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11559
Reviewed-by: Chihyun Cho <ch79.cho@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
#define NS_ATTRIBUTE_TYPE "TYPE"
#define NS_ATTRIBUTE_DATETIME "DATE_TIME"
#define NS_ATTRIBUTE_TTL "TTL"
+#define NS_ATTRIBUTE_ICON_IMAGE "ICON_IMAGE"
typedef enum eConnectionState
{
NSDuplicateSetPropertyString(msgPayload, NS_ATTRIBUTE_TEXT, msg->contentText);
NSDuplicateSetPropertyString(msgPayload, NS_ATTRIBUTE_SOURCE, msg->sourceName);
NSDuplicateSetPropertyString(msgPayload, NS_ATTRIBUTE_TOPIC_NAME, msg->topic);
+ if(msg->mediaContents)
+ {
+ NSDuplicateSetPropertyString(msgPayload,
+ NS_ATTRIBUTE_ICON_IMAGE, msg->mediaContents->iconImage);
+ }
NS_LOG(DEBUG, "NSSetMessagePayload - OUT");
return NS_OK;