Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#201027
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Nov 4, 2020
2 parents 8df07cd + 885fc8e commit 441ca64
Show file tree
Hide file tree
Showing 14 changed files with 457 additions and 32 deletions.
55 changes: 44 additions & 11 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5427,7 +5427,6 @@ namespace PlayFab
GenericErrorCodesCatalogSearchParameterInvalid,
GenericErrorCodesCatalogFeatureDisabled,
GenericErrorCodesCatalogConfigInvalid,
GenericErrorCodesCatalogUnauthorized,
GenericErrorCodesCatalogItemTypeInvalid,
GenericErrorCodesCatalogBadRequest,
GenericErrorCodesCatalogTooManyRequests,
Expand Down Expand Up @@ -5489,6 +5488,10 @@ namespace PlayFab
GenericErrorCodesSegmentManagementInvalidSegmentId,
GenericErrorCodesSegmentManagementInvalidInput,
GenericErrorCodesSegmentManagementInvalidSegmentName,
GenericErrorCodesDeleteSegmentRateLimitExceeded,
GenericErrorCodesCreateSegmentRateLimitExceeded,
GenericErrorCodesUpdateSegmentRateLimitExceeded,
GenericErrorCodesGetSegmentsRateLimitExceeded,
GenericErrorCodesSnapshotNotFound
};

