Skip to content

Commit

Permalink
Update Autogenerated API
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Sep 11, 2024
1 parent 32a6e60 commit be2dfd7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ void UMicroserviceRegistrations::BeamSerializeProperties(TUnrealJsonSerializer&
Serializer->WriteValue(TEXT("pid"), Pid);
Serializer->WriteValue(TEXT("instanceCount"), InstanceCount);
UBeamJsonUtils::SerializeOptional<bool>(TEXT("trafficFilterEnabled"), &bTrafficFilterEnabled, Serializer);
UBeamJsonUtils::SerializeOptional<int64>(TEXT("startedByGamerTag"), &StartedByGamerTag, Serializer);
UBeamJsonUtils::SerializeOptional<FString>(TEXT("routingKey"), &RoutingKey, Serializer);
UBeamJsonUtils::SerializeOptional<int64>(TEXT("startedById"), &StartedById, Serializer);
UBeamJsonUtils::SerializeOptional<FString>(TEXT("beamoName"), &BeamoName, Serializer);
UBeamJsonUtils::SerializeOptional<TArray<USupportedFederation*>, USupportedFederation*>(TEXT("federation"), &Federation, Serializer);
}
Expand All @@ -25,8 +25,8 @@ void UMicroserviceRegistrations::BeamSerializeProperties(TUnrealPrettyJsonSerial
Serializer->WriteValue(TEXT("pid"), Pid);
Serializer->WriteValue(TEXT("instanceCount"), InstanceCount);
UBeamJsonUtils::SerializeOptional<bool>(TEXT("trafficFilterEnabled"), &bTrafficFilterEnabled, Serializer);
UBeamJsonUtils::SerializeOptional<int64>(TEXT("startedByGamerTag"), &StartedByGamerTag, Serializer);
UBeamJsonUtils::SerializeOptional<FString>(TEXT("routingKey"), &RoutingKey, Serializer);
UBeamJsonUtils::SerializeOptional<int64>(TEXT("startedById"), &StartedById, Serializer);
UBeamJsonUtils::SerializeOptional<FString>(TEXT("beamoName"), &BeamoName, Serializer);
UBeamJsonUtils::SerializeOptional<TArray<USupportedFederation*>, USupportedFederation*>(TEXT("federation"), &Federation, Serializer);
}
Expand All @@ -38,8 +38,8 @@ void UMicroserviceRegistrations::BeamDeserializeProperties(const TSharedPtr<FJso
Pid = Bag->GetStringField(TEXT("pid"));
InstanceCount = Bag->GetIntegerField(TEXT("instanceCount"));
UBeamJsonUtils::DeserializeOptional<bool>("trafficFilterEnabled", Bag, bTrafficFilterEnabled, OuterOwner);
UBeamJsonUtils::DeserializeOptional<int64>("startedByGamerTag", Bag, StartedByGamerTag, OuterOwner);
UBeamJsonUtils::DeserializeOptional<FString>("routingKey", Bag, RoutingKey, OuterOwner);
UBeamJsonUtils::DeserializeOptional<int64>("startedById", Bag, StartedById, OuterOwner);
UBeamJsonUtils::DeserializeOptional<FString>("beamoName", Bag, BeamoName, OuterOwner);
UBeamJsonUtils::DeserializeOptional<TArray<USupportedFederation*>, USupportedFederation*>("federation", Bag, Federation, OuterOwner);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ FString UMicroserviceRegistrationsLibrary::MicroserviceRegistrationsToJsonString
return Result;
}

UMicroserviceRegistrations* UMicroserviceRegistrationsLibrary::Make(FString ServiceName, FString Cid, FString Pid, int32 InstanceCount, FOptionalBool bTrafficFilterEnabled, FOptionalInt64 StartedByGamerTag, FOptionalString RoutingKey, FOptionalString BeamoName, FOptionalArrayOfSupportedFederation Federation, UObject* Outer)
UMicroserviceRegistrations* UMicroserviceRegistrationsLibrary::Make(FString ServiceName, FString Cid, FString Pid, int32 InstanceCount, FOptionalBool bTrafficFilterEnabled, FOptionalString RoutingKey, FOptionalInt64 StartedById, FOptionalString BeamoName, FOptionalArrayOfSupportedFederation Federation, UObject* Outer)
{
auto Serializable = NewObject<UMicroserviceRegistrations>(Outer);
Serializable->ServiceName = ServiceName;
Serializable->Cid = Cid;
Serializable->Pid = Pid;
Serializable->InstanceCount = InstanceCount;
Serializable->bTrafficFilterEnabled = bTrafficFilterEnabled;
Serializable->StartedByGamerTag = StartedByGamerTag;
Serializable->RoutingKey = RoutingKey;
Serializable->StartedById = StartedById;
Serializable->BeamoName = BeamoName;
Serializable->Federation = Federation;

return Serializable;
}

