|
Stream Chat Unreal SDK
|
Encapsulates the local state of a channel. More...
#include <ChannelState.h>
Public Member Functions | |
| FChannelState () | |
| Needed by USTRUCT system. Shouldn't be used directly. | |
| FChannelState (const FChannelStateResponseFieldsDto &, UUserManager *) | |
| Create a channel state from a DTO from the API. | |
| void | Append (const FChannelStateResponseFieldsDto &, UUserManager *) |
| Merge new information from the API into this state. | |
| void | AddMessage (const FMessage &) |
| Locally add a message to this channel. | |
| bool | IsMessageRead (const FMessage &) const |
| Has message been read by everyone else? | |
| void | MarkRead () |
| Mark all messages in this channel as read by the current user. | |
| int32 | UnreadCount () const |
| Get the count of unread messages for the current user in this channel. | |
Public Attributes | |
| FMessageStore | Messages |
| int32 | WatcherCount = 0 |
| Number of channel watchers. | |
| TArray< FUserRef > | Watchers |
| TArray< FRead > | Read |
| The read states of each user in this channel. | |
Encapsulates the local state of a channel.