\r
/*\r
* Class: org_iotivity_base_OcRepresentation\r
-* Method: getJSONRepresentation\r
-* Signature: ()Ljava/lang/String;\r
-*/\r
-JNIEXPORT jstring JNICALL Java_org_iotivity_base_OcRepresentation_getJSONRepresentation\r
-(JNIEnv *env, jobject thiz)\r
-{\r
- LOGD("OcRepresentation_getJSONRepresentation");\r
- OCRepresentation *rep = JniOcRepresentation::getOCRepresentationPtr(env, thiz);\r
- if (!rep) return nullptr;\r
-\r
- std::string jsonStr = rep->getJSONRepresentation();\r
- return env->NewStringUTF(jsonStr.c_str());\r
-}\r
-\r
-/*\r
-* Class: org_iotivity_base_OcRepresentation\r
* Method: addChild\r
* Signature: (Lorg/iotivity/base/OcRepresentation;)V\r
*/\r
{\r
delete rep;\r
}\r
-}
\ No newline at end of file
+}\r