void UMicroserviceRegistrationsLibrary::Break(const UMicroserviceRegistrations* Serializable, FString& ServiceName, FString& Cid, FString& Pid, int32& InstanceCount, FOptionalBool& bTrafficFilterEnabled, FOptionalInt64& StartedByGamerTag, FOptionalString& RoutingKey, FOptionalString& BeamoName, FOptionalArrayOfSupportedFederation& Federation)
void UMicroserviceRegistrationsLibrary::Break(const UMicroserviceRegistrations* Serializable, FString& ServiceName, FString& Cid, FString& Pid, int32& InstanceCount, FOptionalBool& bTrafficFilterEnabled, FOptionalString& RoutingKey, FOptionalInt64& StartedById, FOptionalString& BeamoName, FOptionalArrayOfSupportedFederation& Federation)
{
ServiceName = Serializable->ServiceName;
Cid = Serializable->Cid;
Pid = Serializable->Pid;
InstanceCount = Serializable->InstanceCount;
bTrafficFilterEnabled = Serializable->bTrafficFilterEnabled;
StartedByGamerTag = Serializable->StartedByGamerTag;
RoutingKey = Serializable->RoutingKey;
StartedById = Serializable->StartedById;
BeamoName = Serializable->BeamoName;
Federation = Serializable->Federation;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include "CoreMinimal.h"

#include "Serialization/BeamJsonSerializable.h"
#include "BeamableCore/Public/AutoGen/Optionals/OptionalInt64.h"
#include "BeamableCore/Public/AutoGen/Optionals/OptionalString.h"
#include "BeamableCore/Public/AutoGen/Optionals/OptionalBool.h"
#include "BeamableCore/Public/AutoGen/Optionals/OptionalInt64.h"
#include "BeamableCore/Public/AutoGen/Optionals/OptionalArrayOfSupportedFederation.h"

#include "MicroserviceRegistrations.generated.h"
Expand All @@ -26,10 +26,10 @@ class BEAMABLECORE_API UMicroserviceRegistrations : public UObject, public IBeam
int32 InstanceCount = {};
UPROPERTY(EditAnywhere, BlueprintReadWrite, DisplayName="B Traffic Filter Enabled", Category="Beam")
FOptionalBool bTrafficFilterEnabled = {};
UPROPERTY(EditAnywhere, BlueprintReadWrite, DisplayName="Started By Gamer Tag", Category="Beam")
FOptionalInt64 StartedByGamerTag = {};
UPROPERTY(EditAnywhere, BlueprintReadWrite, DisplayName="Routing Key", Category="Beam")
FOptionalString RoutingKey = {};
UPROPERTY(EditAnywhere, BlueprintReadWrite, DisplayName="Started By Id", Category="Beam")
FOptionalInt64 StartedById = {};
UPROPERTY(EditAnywhere, BlueprintReadWrite, DisplayName="Beamo Name", Category="Beam")
FOptionalString BeamoName = {};
UPROPERTY(EditAnywhere, BlueprintReadWrite, DisplayName="Federation", Category="Beam")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class BEAMABLECORE_API UMicroserviceRegistrationsLibrary : public UBlueprintFunc
UFUNCTION(BlueprintPure, Category="Beam|Json", DisplayName="Beam - MicroserviceRegistrations To JSON String")
static FString MicroserviceRegistrationsToJsonString(const UMicroserviceRegistrations* Serializable, const bool Pretty);

UFUNCTION(BlueprintPure, Category="Beam|Backend", DisplayName="Beam - Make MicroserviceRegistrations", meta=(DefaultToSelf="Outer", AdvancedDisplay="bTrafficFilterEnabled, StartedByGamerTag, RoutingKey, BeamoName, Federation, Outer", NativeMakeFunc))
static UMicroserviceRegistrations* Make(FString ServiceName, FString Cid, FString Pid, int32 InstanceCount, FOptionalBool bTrafficFilterEnabled, FOptionalInt64 StartedByGamerTag, FOptionalString RoutingKey, FOptionalString BeamoName, FOptionalArrayOfSupportedFederation Federation, UObject* Outer);
UFUNCTION(BlueprintPure, Category="Beam|Backend", DisplayName="Beam - Make MicroserviceRegistrations", meta=(DefaultToSelf="Outer", AdvancedDisplay="bTrafficFilterEnabled, RoutingKey, StartedById, BeamoName, Federation, Outer", NativeMakeFunc))
static UMicroserviceRegistrations* Make(FString ServiceName, FString Cid, FString Pid, int32 InstanceCount, FOptionalBool bTrafficFilterEnabled, FOptionalString RoutingKey, FOptionalInt64 StartedById, FOptionalString BeamoName, FOptionalArrayOfSupportedFederation Federation, UObject* Outer);

UFUNCTION(BlueprintPure, Category="Beam|Backend", DisplayName="Beam - Break MicroserviceRegistrations", meta=(NativeBreakFunc))
static void Break(const UMicroserviceRegistrations* Serializable, FString& ServiceName, FString& Cid, FString& Pid, int32& InstanceCount, FOptionalBool& bTrafficFilterEnabled, FOptionalInt64& StartedByGamerTag, FOptionalString& RoutingKey, FOptionalString& BeamoName, FOptionalArrayOfSupportedFederation& Federation);
static void Break(const UMicroserviceRegistrations* Serializable, FString& ServiceName, FString& Cid, FString& Pid, int32& InstanceCount, FOptionalBool& bTrafficFilterEnabled, FOptionalString& RoutingKey, FOptionalInt64& StartedById, FOptionalString& BeamoName, FOptionalArrayOfSupportedFederation& Federation);
};

0 comments on commit be2dfd7

Please sign in to comment.