Skip to content

Commit

Permalink
add struct FGrpcMetaData as the wrapper class of `TMap<FString,FStr…
Browse files Browse the repository at this point in the history
…ing>` to prepare for supporting MetaData function
  • Loading branch information
thejinchao committed Apr 20, 2024
1 parent 7faba91 commit d32551a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/TurboLinkGrpc/Public/TurboLinkGrpcClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ FORCEINLINE uint32 GetTypeHash(const FGrpcContextHandle& GrpcContextHandle)
return GrpcContextHandle.Value;
}

USTRUCT(BlueprintType)
struct TURBOLINKGRPC_API FGrpcMetaData
{
GENERATED_BODY()

UPROPERTY(BlueprintReadWrite, Category = TurboLink)
TMap<FString, FString> MetaData;
};

DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnContextStateChange, FGrpcContextHandle, Handle, EGrpcContextState, NewState);

UCLASS(ClassGroup = TurboLink, BlueprintType, Abstract)
Expand Down

0 comments on commit d32551a

Please sign in to comment.