Expand Down Expand Up @@ -8169,11 +8172,6 @@ namespace PlayFab
output = Json::Value("CatalogConfigInvalid");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCatalogUnauthorized)
{
output = Json::Value("CatalogUnauthorized");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCatalogItemTypeInvalid)
{
output = Json::Value("CatalogItemTypeInvalid");
Expand Down Expand Up @@ -8479,6 +8477,26 @@ namespace PlayFab
output = Json::Value("SegmentManagementInvalidSegmentName");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesDeleteSegmentRateLimitExceeded)
{
output = Json::Value("DeleteSegmentRateLimitExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCreateSegmentRateLimitExceeded)
{
output = Json::Value("CreateSegmentRateLimitExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesUpdateSegmentRateLimitExceeded)
{
output = Json::Value("UpdateSegmentRateLimitExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesGetSegmentsRateLimitExceeded)
{
output = Json::Value("GetSegmentsRateLimitExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSnapshotNotFound)
{
output = Json::Value("SnapshotNotFound");
Expand Down Expand Up @@ -11167,11 +11185,6 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesCatalogConfigInvalid;
return;
}
if (inputStr == "CatalogUnauthorized")
{
output = GenericErrorCodes::GenericErrorCodesCatalogUnauthorized;
return;
}
if (inputStr == "CatalogItemTypeInvalid")
{
output = GenericErrorCodes::GenericErrorCodesCatalogItemTypeInvalid;
Expand Down Expand Up @@ -11477,6 +11490,26 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesSegmentManagementInvalidSegmentName;
return;
}
if (inputStr == "DeleteSegmentRateLimitExceeded")
{
output = GenericErrorCodes::GenericErrorCodesDeleteSegmentRateLimitExceeded;
return;
}
if (inputStr == "CreateSegmentRateLimitExceeded")
{
output = GenericErrorCodes::GenericErrorCodesCreateSegmentRateLimitExceeded;
return;
}
if (inputStr == "UpdateSegmentRateLimitExceeded")
{
output = GenericErrorCodes::GenericErrorCodesUpdateSegmentRateLimitExceeded;
return;
}
if (inputStr == "GetSegmentsRateLimitExceeded")
{
output = GenericErrorCodes::GenericErrorCodesGetSegmentsRateLimitExceeded;
return;
}
if (inputStr == "SnapshotNotFound")
{
output = GenericErrorCodes::GenericErrorCodesSnapshotNotFound;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabClientApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace PlayFab
static void CancelTrade(ClientModels::CancelTradeRequest& request, const ProcessApiCallback<ClientModels::CancelTradeResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ConfirmPurchase(ClientModels::ConfirmPurchaseRequest& request, const ProcessApiCallback<ClientModels::ConfirmPurchaseResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ConsumeItem(ClientModels::ConsumeItemRequest& request, const ProcessApiCallback<ClientModels::ConsumeItemResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ConsumeMicrosoftStoreEntitlements(ClientModels::ConsumeMicrosoftStoreEntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumeMicrosoftStoreEntitlementsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ConsumePSNEntitlements(ClientModels::ConsumePSNEntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumePSNEntitlementsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ConsumeXboxEntitlements(ClientModels::ConsumeXboxEntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumeXboxEntitlementsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreateSharedGroup(ClientModels::CreateSharedGroupRequest& request, const ProcessApiCallback<ClientModels::CreateSharedGroupResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -215,6 +216,7 @@ namespace PlayFab
static void OnCancelTradeResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnConfirmPurchaseResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnConsumeItemResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnConsumeMicrosoftStoreEntitlementsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnConsumePSNEntitlementsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnConsumeXboxEntitlementsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreateSharedGroupResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
107 changes: 107 additions & 0 deletions code/include/playfab/PlayFabClientDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -7872,6 +7872,113 @@ namespace PlayFab
}
};

struct MicrosoftStorePayload : public PlayFabBaseModel
{
std::string CollectionsMsIdKey;
std::string UserId;
std::string XboxToken;

MicrosoftStorePayload() :
PlayFabBaseModel(),
CollectionsMsIdKey(),
UserId(),
XboxToken()
{}

MicrosoftStorePayload(const MicrosoftStorePayload& src) :
PlayFabBaseModel(),
CollectionsMsIdKey(src.CollectionsMsIdKey),
UserId(src.UserId),
XboxToken(src.XboxToken)
{}

~MicrosoftStorePayload() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CollectionsMsIdKey; ToJsonUtilS(CollectionsMsIdKey, each_CollectionsMsIdKey); output["CollectionsMsIdKey"] = each_CollectionsMsIdKey;
Json::Value each_UserId; ToJsonUtilS(UserId, each_UserId); output["UserId"] = each_UserId;
Json::Value each_XboxToken; ToJsonUtilS(XboxToken, each_XboxToken); output["XboxToken"] = each_XboxToken;
return output;
}
};

struct ConsumeMicrosoftStoreEntitlementsRequest : public PlayFabRequestCommon
{
std::string CatalogVersion;
std::map<std::string, std::string> CustomTags;
MicrosoftStorePayload MarketplaceSpecificData;

ConsumeMicrosoftStoreEntitlementsRequest() :
PlayFabRequestCommon(),
CatalogVersion(),
CustomTags(),
MarketplaceSpecificData()
{}

ConsumeMicrosoftStoreEntitlementsRequest(const ConsumeMicrosoftStoreEntitlementsRequest& src) :
PlayFabRequestCommon(),
CatalogVersion(src.CatalogVersion),
CustomTags(src.CustomTags),
MarketplaceSpecificData(src.MarketplaceSpecificData)
{}

~ConsumeMicrosoftStoreEntitlementsRequest() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CatalogVersion; ToJsonUtilS(CatalogVersion, each_CatalogVersion); output["CatalogVersion"] = each_CatalogVersion;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_MarketplaceSpecificData; ToJsonUtilO(MarketplaceSpecificData, each_MarketplaceSpecificData); output["MarketplaceSpecificData"] = each_MarketplaceSpecificData;
return output;
}
};

struct ConsumeMicrosoftStoreEntitlementsResponse : public PlayFabResultCommon
{
std::list<ItemInstance> Items;

ConsumeMicrosoftStoreEntitlementsResponse() :
PlayFabResultCommon(),
Items()
{}

ConsumeMicrosoftStoreEntitlementsResponse(const ConsumeMicrosoftStoreEntitlementsResponse& src) :
PlayFabResultCommon(),
Items(src.Items)
{}

~ConsumeMicrosoftStoreEntitlementsResponse() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_Items; ToJsonUtilO(Items, each_Items); output["Items"] = each_Items;
return output;
}
};

struct ConsumePSNEntitlementsRequest : public PlayFabRequestCommon
{
std::string CatalogVersion;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabClientInstanceApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace PlayFab
void CancelTrade(ClientModels::CancelTradeRequest& request, const ProcessApiCallback<ClientModels::CancelTradeResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void ConfirmPurchase(ClientModels::ConfirmPurchaseRequest& request, const ProcessApiCallback<ClientModels::ConfirmPurchaseResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void ConsumeItem(ClientModels::ConsumeItemRequest& request, const ProcessApiCallback<ClientModels::ConsumeItemResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void ConsumeMicrosoftStoreEntitlements(ClientModels::ConsumeMicrosoftStoreEntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumeMicrosoftStoreEntitlementsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void ConsumePSNEntitlements(ClientModels::ConsumePSNEntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumePSNEntitlementsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void ConsumeXboxEntitlements(ClientModels::ConsumeXboxEntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumeXboxEntitlementsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreateSharedGroup(ClientModels::CreateSharedGroupRequest& request, const ProcessApiCallback<ClientModels::CreateSharedGroupResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -229,6 +230,7 @@ namespace PlayFab
void OnCancelTradeResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnConfirmPurchaseResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnConsumeItemResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnConsumeMicrosoftStoreEntitlementsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnConsumePSNEntitlementsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnConsumeXboxEntitlementsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreateSharedGroupResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
5 changes: 4 additions & 1 deletion code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ namespace PlayFab
PlayFabErrorCatalogSearchParameterInvalid = 4008,
PlayFabErrorCatalogFeatureDisabled = 4009,
PlayFabErrorCatalogConfigInvalid = 4010,
PlayFabErrorCatalogUnauthorized = 4011,
PlayFabErrorCatalogItemTypeInvalid = 4012,
PlayFabErrorCatalogBadRequest = 4013,
PlayFabErrorCatalogTooManyRequests = 4014,
Expand Down Expand Up @@ -608,6 +607,10 @@ namespace PlayFab
PlayFabErrorSegmentManagementInvalidSegmentId = 10004,
PlayFabErrorSegmentManagementInvalidInput = 10005,
PlayFabErrorSegmentManagementInvalidSegmentName = 10006,
PlayFabErrorDeleteSegmentRateLimitExceeded = 10007,
PlayFabErrorCreateSegmentRateLimitExceeded = 10008,
PlayFabErrorUpdateSegmentRateLimitExceeded = 10009,
PlayFabErrorGetSegmentsRateLimitExceeded = 10010,
PlayFabErrorSnapshotNotFound = 11000,
};

Expand Down
Loading

0 comments on commit 441ca64

Please sign in to comment.