nn::nex::SubscriberPostContentParam::SetTopic Member Function

Syntax

void SetTopic(
     const qVector< String > & topics
);

void SetTopic(
     const String & topic
);

Overloaded Member Functions

SetTopic ( const qVector< String > & ) Sets multiple topics to post content to.
SetTopic ( const String & ) Sets a single topic to post content to.

Description of SetTopic ( const qVector< String > & )

Specify a topic string with the format "r/reserved topic number". Specify an integer from 0 to (NUM_RESERVED_TOPICS - 1) for the reserved topic number. Use the SubscriberUtil::ReservedTopicNumToTopicString function to create a reserved topic number from a topic string. At least one topic must be specified. The initial value is empty.

Description of SetTopic ( const String & )

Shortcut function. Using this overload is more convenient when you only want to set a single topic. Specify a topic string with the format "r/reserved topic number." Specify an integer from 0 to (NUM_RESERVED_TOPICS - 1) for the reserved topic number. Use the SubscriberUtil::ReservedTopicNumToTopicString function to create a reserved topic number from a topic string. The initial value is empty.


CONFIDENTIAL