public static class TopicNotifyTopicHandler.NotificationLevel
extends com.pushtechnology.mobile.enums.Enum
This should be specified when the handler is created using
AbstractDiffusionClient#createTopicNotifyTopicHandler(Message, TopicNotifyTopicHandler.NotificationLevel, TopicNotifyTopicListener)
and can be changed using TopicNotifyTopicHandler#setNotificationLevel(TopicNotifyTopicHandler.NotificationLevel)
.
Modifier and Type | Field and Description |
---|---|
static TopicNotifyTopicHandler.NotificationLevel |
FULL
The level of notification provides all details of the Topic and
would be the level needed in order to replicate the Topic.
|
static TopicNotifyTopicHandler.NotificationLevel |
METADATA
This level of notification is the same as
MINIMUM plus
any metadata associated with the Topic. |
static TopicNotifyTopicHandler.NotificationLevel |
MINIMUM
The minimum level of notification that can be received which will
simply notify the topic name and its type.
|
static TopicNotifyTopicHandler.NotificationLevel |
NONE
This special setting may be used to indicate that add notifications
are not required.
|
static TopicNotifyTopicHandler.NotificationLevel |
PROPERTIES
This level of notification is the same as
MINIMUM plus
all properties of the Topic. |
Modifier and Type | Method and Description |
---|---|
static TopicNotifyTopicHandler.NotificationLevel |
fromCode(String code)
Returns NotificationLevel enum from code value.
|
String |
getCode()
Returns the code representation as used in messages.
|
boolean |
hasMetadata()
Indicates whether the notification level includes metadata
|
boolean |
hasProperties()
Indicates whether the notification level includes properties.
|
public static final TopicNotifyTopicHandler.NotificationLevel MINIMUM
public static final TopicNotifyTopicHandler.NotificationLevel PROPERTIES
MINIMUM
plus
all properties of the Topic. See TopicProperty
and
TopicDefinition
.public static final TopicNotifyTopicHandler.NotificationLevel METADATA
MINIMUM
plus
any metadata associated with the Topic.
See TopicDefinition.getMetadata()
.public static final TopicNotifyTopicHandler.NotificationLevel FULL
This is equivalent to MINIMUM
plus PROPERTIES
plus METADATA
.
public static final TopicNotifyTopicHandler.NotificationLevel NONE
public static TopicNotifyTopicHandler.NotificationLevel fromCode(String code)
code
- level codepublic String getCode()
public boolean hasProperties()
public boolean hasMetadata()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.