Add API about Notification consumer unsubscription provider.
authorKIM JungYong <jyong2.kim@samsung.com>
Mon, 9 Jan 2017 10:20:29 +0000 (19:20 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 12 Jan 2017 05:02:24 +0000 (05:02 +0000)
Added API :
NSResult NSUnsubscribe(const char * providerId);

When added api is called, consumer service will send cancel subscription
and remove information of parameter provider Id.

Change-Id: I2536283e5f0c91477ed4364a1ee230b0ff97b308
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/include/NSConsumerInterface.h

index 6a073c0..a25675f 100644 (file)
@@ -108,6 +108,13 @@ NSResult NSRescanProvider();
 NSResult NSSubscribe(const char * providerId);
 
 /**
+ * Request to unsubscribe in order not to receive notification message from provider
+ * @param[in]  providerId  the Id of Provider who send the notification message
+ * @return ::NS_OK or result code of NSResult
+ */
+NSResult NSUnsubscribe(const char * providerId);
+
+/**
  * Send sync type to provider in order to synchronize notification status with other consumers
  * when consumer consumes the notification such as READ, DELETE
  * @param[in] providerId Provider id of the Notification message