* API for getting for getting Topic List
*
* @return TopicsList
+ *
+ * @throws NSException failure to get Topic List
*/
public TopicsList getTopicList() throws NSException {
return nativeGetTopicList();
* API for getting for getting ProviderState
*
* @return ProviderState
+ *
+ * @throws NSException failure to get ProviderState
*/
public ProviderState getProviderState() throws NSException {
return nativeGetProviderState();
/**
* API for for requesting subscription of Notification service
+ *
+ * @throws NSException failure to subscribe
*/
public void subscribe() throws NSException {
nativeSubscribe();
/**
* API for for requesting subscription status from Provider of Notification
* service
+ *
+ * @return true if the notification service is subscribed to
+ *
+ * @throws NSException if unable to obtain subscription status
*/
public boolean isSubscribed() throws NSException {
return nativeIsSubscribed();
* unique Id of message
* @param syncType
* SyncType of Notification service
+ * @throws NSException failure to send SyncInfo
*/
public void sendSyncInfo(long messageId, SyncInfo.SyncType syncType)
throws NSException {
*
* @param onProviderStateListener
* OnProviderStateListener callback Interface
- * @param onMessageReceivedListner
- * OnMessageReceivedListner callback Interface
- * @param onSyncInfoReceivedListner
- * OnSyncInfoReceivedListner callback Interface
+ * @param onMessageReceivedListener
+ * OnMessageReceivedListener callback Interface
+ * @param onSyncInfoReceivedListener
+ * OnSyncInfoReceivedListener callback Interface
+ * @throws NSException failure to register listeners.
*/
public void setListener(OnProviderStateListener onProviderStateListener,
OnMessageReceivedListener onMessageReceivedListener,
* TopicsList of interested Topics
*
* @return result code 100 = OK , 200 = ERROR , 300 = SUCCESS , 400 = FAIL
+ *
+ * @throws NSException failure to update topic list.
*/
public int updateTopicList(TopicsList topicsList) throws NSException {
return nativeUpdateTopicList(topicsList);