5#include "CoreMinimal.h"
6#include "Kismet/BlueprintFunctionLibrary.h"
7#include "Moderation/MutedChannel.h"
9#include "User.generated.h"
27 explicit
FUser(const FString& InId);
40 void Update(const
FUser& User);
43 const FString& GetNameOrId() const;
45 FString GetInitials(int32 Limit = 2) const;
47 const FDateTime& GetLastActive() const;
49 FText GetLastSeenText() const;
52 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Stream Chat|User")
56 UPROPERTY(BlueprintReadOnly, Category = "Stream Chat|User")
60 UPROPERTY(BlueprintReadWrite, Category = "Stream Chat|User", AdvancedDisplay)
64 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Stream Chat|User", AdvancedDisplay)
65 FDateTime CreatedAt = FDateTime{0};
68 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Stream Chat|User", AdvancedDisplay)
69 FDateTime UpdatedAt = FDateTime{0};
72 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Stream Chat|User", AdvancedDisplay)
73 FDateTime DeactivatedAt = FDateTime{0};
76 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Stream Chat|User", AdvancedDisplay)
77 FDateTime DeletedAt = FDateTime{0};
80 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Stream Chat|User", AdvancedDisplay)
84 UPROPERTY(BlueprintReadWrite, Category =
"Stream Chat|User", AdvancedDisplay)
88 UPROPERTY(BlueprintReadWrite, Category =
"Stream Chat|User", AdvancedDisplay)
92 UPROPERTY(BlueprintReadWrite, Category = "Stream Chat|User", AdvancedDisplay)
96 UPROPERTY(BlueprintReadWrite, Category = "Stream Chat|User", AdvancedDisplay)
100 UPROPERTY(BlueprintReadWrite, Category =
"Stream Chat|User", AdvancedDisplay)
104 UPROPERTY(BlueprintReadWrite, Category = "Stream Chat|User", AdvancedDisplay)
109 UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Stream Chat|User")
114 UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Stream Chat|User")
133 UFUNCTION(BlueprintCallable, Category =
"Stream Chat|User")
134 static bool GenerateUserId(
const FString& Name, FString& OutUserId);
141 UFUNCTION(BlueprintCallable, Category =
"Stream Chat|User")
142 static bool SanitizeName(
const FString& Name, FString& SanitizedName);
Blueprint functions for the User struct.
Definition: User.h:124
@ LastActive
When the user was last active.
Common fields for users.
Definition: UserDto.h:16
FString Language
Preferred language of a user.
Definition: UserDto.h:60
FString Role
Determines the set of user permissions.
Definition: UserDto.h:68
TArray< FString > Teams
List of teams user is a part of.
Definition: UserDto.h:72
bool bInvisible
Whether a user should appear online or not.
Definition: UserDto.h:56
bool bBanned
Whether a user is banned or not.
Definition: UserDto.h:52
FDateTime RevokeTokensIssuedBefore
Revocation date for tokens.
Definition: UserDto.h:64
FDateTime BanExpires
Expiration date of the ban.
Definition: UserDto.h:48
A Stream Chat user.
Definition: User.h:20
#/components/schemas/UserObject Used in both requests and responses
Definition: UserObjectDto.h:17
#/components/schemas/UserObjectRequest
Definition: UserObjectRequestDto.h:16