nn::nex::SubscriberClient::Follow Member Function

Syntax

qBool Follow(
     ProtocolCallContext * pContext,
     const String & topic
);

Parameters

Name Description
in pContext Call information.
in topic The topic to follow.

Return Values



Value Description
true RMC call initialization succeeded.
false Failure.

Description

Follows a single topic.

Follows the specified topic and adds it to the list of topics that the local user is currently following. Users can follow up to SubscriberConstants::MAX_FOLLOWING_SIZE topics.

The following results may be returned as a result of asynchronous operation. Pass errors to the Error/EULA applet. Errors must be removed during debugging.

QERROR(Subscriber, InvalidArgument): Invalid topic format.
QERROR(Subscriber, OverLimit): The number of topics followed exceeds SubscriberConstants::MAX_FOLLOWING_SIZE. The reserved topic number exceeds SubscriberConstants::NUM_RESERVED_TOPICS.

Revision History

2014/09/12
Initial version.

CONFIDENTIAL