Skip to content

Commit

Permalink
Fix some incorrect function names.
Browse files Browse the repository at this point in the history
  • Loading branch information
KGronek-Pubnub committed Oct 31, 2024
1 parent 1dc3ea9 commit f658f01
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void UPubnubJsonUtilities::FetchHistoryJsonToData(FString ResponseJson, bool& Er
}
}

void UPubnubJsonUtilities::FOnGetAllUUIDMetadataJsonToData(FString ResponseJson, int& Status, TArray<FPubnubUserData>& UsersData, FString& PageNext, FString& PagePrev)
void UPubnubJsonUtilities::GetAllUUIDMetadataJsonToData(FString ResponseJson, int& Status, TArray<FPubnubUserData>& UsersData, FString& PageNext, FString& PagePrev)
{
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);

Expand All @@ -213,7 +213,7 @@ void UPubnubJsonUtilities::FOnGetAllUUIDMetadataJsonToData(FString ResponseJson,
}
}

void UPubnubJsonUtilities::FOnGetUUIDMetadataJsonToData(FString ResponseJson, int& Status, FPubnubUserData& UserData)
void UPubnubJsonUtilities::GetUUIDMetadataJsonToData(FString ResponseJson, int& Status, FPubnubUserData& UserData)
{
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);

Expand All @@ -234,7 +234,7 @@ void UPubnubJsonUtilities::FOnGetUUIDMetadataJsonToData(FString ResponseJson, in
}
}

void UPubnubJsonUtilities::FOnGetAllChannelMetadataJsonToData(FString ResponseJson, int& Status, TArray<FPubnubChannelData>& ChannelsData, FString& PageNext, FString& PagePrev)
void UPubnubJsonUtilities::GetAllChannelMetadataJsonToData(FString ResponseJson, int& Status, TArray<FPubnubChannelData>& ChannelsData, FString& PageNext, FString& PagePrev)
{
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);

Expand All @@ -259,7 +259,7 @@ void UPubnubJsonUtilities::FOnGetAllChannelMetadataJsonToData(FString ResponseJs
}
}

void UPubnubJsonUtilities::FOnGetChannelMetadataJsonToData(FString ResponseJson, int& Status, FPubnubChannelData& ChannelData)
void UPubnubJsonUtilities::GetChannelMetadataJsonToData(FString ResponseJson, int& Status, FPubnubChannelData& ChannelData)
{
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);

Expand All @@ -280,7 +280,7 @@ void UPubnubJsonUtilities::FOnGetChannelMetadataJsonToData(FString ResponseJson,
}
}

void UPubnubJsonUtilities::FOnGetMessageActionsJsonToData(FString ResponseJson, int& Status, TArray<FPubnubMessageActionData>& MessageActions)
void UPubnubJsonUtilities::GetMessageActionsJsonToData(FString ResponseJson, int& Status, TArray<FPubnubMessageActionData>& MessageActions)
{
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);

