Stream Chat Unreal SDK
Loading...
Searching...
No Matches
Member.h
1// Copyright 2026 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "AdditionalFields.h"
6#include "CoreMinimal.h"
7#include "User/UserRef.h"
8
9#include "Member.generated.h"
10
11class FUserManager;
13
18USTRUCT(BlueprintType)
19struct FMember
20{
21 GENERATED_BODY()
22
23
26 explicit FMember(const FUserRef& User);
28 explicit FMember(const FChannelMemberDto&, UUserManager*);
29
30 bool operator==(const FUserRef&) const;
31 bool operator==(const FMember&) const;
32 friend uint32 GetTypeHash(const FMember& M);
33
40 bool IsInvitePending() const;
41
43 bool HasAcceptedInvite() const;
44
46 bool HasRejectedInvite() const;
47
49 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member") FUserRef User;
50
52 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
53 FDateTime BanExpires = FDateTime{0};
54
56 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
57 bool bBanned = false;
58
60 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
61 FString ChannelRole;
62
64 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
65 FDateTime CreatedAt = FDateTime{0};
66
68 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
69 FDateTime UpdatedAt = FDateTime{0};
70
72 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
73 bool bInvited = false;
74
76 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
77 FDateTime InviteAcceptedAt = FDateTime{0};
78
80 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
81 FDateTime InviteRejectedAt = FDateTime{0};
82
84 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
85 bool bIsModerator = false;
86
93 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
94 bool bShadowBanned = false;
95
97 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
98 bool bNotificationsMuted = false;
99
101 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
102 FDateTime ArchivedAt = FDateTime{0};
103
105 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
106 FDateTime PinnedAt = FDateTime{0};
107
109 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|Channel|Member", AdvancedDisplay)
110 FAdditionalFields ExtraData;
111};
#/components/schemas/ChannelMember
Definition ChannelMemberDto.h:17
bool bIsModerator
Whether member is channel moderator or not.
Definition ChannelMemberDto.h:54
FDateTime PinnedAt
Date when this member pinned the channel for themselves.
Definition ChannelMemberDto.h:62
FDateTime UpdatedAt
Date/time of the last update.
Definition ChannelMemberDto.h:70
FDateTime ArchivedAt
Date when this member archived the channel for themselves.
Definition ChannelMemberDto.h:22
bool bShadowBanned
Whether member is shadow banned in this channel or not.
Definition ChannelMemberDto.h:66
FDateTime InviteRejectedAt
Date when invite was rejected.
Definition ChannelMemberDto.h:46
bool bBanned
Whether member is banned in this channel or not.
Definition ChannelMemberDto.h:30
FString ChannelRole
Role of the member in the channel.
Definition ChannelMemberDto.h:34
FDateTime CreatedAt
Date/time of creation.
Definition ChannelMemberDto.h:38
FDateTime InviteAcceptedAt
Date when invite was accepted.
Definition ChannelMemberDto.h:42
bool bNotificationsMuted
Whether this member muted notifications from the channel.
Definition ChannelMemberDto.h:58
bool bInvited
Whether member was invited or not.
Definition ChannelMemberDto.h:50
FDateTime BanExpires
Expiration date of the ban.
Definition ChannelMemberDto.h:26
Contains information about a member of a chat channel.
Definition Member.h:20
A reference to a unique User.
Definition UserRef.h:23