Package com.longbridge.content
Class CreateTopicOptions
- java.lang.Object
-
- com.longbridge.content.CreateTopicOptions
-
public class CreateTopicOptions extends Object
Options for creating a topic
-
-
Constructor Summary
Constructors Constructor Description CreateTopicOptions(String title, String body)Constructs a create-topic request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTopicOptionssetHashtags(String[] hashtags)Sets the hashtag names, max 5.CreateTopicOptionssetTickers(String[] tickers)Sets the related stock tickers, format: {symbol}.CreateTopicOptionssetTopicType(String topicType)Sets the content type: "article" (long-form) or "post" (short post, default).
-
-
-
Method Detail
-
setTopicType
public CreateTopicOptions setTopicType(String topicType)
Sets the content type: "article" (long-form) or "post" (short post, default).- Parameters:
topicType- content type- Returns:
- this instance for chaining
-
setTickers
public CreateTopicOptions setTickers(String[] tickers)
Sets the related stock tickers, format: {symbol}.{market}, max 10.- Parameters:
tickers- stock tickers- Returns:
- this instance for chaining
-
setHashtags
public CreateTopicOptions setHashtags(String[] hashtags)
Sets the hashtag names, max 5.- Parameters:
hashtags- hashtag names- Returns:
- this instance for chaining
-
-