Expand Down
10 changes: 5 additions & 5 deletions Source/PubnubLibrary/Private/PubnubSubsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ void UPubnubSubsystem::GetAllUUIDMetadata_DATA_priv(FOnGetAllUUIDMetadataRespons
TArray<FPubnubUserData> UsersData;
FString PageNext;
FString PagePrev;
UPubnubJsonUtilities::FOnGetAllUUIDMetadataJsonToData(JsonResponse, Status, UsersData, PageNext, PagePrev);
UPubnubJsonUtilities::GetAllUUIDMetadataJsonToData(JsonResponse, Status, UsersData, PageNext, PagePrev);

//Broadcast bound delegate with parsed response
OnGetAllUUIDMetadataResponse.ExecuteIfBound(Status, UsersData, PageNext, PagePrev);
Expand Down Expand Up @@ -1808,7 +1808,7 @@ void UPubnubSubsystem::GetUUIDMetadata_DATA_priv(FString UUIDMetadataID, FOnGetU
//Parse Json response into data
int Status;
FPubnubUserData UserData;
UPubnubJsonUtilities::FOnGetUUIDMetadataJsonToData(JsonResponse, Status, UserData);
UPubnubJsonUtilities::GetUUIDMetadataJsonToData(JsonResponse, Status, UserData);

//Broadcast bound delegate with parsed response
OnGetUUIDMetadataResponse.ExecuteIfBound(Status, UserData);
Expand Down Expand Up @@ -1883,7 +1883,7 @@ void UPubnubSubsystem::GetAllChannelMetadata_DATA_priv(FOnGetAllChannelMetadataR
TArray<FPubnubChannelData> ChannelsData;
FString PageNext;
FString PagePrev;
UPubnubJsonUtilities::FOnGetAllChannelMetadataJsonToData(JsonResponse, Status, ChannelsData, PageNext, PagePrev);
UPubnubJsonUtilities::GetAllChannelMetadataJsonToData(JsonResponse, Status, ChannelsData, PageNext, PagePrev);

//Broadcast bound delegate with parsed response
OnGetAllChannelMetadataResponse.ExecuteIfBound(Status, ChannelsData, PageNext, PagePrev);
Expand Down Expand Up @@ -1948,7 +1948,7 @@ void UPubnubSubsystem::GetChannelMetadata_DATA_priv(FString ChannelMetadataID, F
//Parse Json response into data
int Status;
FPubnubChannelData ChannelData;
UPubnubJsonUtilities::FOnGetChannelMetadataJsonToData(JsonResponse, Status, ChannelData);
UPubnubJsonUtilities::GetChannelMetadataJsonToData(JsonResponse, Status, ChannelData);

//Broadcast bound delegate with parsed response
OnGetChannelMetadataResponse.ExecuteIfBound(Status, ChannelData);
Expand Down Expand Up @@ -2247,7 +2247,7 @@ void UPubnubSubsystem::GetMessageActions_DATA_priv(FString ChannelName, FString
//Parse Json response into data
int Status;
TArray<FPubnubMessageActionData> MessageActions;
UPubnubJsonUtilities::FOnGetMessageActionsJsonToData(JsonResponse, Status, MessageActions);
UPubnubJsonUtilities::GetMessageActionsJsonToData(JsonResponse, Status, MessageActions);

//Broadcast bound delegate with parsed response
OnGetMessageActionsResponse.ExecuteIfBound(Status, MessageActions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ class PUBNUBLIBRARY_API UPubnubJsonUtilities : public UBlueprintFunctionLibrary
static void FetchHistoryJsonToData(FString ResponseJson, bool &Error, int &Status, FString &ErrorMessage, TArray<FPubnubMessageData> &Messages);

UFUNCTION(BlueprintCallable, BlueprintPure, Category="Pubnub|Json Utilities")
static void FOnGetAllUUIDMetadataJsonToData(FString ResponseJson, int &Status, TArray<FPubnubUserData> &UsersData, FString &PageNext, FString &PagePrev);
static void GetAllUUIDMetadataJsonToData(FString ResponseJson, int &Status, TArray<FPubnubUserData> &UsersData, FString &PageNext, FString &PagePrev);

UFUNCTION(BlueprintCallable, BlueprintPure, Category="Pubnub|Json Utilities")
static void FOnGetUUIDMetadataJsonToData(FString ResponseJson, int &Status, FPubnubUserData &UserData);
static void GetUUIDMetadataJsonToData(FString ResponseJson, int &Status, FPubnubUserData &UserData);

UFUNCTION(BlueprintCallable, BlueprintPure, Category="Pubnub|Json Utilities")
static void FOnGetAllChannelMetadataJsonToData(FString ResponseJson, int &Status, TArray<FPubnubChannelData> &ChannelsData, FString &PageNext, FString &PagePrev);
static void GetAllChannelMetadataJsonToData(FString ResponseJson, int &Status, TArray<FPubnubChannelData> &ChannelsData, FString &PageNext, FString &PagePrev);

UFUNCTION(BlueprintCallable, BlueprintPure, Category="Pubnub|Json Utilities")
static void FOnGetChannelMetadataJsonToData(FString ResponseJson, int &Status, FPubnubChannelData &ChannelData);
static void GetChannelMetadataJsonToData(FString ResponseJson, int &Status, FPubnubChannelData &ChannelData);

UFUNCTION(BlueprintCallable, BlueprintPure, Category="Pubnub|Json Utilities")
static void FOnGetMessageActionsJsonToData(FString ResponseJson, int &Status, TArray<FPubnubMessageActionData> &MessageActions);
static void GetMessageActionsJsonToData(FString ResponseJson, int &Status, TArray<FPubnubMessageActionData> &MessageActions);

UFUNCTION(BlueprintCallable, BlueprintPure, Category="Pubnub|Json Utilities")
static FPubnubUserData GetUserDataFromJson(FString ResponseJson);
Expand Down

0 comments on commit f658f01

Please sign in to comment.