Add collection payload to include each resource information separately 70/61070/2 accepted/tizen/common/20160316.160042 accepted/tizen/ivi/20160314.104637 accepted/tizen/mobile/20160314.104545 accepted/tizen/tv/20160314.104604 accepted/tizen/wearable/20160314.104619 submit/tizen/20160314.020248
authorHabib Virji <habib.virji@samsung.com>
Tue, 23 Feb 2016 00:45:29 +0000 (00:45 +0000)
committeryoungman <yman.jung@samsung.com>
Sun, 6 Mar 2016 23:46:36 +0000 (08:46 +0900)
commit263dfe154b215f527bea979aaa5fca941483b67a
tree4f30c0aae613a4272c22160ff4407226344a2e15
parentd38beaea16946810ff07a4bdd3b3bca67127d460
Add collection payload to include each resource information separately

Change-Id: I0692018c13d295d6a28d289819835c525dc08cf5

- Each resource information is stored separately.
[{"href":"", "rt": "", "if":"", <property>}, .. ]
- Compared to previous approach where all resource where stored together.
- It fixes issue related to checking map before finding value, duplicated information in the payload of rt and if.
- Adds unit test when empty array is passed as a parameter.
- Adds unit test for checking values not containing rt and itf.

Jira-Issue: 923, 950, 962
Change-Id: I0692018c13d295d6a28d289819835c525dc08cf5
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5121
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Mushfiqul Islam <i.mushfiq@samsung.com>
Signed-off-by: youngman <yman.jung@samsung.com>
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/unittests/OCRepresentationEncodingTest.cpp