Add collection payload to include each resource information separately
authorHabib Virji <habib.virji@samsung.com>
Tue, 23 Feb 2016 00:45:29 +0000 (00:45 +0000)
committerHabib Virji <habib.virji@samsung.com>
Thu, 3 Mar 2016 09:14:29 +0000 (09:14 +0000)
commit07cb4d41513ef89c2c22458a5de3b971f45fdb88
tree554b8ffd1e14e2b6254268b72a5a121422a50d9d
parent4b569f4cbef178e0d551abf33206d63f70f81cdd
Add collection payload to include each resource information separately

- 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>
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/unittests/OCRepresentationEncodingTest.cpp