From: KIM JungYong Date: Mon, 9 Jan 2017 10:20:29 +0000 (+0900) Subject: Add API about Notification consumer unsubscription provider. X-Git-Tag: 1.3.0~867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d53e6e584bfdf4eec2caa21d88f8b296e5d70cac;p=platform%2Fupstream%2Fiotivity.git Add API about Notification consumer unsubscription provider. 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 Reviewed-on: https://gerrit.iotivity.org/gerrit/16249 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Uze Choi --- diff --git a/service/notification/include/NSConsumerInterface.h b/service/notification/include/NSConsumerInterface.h index 6a073c0..a25675f 100644 --- a/service/notification/include/NSConsumerInterface.h +++ b/service/notification/include/NSConsumerInterface.h @@ -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