Stream Chat Unreal SDK
Loading...
Searching...
No Matches
FilterBlueprintLibrary.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Channel/Filter.h"
6#include "CoreMinimal.h"
7#include "Kismet/BlueprintFunctionLibrary.h"
8
9#include "FilterBlueprintLibrary.generated.h"
10
11UCLASS()
12class STREAMCHAT_API UFilterBlueprintLibrary final : public UBlueprintFunctionLibrary
13{
14 GENERATED_BODY()
15
16public:
17 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter")
18 static FString ToJsonString(const FFilter& Filter);
19
21 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$and (Filter)", CompactNodeTitle = "$and", Keywords = "&"))
22 static FFilter And(const TArray<FFilter>& Filters);
24 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$or (Filter)", CompactNodeTitle = "$or", Keywords = "|"))
25 static FFilter Or(const TArray<FFilter>& Filters);
27 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$nor (Filter)", CompactNodeTitle = "$nor", Keywords = "not |"))
28 static FFilter Nor(const TArray<FFilter>& Filters);
29
31 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$eq (Filter, integer)", Keywords = "= $eq"))
32 static FFilter EqualInt(FName Key, int32 Value);
34 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$eq (Filter, string)", Keywords = "= $eq"))
35 static FFilter EqualString(FName Key, FString Value);
37 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$eq (Filter, boolean)", Keywords = "= $eq"))
38 static FFilter EqualBool(FName Key, bool bValue);
39
41 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$ne (Filter, integer)", Keywords = "!= $neq"))
42 static FFilter NotEqualInt(FName Key, int32 Value);
44 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$ne (Filter, string)", Keywords = "!= $neq"))
45 static FFilter NotEqualString(FName Key, FString Value);
47 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$ne (Filter, boolean)", Keywords = "!= $neq"))
48 static FFilter NotEqualBool(FName Key, bool bValue);
49
51 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$gt (Filter)", Keywords = "> $gt"))
52 static FFilter GreaterInt(FName Key, int32 Value);
53
55 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$gte (Filter)", Keywords = ">= $gte"))
56 static FFilter GreaterOrEqualInt(FName Key, int32 Value);
57
59 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$lt (Filter)", Keywords = "> $lt"))
60 static FFilter LessInt(FName Key, int32 Value);
61
63 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$lte (Filter)", Keywords = ">= $lte"))
64 static FFilter LessOrEqualInt(FName Key, int32 Value);
65
67 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$in (Filter, integer)"))
68 static FFilter InInt(FName Key, const TArray<int32>& Values);
70 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$in (Filter, string)"))
71 static FFilter InString(FName Key, const TArray<FString>& Values);
73 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$nin (Filter, integer)", Keywords = "not"))
74 static FFilter NotInInt(FName Key, const TArray<int32>& Values);
76 UFUNCTION(BlueprintPure, Category = "Stream Chat|Filter", meta = (DisplayName = "$nin (Filter, string)", Keywords = "not"))
77 static FFilter NotInString(FName Key, const TArray<FString>& Values);
78};
@ Or
Matches at least one of the values specified in an array.
@ Nor
Matches none of the values specified in an array.
@ And
Matches all the values specified in an array.
A filter used for querying channels.
Definition: Filter.h:75