Added source member variable in Android side & modified example in linux. 15/8515/3
authorjaesick.shin <jaesick.shin@samsung.com>
Tue, 7 Jun 2016 04:23:31 +0000 (13:23 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 7 Jun 2016 06:13:38 +0000 (06:13 +0000)
Change-Id: I982def120d99df2bf23dc9466d4f8c471d01cbf1
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8515
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
service/notification/android/notification-service/src/main/java/org/iotivity/service/notification/NSSync.java
service/notification/examples/linux/notificationprovider.c

index 29688f0..d958840 100644 (file)
@@ -1,26 +1,35 @@
-package org.iotivity.service.notification;\r
-\r
-import android.util.Log;\r
-\r
-public class NSSync {\r
-       \r
-       String mMessageId = null;\r
-       String mDeviceId = null;\r
-       \r
-       public NSSync(String id) {\r
-           this.mMessageId = id;\r
-       }\r
-\r
-       public String getMessageId() {\r
-           return mMessageId;\r
-       }\r
-\r
-       public String getDeviceId() {\r
-           return mDeviceId;\r
-       }\r
-\r
-       public void setDeviceId(String id) {\r
-           this.mDeviceId = id;\r
-       }\r
-\r
-}\r
+package org.iotivity.service.notification;
+
+import android.util.Log;
+
+public class NSSync {
+
+       String mMessageId = null;
+       String mDeviceId = null;
+       String mSourceId = null;
+
+       public NSSync(String id) {
+           this.mMessageId = id;
+       }
+
+       public String getMessageId() {
+           return mMessageId;
+       }
+
+       public String getDeviceId() {
+           return mDeviceId;
+       }
+
+       public void setDeviceId(String id) {
+           this.mDeviceId = id;
+       }
+
+       public String getSourceId() {
+           return mSourceId;
+       }
+
+       public void setSourceId(String id) {
+           this.mSourceId = id;
+       }
+
+}
index 079b7da..7a9bbd2 100644 (file)
@@ -141,7 +141,7 @@ int main()
                 msg->mId = strdup(charID);\r
                 msg->mTitle = strdup(title);\r
                 msg->mContentText = OICStrdup(body);\r
-                msg->mSource = NULL;\r
+                msg->mSource = OICStrdup("OCF");\r
 \r
                 NSSendMessage(msg);\r
 \r