Skip to content
Snippets Groups Projects
Commit dd8c70f1 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

f_getResourceName and f_getResourceId updated with...

f_getResourceName and f_getResourceId updated with m2mServiceSubscriptionProfile, node, statsConfig and statsCollect

Signed-off-by: Miguel Angel Reina Ortega's avatarMiguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
parent 5c846ff2
No related branches found
No related tags found
No related merge requests found
......@@ -2343,6 +2343,18 @@ module OneM2M_Functions {
if(ischosen(p_contentResource.cSEBase)) {
return f_resourceIdCleaner(p_contentResource.cSEBase.resourceID);
}
if(ischosen(p_contentResource.m2mServiceSubscriptionProfile)) {
return p_contentResource.m2mServiceSubscriptionProfile.resourceName;
}
if(ischosen(p_contentResource.node)) {
return p_contentResource.node.resourceName;
}
if(ischosen(p_contentResource.statsConfig)) {
return p_contentResource.statsConfig.resourceName;
}
if(ischosen(p_contentResource.statsCollect)) {
return p_contentResource.statsCollect.resourceName;
}
log(__SCOPE__&":WARNING: Primitive Content Kind not implemented");
......@@ -2391,6 +2403,19 @@ module OneM2M_Functions {
if(ischosen(p_contentResource.cSEBase)) {
return p_contentResource.cSEBase.resourceName;
}
if(ischosen(p_contentResource.m2mServiceSubscriptionProfile)) {
return p_contentResource.m2mServiceSubscriptionProfile.resourceName;
}
if(ischosen(p_contentResource.node)) {
return p_contentResource.node.resourceName;
}
if(ischosen(p_contentResource.statsConfig)) {
return p_contentResource.statsConfig.resourceName;
}
if(ischosen(p_contentResource.statsCollect)) {
return p_contentResource.statsCollect.resourceName;
}
log(__SCOPE__&":WARNING: Primitive Content Kind not implemented");
return "resourceNameNotFound";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment