Sendbird Chat SDK for Unity
SbMessageListParams

An object contains set of options for get message methods More...

Public Member Functions

bool BelongsTo (SbBaseMessage inMessage)
 Checks whether given message is belonged to this params More...
 
bool BelongsTo (SbBaseMessageCreateParams inParams)
 Checks whether the given params is belonged to this object More...
 

Properties

bool Reverse = false [get, set]
 Determines whether to sort the retrieved messages in reverse order. If false, the results are in ascending order. Default is false More...
 
bool IsInclusive = false [get, set]
 Determines whether to include the messages with the matching timestamp or message ID in the results. Default is false More...
 
SbMessageTypeFilter MessageTypeFilter = SbMessageTypeFilter.All [get, set]
 Restricts the search scope only to retrieve messages with the specified message type. Default is All More...
 
List< string > CustomTypes [get, set]
 Restricts the search scope only to retrieve the messages with the multiple specified custom message types. When the custom type filtering is not needed, the value should be set to `null. More...
 
List< string > SenderUserIds [get, set]
 Restricts the search scope only to retrieve the messages sent by the users with the specified user IDs. When the user ID filtering is not needed, the value should be set to null. More...
 
bool IncludeMetaArray = false [get, set]
 Determines whether to include the metaarray information of the messages in the results. Default is false More...
 
bool IncludeReactions = false [get, set]
 Determines whether to include the reactions to the messages in the results. Default is false More...
 
bool IncludeThreadInfo = false [get, set]
 Determines whether to include the thread information of the messages in the results when the results contain root messages. Default is false More...
 
bool IncludeParentMessageInfo = false [get, set]
 Determines whether to include parent message info. Default is false More...
 
SbReplyType ReplyType = SbReplyType.None [get, set]
 Determines which reply types to include. Default is None More...
 
bool ShowSubChannelMessagesOnly = false [get, set]
 Determines whether to include only messages from the subChannel to which you belong in the results. Default is false More...
 
int PreviousResultSize = SendbirdChatMainContext.QUERY_DEFAULT_LIMIT [get, set]
 The number of messages to retrieve that were sent before the specified timestamp or message ID. Default is 20 More...
 
int NextResultSize = 0 [get, set]
 The number of messages to retrieve that were sent after the specified timestamp or message ID. Default is 0 More...
 

Detailed Description

An object contains set of options for get message methods

Since
4.0.0

Member Function Documentation

◆ BelongsTo() [1/2]

bool BelongsTo ( SbBaseMessage  inMessage)

Checks whether given message is belonged to this params

Parameters
inMessageSbBaseMessage instance
Returns
true if it is belonged, otherwise false
Since
4.0.0

◆ BelongsTo() [2/2]

bool BelongsTo ( SbBaseMessageCreateParams  inParams)

Checks whether the given params is belonged to this object

Parameters
inParamsSbBaseMessageCreateParams (either user or file) instance
Returns
true if the given params is belonged to this object, otherwise false
Since
4.0.0

Property Documentation

◆ CustomTypes

List<string> CustomTypes
getset

Restricts the search scope only to retrieve the messages with the multiple specified custom message types. When the custom type filtering is not needed, the value should be set to `null.

Since
4.0.0

◆ IncludeMetaArray

bool IncludeMetaArray = false
getset

Determines whether to include the metaarray information of the messages in the results. Default is false

Since
4.0.0

◆ IncludeParentMessageInfo

bool IncludeParentMessageInfo = false
getset

Determines whether to include parent message info. Default is false

Since
4.0.0

◆ IncludeReactions

bool IncludeReactions = false
getset

Determines whether to include the reactions to the messages in the results. Default is false

Since
4.0.0

◆ IncludeThreadInfo

bool IncludeThreadInfo = false
getset

Determines whether to include the thread information of the messages in the results when the results contain root messages. Default is false

Since
4.0.0

◆ IsInclusive

bool IsInclusive = false
getset

Determines whether to include the messages with the matching timestamp or message ID in the results. Default is false

Since
4.0.0

◆ MessageTypeFilter

SbMessageTypeFilter MessageTypeFilter = SbMessageTypeFilter.All
getset

Restricts the search scope only to retrieve messages with the specified message type. Default is All

Since
4.0.0

◆ NextResultSize

int NextResultSize = 0
getset

The number of messages to retrieve that were sent after the specified timestamp or message ID. Default is 0

Since
4.0.0

◆ PreviousResultSize

int PreviousResultSize = SendbirdChatMainContext.QUERY_DEFAULT_LIMIT
getset

The number of messages to retrieve that were sent before the specified timestamp or message ID. Default is 20

Warning
This value is only used in open channels.
Since
4.0.0

◆ ReplyType

SbReplyType ReplyType = SbReplyType.None
getset

Determines which reply types to include. Default is None

Since
4.0.0

◆ Reverse

bool Reverse = false
getset

Determines whether to sort the retrieved messages in reverse order. If false, the results are in ascending order. Default is false

Since
4.0.0

◆ SenderUserIds

List<string> SenderUserIds
getset

Restricts the search scope only to retrieve the messages sent by the users with the specified user IDs. When the user ID filtering is not needed, the value should be set to null.

Since
4.0.0

◆ ShowSubChannelMessagesOnly

bool ShowSubChannelMessagesOnly = false
getset

Determines whether to include only messages from the subChannel to which you belong in the results. Default is false

Since
4.0.0