Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240401
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Apr 1, 2024
2 parents bd56f1c + 0166924 commit e0e231d
Show file tree
Hide file tree
Showing 11 changed files with 414 additions and 12 deletions.
4 changes: 4 additions & 0 deletions code/include/playfab/PlayFabEconomyApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ namespace PlayFab
static void DeleteInventoryItems(EconomyModels::DeleteInventoryItemsRequest& request, const ProcessApiCallback<EconomyModels::DeleteInventoryItemsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void DeleteItem(EconomyModels::DeleteItemRequest& request, const ProcessApiCallback<EconomyModels::DeleteItemResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ExecuteInventoryOperations(EconomyModels::ExecuteInventoryOperationsRequest& request, const ProcessApiCallback<EconomyModels::ExecuteInventoryOperationsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ExecuteTransferOperations(EconomyModels::ExecuteTransferOperationsRequest& request, const ProcessApiCallback<EconomyModels::ExecuteTransferOperationsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetCatalogConfig(EconomyModels::GetCatalogConfigRequest& request, const ProcessApiCallback<EconomyModels::GetCatalogConfigResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetDraftItem(EconomyModels::GetDraftItemRequest& request, const ProcessApiCallback<EconomyModels::GetDraftItemResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetDraftItems(EconomyModels::GetDraftItemsRequest& request, const ProcessApiCallback<EconomyModels::GetDraftItemsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetEntityDraftItems(EconomyModels::GetEntityDraftItemsRequest& request, const ProcessApiCallback<EconomyModels::GetEntityDraftItemsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetEntityItemReview(EconomyModels::GetEntityItemReviewRequest& request, const ProcessApiCallback<EconomyModels::GetEntityItemReviewResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetInventoryCollectionIds(EconomyModels::GetInventoryCollectionIdsRequest& request, const ProcessApiCallback<EconomyModels::GetInventoryCollectionIdsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetInventoryItems(EconomyModels::GetInventoryItemsRequest& request, const ProcessApiCallback<EconomyModels::GetInventoryItemsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetInventoryOperationStatus(EconomyModels::GetInventoryOperationStatusRequest& request, const ProcessApiCallback<EconomyModels::GetInventoryOperationStatusResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetItem(EconomyModels::GetItemRequest& request, const ProcessApiCallback<EconomyModels::GetItemResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetItemContainers(EconomyModels::GetItemContainersRequest& request, const ProcessApiCallback<EconomyModels::GetItemContainersResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetItemModerationState(EconomyModels::GetItemModerationStateRequest& request, const ProcessApiCallback<EconomyModels::GetItemModerationStateResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -87,13 +89,15 @@ namespace PlayFab
static void OnDeleteInventoryItemsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnDeleteItemResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnExecuteInventoryOperationsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnExecuteTransferOperationsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetCatalogConfigResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetDraftItemResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetDraftItemsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetEntityDraftItemsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetEntityItemReviewResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetInventoryCollectionIdsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetInventoryItemsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetInventoryOperationStatusResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetItemResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetItemContainersResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetItemModerationStateResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
196 changes: 196 additions & 0 deletions code/include/playfab/PlayFabEconomyDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5467,6 +5467,129 @@ namespace PlayFab
}
};

struct ExecuteTransferOperationsRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;
std::string GivingCollectionId;
Boxed<EntityKey> GivingEntity;
std::string GivingETag;
std::string IdempotencyId;
std::list<TransferInventoryItemsOperation> Operations;
std::string ReceivingCollectionId;
Boxed<EntityKey> ReceivingEntity;

ExecuteTransferOperationsRequest() :
PlayFabRequestCommon(),
CustomTags(),
GivingCollectionId(),
GivingEntity(),
GivingETag(),
IdempotencyId(),
Operations(),
ReceivingCollectionId(),
ReceivingEntity()
{}

ExecuteTransferOperationsRequest(const ExecuteTransferOperationsRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags),
GivingCollectionId(src.GivingCollectionId),
GivingEntity(src.GivingEntity),
GivingETag(src.GivingETag),
IdempotencyId(src.IdempotencyId),
Operations(src.Operations),
ReceivingCollectionId(src.ReceivingCollectionId),
ReceivingEntity(src.ReceivingEntity)
{}

~ExecuteTransferOperationsRequest() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilS(input["GivingCollectionId"], GivingCollectionId);
FromJsonUtilO(input["GivingEntity"], GivingEntity);
FromJsonUtilS(input["GivingETag"], GivingETag);
FromJsonUtilS(input["IdempotencyId"], IdempotencyId);
FromJsonUtilO(input["Operations"], Operations);
FromJsonUtilS(input["ReceivingCollectionId"], ReceivingCollectionId);
FromJsonUtilO(input["ReceivingEntity"], ReceivingEntity);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_GivingCollectionId; ToJsonUtilS(GivingCollectionId, each_GivingCollectionId); output["GivingCollectionId"] = each_GivingCollectionId;
Json::Value each_GivingEntity; ToJsonUtilO(GivingEntity, each_GivingEntity); output["GivingEntity"] = each_GivingEntity;
Json::Value each_GivingETag; ToJsonUtilS(GivingETag, each_GivingETag); output["GivingETag"] = each_GivingETag;
Json::Value each_IdempotencyId; ToJsonUtilS(IdempotencyId, each_IdempotencyId); output["IdempotencyId"] = each_IdempotencyId;
Json::Value each_Operations; ToJsonUtilO(Operations, each_Operations); output["Operations"] = each_Operations;
Json::Value each_ReceivingCollectionId; ToJsonUtilS(ReceivingCollectionId, each_ReceivingCollectionId); output["ReceivingCollectionId"] = each_ReceivingCollectionId;
Json::Value each_ReceivingEntity; ToJsonUtilO(ReceivingEntity, each_ReceivingEntity); output["ReceivingEntity"] = each_ReceivingEntity;
return output;
}
};

struct ExecuteTransferOperationsResponse : public PlayFabResultCommon
{
std::string GivingETag;
std::list<std::string> GivingTransactionIds;
std::string IdempotencyId;
std::string OperationStatus;
std::string OperationToken;
std::string ReceivingETag;
std::list<std::string> ReceivingTransactionIds;

ExecuteTransferOperationsResponse() :
PlayFabResultCommon(),
GivingETag(),
GivingTransactionIds(),
IdempotencyId(),
OperationStatus(),
OperationToken(),
ReceivingETag(),
ReceivingTransactionIds()
{}

ExecuteTransferOperationsResponse(const ExecuteTransferOperationsResponse& src) :
PlayFabResultCommon(),
GivingETag(src.GivingETag),
GivingTransactionIds(src.GivingTransactionIds),
IdempotencyId(src.IdempotencyId),
OperationStatus(src.OperationStatus),
OperationToken(src.OperationToken),
ReceivingETag(src.ReceivingETag),
ReceivingTransactionIds(src.ReceivingTransactionIds)
{}

~ExecuteTransferOperationsResponse() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["GivingETag"], GivingETag);
FromJsonUtilS(input["GivingTransactionIds"], GivingTransactionIds);
FromJsonUtilS(input["IdempotencyId"], IdempotencyId);
FromJsonUtilS(input["OperationStatus"], OperationStatus);
FromJsonUtilS(input["OperationToken"], OperationToken);
FromJsonUtilS(input["ReceivingETag"], ReceivingETag);
FromJsonUtilS(input["ReceivingTransactionIds"], ReceivingTransactionIds);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_GivingETag; ToJsonUtilS(GivingETag, each_GivingETag); output["GivingETag"] = each_GivingETag;
Json::Value each_GivingTransactionIds; ToJsonUtilS(GivingTransactionIds, each_GivingTransactionIds); output["GivingTransactionIds"] = each_GivingTransactionIds;
Json::Value each_IdempotencyId; ToJsonUtilS(IdempotencyId, each_IdempotencyId); output["IdempotencyId"] = each_IdempotencyId;
Json::Value each_OperationStatus; ToJsonUtilS(OperationStatus, each_OperationStatus); output["OperationStatus"] = each_OperationStatus;
Json::Value each_OperationToken; ToJsonUtilS(OperationToken, each_OperationToken); output["OperationToken"] = each_OperationToken;
Json::Value each_ReceivingETag; ToJsonUtilS(ReceivingETag, each_ReceivingETag); output["ReceivingETag"] = each_ReceivingETag;
Json::Value each_ReceivingTransactionIds; ToJsonUtilS(ReceivingTransactionIds, each_ReceivingTransactionIds); output["ReceivingTransactionIds"] = each_ReceivingTransactionIds;
return output;
}
};

struct GetCatalogConfigRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;
Expand Down Expand Up @@ -6092,6 +6215,74 @@ namespace PlayFab
}
};

struct GetInventoryOperationStatusRequest : public PlayFabRequestCommon
{
std::string CollectionId;
std::map<std::string, std::string> CustomTags;
Boxed<EntityKey> Entity;

GetInventoryOperationStatusRequest() :
PlayFabRequestCommon(),
CollectionId(),
CustomTags(),
Entity()
{}

GetInventoryOperationStatusRequest(const GetInventoryOperationStatusRequest& src) :
PlayFabRequestCommon(),
CollectionId(src.CollectionId),
CustomTags(src.CustomTags),
Entity(src.Entity)
{}

~GetInventoryOperationStatusRequest() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["CollectionId"], CollectionId);
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilO(input["Entity"], Entity);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CollectionId; ToJsonUtilS(CollectionId, each_CollectionId); output["CollectionId"] = each_CollectionId;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_Entity; ToJsonUtilO(Entity, each_Entity); output["Entity"] = each_Entity;
return output;
}
};

struct GetInventoryOperationStatusResponse : public PlayFabResultCommon
{
std::string OperationStatus;

GetInventoryOperationStatusResponse() :
PlayFabResultCommon(),
OperationStatus()
{}

GetInventoryOperationStatusResponse(const GetInventoryOperationStatusResponse& src) :
PlayFabResultCommon(),
OperationStatus(src.OperationStatus)
{}

~GetInventoryOperationStatusResponse() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["OperationStatus"], OperationStatus);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_OperationStatus; ToJsonUtilS(OperationStatus, each_OperationStatus); output["OperationStatus"] = each_OperationStatus;
return output;
}
};

struct GetItemContainersRequest : public PlayFabRequestCommon
{
Boxed<CatalogAlternateId> AlternateId;
Expand Down Expand Up @@ -8836,6 +9027,7 @@ namespace PlayFab
std::list<std::string> GivingTransactionIds;
std::string IdempotencyId;
std::string OperationStatus;
std::string OperationToken;
std::list<std::string> ReceivingTransactionIds;

TransferInventoryItemsResponse() :
Expand All @@ -8844,6 +9036,7 @@ namespace PlayFab
GivingTransactionIds(),
IdempotencyId(),
OperationStatus(),
OperationToken(),
ReceivingTransactionIds()
{}

Expand All @@ -8853,6 +9046,7 @@ namespace PlayFab
GivingTransactionIds(src.GivingTransactionIds),
IdempotencyId(src.IdempotencyId),
OperationStatus(src.OperationStatus),
OperationToken(src.OperationToken),
ReceivingTransactionIds(src.ReceivingTransactionIds)
{}

Expand All @@ -8864,6 +9058,7 @@ namespace PlayFab
FromJsonUtilS(input["GivingTransactionIds"], GivingTransactionIds);
FromJsonUtilS(input["IdempotencyId"], IdempotencyId);
FromJsonUtilS(input["OperationStatus"], OperationStatus);
FromJsonUtilS(input["OperationToken"], OperationToken);
FromJsonUtilS(input["ReceivingTransactionIds"], ReceivingTransactionIds);
}

Expand All @@ -8874,6 +9069,7 @@ namespace PlayFab
Json::Value each_GivingTransactionIds; ToJsonUtilS(GivingTransactionIds, each_GivingTransactionIds); output["GivingTransactionIds"] = each_GivingTransactionIds;
Json::Value each_IdempotencyId; ToJsonUtilS(IdempotencyId, each_IdempotencyId); output["IdempotencyId"] = each_IdempotencyId;
Json::Value each_OperationStatus; ToJsonUtilS(OperationStatus, each_OperationStatus); output["OperationStatus"] = each_OperationStatus;
Json::Value each_OperationToken; ToJsonUtilS(OperationToken, each_OperationToken); output["OperationToken"] = each_OperationToken;
Json::Value each_ReceivingTransactionIds; ToJsonUtilS(ReceivingTransactionIds, each_ReceivingTransactionIds); output["ReceivingTransactionIds"] = each_ReceivingTransactionIds;
return output;
}
Expand Down
Loading

0 comments on commit e0e231d

Please sign in to comment.