Stream Chat Unreal SDK
Loading...
Searching...
No Matches
Member.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "User/UserRef.h"
7
8#include "Member.generated.h"
9
10class FUserManager;
12
17USTRUCT(BlueprintType)
18struct FMember
19{
20 GENERATED_BODY()
21
22
25 explicit FMember(const FUserRef& User);
27 explicit FMember(const FChannelMemberDto&, UUserManager*);
28
29 bool operator==(const FUserRef&) const;
30 bool operator==(const FMember&) const;
31 friend uint32 GetTypeHash(const FMember& M);
32
34 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member") FUserRef User;
35
37 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
38 FDateTime BanExpires = FDateTime{0};
39
41 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
42 bool bBanned = false;
43
45 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Stream Chat|Channel|Member")
46 FString ChannelRole;
47
48 // TODO rest of the fields
49};
#/components/schemas/ChannelMember
Definition: ChannelMemberDto.h:16
bool bBanned
Whether member is banned in this channel or not.
Definition: ChannelMemberDto.h:25
FString ChannelRole
Role of the member in the channel.
Definition: ChannelMemberDto.h:29
FDateTime BanExpires
Expiration date of the ban.
Definition: ChannelMemberDto.h:21
Contains information about a member of a chat channel.
Definition: Member.h:19
A reference to a unique User.
Definition: UserRef.h:23