Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#210111
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Jan 11, 2021
2 parents 639718d + 7a4f834 commit 14e8308
Show file tree
Hide file tree
Showing 19 changed files with 385 additions and 16 deletions.
16 changes: 11 additions & 5 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5495,6 +5495,7 @@ namespace PlayFab
GenericErrorCodesExperimentationExclusionGroupInsufficientCapacity,
GenericErrorCodesExperimentationExclusionGroupCannotDelete,
GenericErrorCodesExperimentationExclusionGroupInvalidTrafficAllocation,
GenericErrorCodesExperimentationExclusionGroupInvalidName,
GenericErrorCodesMaxActionDepthExceeded,
GenericErrorCodesTitleNotOnUpdatedPricingPlan,
GenericErrorCodesSegmentManagementTitleNotInFlight,
Expand Down Expand Up @@ -8528,6 +8529,11 @@ namespace PlayFab
output = Json::Value("ExperimentationExclusionGroupInvalidTrafficAllocation");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInvalidName)
{
output = Json::Value("ExperimentationExclusionGroupInvalidName");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded)
{
output = Json::Value("MaxActionDepthExceeded");
Expand Down Expand Up @@ -11621,6 +11627,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInvalidTrafficAllocation;
return;
}
if (inputStr == "ExperimentationExclusionGroupInvalidName")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInvalidName;
return;
}
if (inputStr == "MaxActionDepthExceeded")
{
output = GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded;
Expand Down Expand Up @@ -20957,33 +20968,28 @@ namespace PlayFab

struct LinkedUserAccountSegmentFilter : public PlayFabBaseModel
{
Boxed<SegmentFilterComparison> Comparison;
Boxed<SegmentLoginIdentityProvider> LoginProvider;

LinkedUserAccountSegmentFilter() :
PlayFabBaseModel(),
Comparison(),
LoginProvider()
{}

LinkedUserAccountSegmentFilter(const LinkedUserAccountSegmentFilter& src) :
PlayFabBaseModel(),
Comparison(src.Comparison),
LoginProvider(src.LoginProvider)
{}

~LinkedUserAccountSegmentFilter() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilE(input["Comparison"], Comparison);
FromJsonUtilE(input["LoginProvider"], LoginProvider);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_Comparison; ToJsonUtilE(Comparison, each_Comparison); output["Comparison"] = each_Comparison;
Json::Value each_LoginProvider; ToJsonUtilE(LoginProvider, each_LoginProvider); output["LoginProvider"] = each_LoginProvider;
return output;
}
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 @@ -45,6 +45,7 @@ namespace PlayFab
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 ConsumePS5Entitlements(ClientModels::ConsumePS5EntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumePS5EntitlementsResult> 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 @@ -217,6 +218,7 @@ namespace PlayFab
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 OnConsumePS5EntitlementsResult(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
102 changes: 102 additions & 0 deletions code/include/playfab/PlayFabClientDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -7979,6 +7979,108 @@ namespace PlayFab
}
};

struct PlayStation5Payload : public PlayFabBaseModel
{
std::list<std::string> Ids;
std::string ServiceLabel;

PlayStation5Payload() :
PlayFabBaseModel(),
Ids(),
ServiceLabel()
{}

PlayStation5Payload(const PlayStation5Payload& src) :
PlayFabBaseModel(),
Ids(src.Ids),
ServiceLabel(src.ServiceLabel)
{}

~PlayStation5Payload() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_Ids; ToJsonUtilS(Ids, each_Ids); output["Ids"] = each_Ids;
Json::Value each_ServiceLabel; ToJsonUtilS(ServiceLabel, each_ServiceLabel); output["ServiceLabel"] = each_ServiceLabel;
return output;
}
};

struct ConsumePS5EntitlementsRequest : public PlayFabRequestCommon
{
std::string CatalogVersion;
std::map<std::string, std::string> CustomTags;
PlayStation5Payload MarketplaceSpecificData;

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

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

~ConsumePS5EntitlementsRequest() = 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 ConsumePS5EntitlementsResult : public PlayFabResultCommon
{
std::list<ItemInstance> Items;

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

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

~ConsumePS5EntitlementsResult() = 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 @@ -63,6 +63,7 @@ namespace PlayFab
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 ConsumePS5Entitlements(ClientModels::ConsumePS5EntitlementsRequest& request, const ProcessApiCallback<ClientModels::ConsumePS5EntitlementsResult> 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 @@ -231,6 +232,7 @@ namespace PlayFab
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 OnConsumePS5EntitlementsResult(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
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ namespace PlayFab
PlayFabErrorExperimentationExclusionGroupInsufficientCapacity = 7019,
PlayFabErrorExperimentationExclusionGroupCannotDelete = 7020,
PlayFabErrorExperimentationExclusionGroupInvalidTrafficAllocation = 7021,
PlayFabErrorExperimentationExclusionGroupInvalidName = 7022,
PlayFabErrorMaxActionDepthExceeded = 8000,
PlayFabErrorTitleNotOnUpdatedPricingPlan = 9000,
PlayFabErrorSegmentManagementTitleNotInFlight = 10000,
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabMultiplayerApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ namespace PlayFab
static void ShutdownMultiplayerServer(MultiplayerModels::ShutdownMultiplayerServerRequest& request, const ProcessApiCallback<MultiplayerModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UntagContainerImage(MultiplayerModels::UntagContainerImageRequest& request, const ProcessApiCallback<MultiplayerModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UpdateBuildAlias(MultiplayerModels::UpdateBuildAliasRequest& request, const ProcessApiCallback<MultiplayerModels::BuildAliasDetailsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UpdateBuildName(MultiplayerModels::UpdateBuildNameRequest& request, const ProcessApiCallback<MultiplayerModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UpdateBuildRegion(MultiplayerModels::UpdateBuildRegionRequest& request, const ProcessApiCallback<MultiplayerModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UpdateBuildRegions(MultiplayerModels::UpdateBuildRegionsRequest& request, const ProcessApiCallback<MultiplayerModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UploadCertificate(MultiplayerModels::UploadCertificateRequest& request, const ProcessApiCallback<MultiplayerModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -146,6 +147,7 @@ namespace PlayFab
static void OnShutdownMultiplayerServerResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUntagContainerImageResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUpdateBuildAliasResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUpdateBuildNameResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUpdateBuildRegionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUpdateBuildRegionsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUploadCertificateResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
39 changes: 39 additions & 0 deletions code/include/playfab/PlayFabMultiplayerDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -6342,6 +6342,45 @@ namespace PlayFab
}
};

struct UpdateBuildNameRequest : public PlayFabRequestCommon
{
std::string BuildId;
std::string BuildName;
std::map<std::string, std::string> CustomTags;

UpdateBuildNameRequest() :
PlayFabRequestCommon(),
BuildId(),
BuildName(),
CustomTags()
{}

UpdateBuildNameRequest(const UpdateBuildNameRequest& src) :
PlayFabRequestCommon(),
BuildId(src.BuildId),
BuildName(src.BuildName),
CustomTags(src.CustomTags)
{}

~UpdateBuildNameRequest() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_BuildId; ToJsonUtilS(BuildId, each_BuildId); output["BuildId"] = each_BuildId;
Json::Value each_BuildName; ToJsonUtilS(BuildName, each_BuildName); output["BuildName"] = each_BuildName;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
return output;
}
};

struct UpdateBuildRegionRequest : public PlayFabRequestCommon
{
std::string BuildId;
Expand Down
Loading

0 comments on commit 14e8308

Please sign in to comment.