DEPRECATED: Diffusion iOS Classic API  5.9.4
 All Data Structures Files Functions Variables Enumerations Enumerator Properties Macros Pages
DFTopicListenerDelegate.h
1 /*
2  * DFTopicListenerDelegate.h
3  *
4  * Created by Darren Hudson on 24/05/2009 - Diffusion 5.9.4_01
5  * Copyright (c) 2013 Push Technology Ltd. All rights reserved.
6  *
7  */
8 
9 #import "DFTopicMessage.h"
10 
11 /**
12  Protocol for receiving messages from a particular topic.
13  */
15 
16 /**
17  * This method is called if the TopicMessage matches the message received from Diffusion
18  *
19  * @param message
20  * @return YES if the message is 'consumed' and should not be relayed to subsequent DFTopicListenerDelegate, nor the default listener.
21  */
22 - (BOOL) onMessage:(DFTopicMessage *) message;
23 
24 /**
25  * getTopic.
26  * <p>
27  * <b>NB</b>: From v5.0 this method is only called when this delegate is added to the DFClient, whereas it used to be called each time a message was recieved.
28  * @return the topic-name for which this delegate is invoked.
29  */
30 - (NSString *) getTopic;
31 
32 @end