List replies in a message thread
You can retrieve replies to a message by identifying the parent message like the following. First, create a ThreadedMessageListParams
object and set properties related to the thread where the target replies belong to.
ThreadedMessageListParams
Property name | Type | Description |
---|---|---|
previousResultSize | Int | Specifies the number of messages to retrieve that were sent before the specified timestamp. |
nextResultSize | Int | Specifies the number of messages to retrieve that were sent after the specified timestamp. |
isInclusive | Bool | Determines whether to include the messages with the matching timestamp in the result. |
reverse | Bool | Determines whether to sort the retrieved messages in reverse order. If set to |
includeParentMessageInfo | Bool | Determines whether to include information about the parent message in the result. |
Using the timestamp of the parent message, you can retrieve the parent message with its replies by passing the ThreadedMessageListParams
object to the getThreadedMessages(timestamp:params:completionHandler:)
method as an argument.
List of parameters
Parameter name | Type | Description |
---|---|---|
timestamp | Int64 | Specifies the timestamp to be the reference point of message retrieval in Unix milliseconds format. |