forked from loafle/openapi-generator-original
update cpp-ue4 samples (#10194)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "OpenAPIOrder.h"
|
||||
|
||||
namespace OpenAPI
|
||||
namespace OpenAPI
|
||||
{
|
||||
|
||||
/* Delete purchase order by ID
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
virtual ~DeleteOrderRequest() {}
|
||||
void SetupHttpRequest(const FHttpRequestRef& HttpRequest) const final;
|
||||
FString ComputePath() const final;
|
||||
|
||||
|
||||
/* ID of the order that needs to be deleted */
|
||||
FString OrderId;
|
||||
};
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
virtual ~DeleteOrderResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
virtual ~GetInventoryRequest() {}
|
||||
void SetupHttpRequest(const FHttpRequestRef& HttpRequest) const final;
|
||||
FString ComputePath() const final;
|
||||
|
||||
|
||||
};
|
||||
|
||||
class OPENAPI_API OpenAPIStoreApi::GetInventoryResponse : public Response
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
virtual ~GetInventoryResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
TMap<FString, int32> Content;
|
||||
};
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
virtual ~GetOrderByIdRequest() {}
|
||||
void SetupHttpRequest(const FHttpRequestRef& HttpRequest) const final;
|
||||
FString ComputePath() const final;
|
||||
|
||||
|
||||
/* ID of pet that needs to be fetched */
|
||||
int64 OrderId = 0;
|
||||
};
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
virtual ~GetOrderByIdResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
OpenAPIOrder Content;
|
||||
};
|
||||
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
virtual ~PlaceOrderRequest() {}
|
||||
void SetupHttpRequest(const FHttpRequestRef& HttpRequest) const final;
|
||||
FString ComputePath() const final;
|
||||
|
||||
|
||||
/* order placed for purchasing the pet */
|
||||
OpenAPIOrder Body;
|
||||
};
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
virtual ~PlaceOrderResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
OpenAPIOrder Content;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user