ThreadChannel object
ThreadChannel is an object that refers to a single thread (channel) in a chat.
Properties
The ThreadChannelImpl class extends ChannelImpl and implements the ThreadChannel protocol. It takes the following properties:
1extension ThreadChannelImpl: ThreadChannel {
2    public var chat: ChatImpl
3    public var id: String
4    public var name: String?
5    public var custom: [String: JSONCodableScalar]?
6    public var channelDescription: String?
7    public var updated: String?
8    public var status: String?
9    public var type: ChannelType?
10    public var parentMessage: MessageImpl
11    public var parentChannelId: String
12
13    ...
14}
| Parameter | Description | 
|---|---|
| chatType:  ChatImpl | Reference to the main Chatprotocol. | 
| idType:  String | Unique identifier for the channel. Verify the channel ID with our validator. | 
| nameType:  String | Display name or title of the channel. | 
| customType:  [String: JSONCodableScalar] | Any custom properties or metadata associated with the channel in the form of a dictionary of key-value pairs. App Context filtering language doesn’t support filtering by custom properties. | 
| descriptionType:  String | Brief description or summary of the channel's purpose or content. | 
| updatedType:  String | Timestamp for the last time the channel was updated or modified. | 
| statusType:  String | Current status of the channel, like online,offline, orarchived. | 
| typeType:  ChannelType | One of the available channel types: 
 | 
| parentMessageType:  MessageImpl | Message for which the thread was created. | 
| parentChannelIdType:  String | Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages. | 
Methods
You can call the following methods on the ThreadChannel object.
Click on each method for more details.
- getHistory()
- pinMessage()
- pinMessageToParentChannel()
- streamUpdatesOn()
- unpinMessage()
- unpinMessageFromParentChannel()
- All methods available under the ChannelImplobject.
Use case
For example, you can use the ThreadChannel-related methods to: