From 8710e8dd4ca03d685cafbaa814b156cda193615e Mon Sep 17 00:00:00 2001 From: PlayFab SDK Team Date: Tue, 30 Apr 2024 02:45:37 +0000 Subject: [PATCH] https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240426 --- code/include/playfab/PlayFabAdminDataModels.h | 516 +++++++++++++++--- code/include/playfab/PlayFabCloudScriptApi.h | 4 + .../playfab/PlayFabCloudScriptDataModels.h | 125 ++++- .../playfab/PlayFabCloudScriptInstanceApi.h | 4 + .../playfab/PlayFabEconomyDataModels.h | 68 +++ code/include/playfab/PlayFabError.h | 75 ++- code/include/playfab/PlayFabMultiplayerApi.h | 6 + .../playfab/PlayFabMultiplayerDataModels.h | 317 +++++++++++ .../playfab/PlayFabMultiplayerInstanceApi.h | 6 + .../include/playfab/PlayFabServerDataModels.h | 516 +++++++++++++++--- code/source/playfab/PlayFabCloudScriptApi.cpp | 98 ++++ .../playfab/PlayFabCloudScriptInstanceApi.cpp | 100 ++++ code/source/playfab/PlayFabMultiplayerApi.cpp | 147 +++++ .../playfab/PlayFabMultiplayerInstanceApi.cpp | 150 +++++ code/source/playfab/PlayFabSettings.cpp | 6 +- com.playfab.xplatcppsdk.v141.autopkg | 4 +- com.playfab.xplatcppsdk.v141.nuspec | 4 +- com.playfab.xplatcppsdk.v142.autopkg | 4 +- com.playfab.xplatcppsdk.v142.nuspec | 4 +- com.playfab.xplatxboxsdk.v141.autopkg | 4 +- 20 files changed, 1973 insertions(+), 185 deletions(-) diff --git a/code/include/playfab/PlayFabAdminDataModels.h b/code/include/playfab/PlayFabAdminDataModels.h index bc830df9..a24692ca 100644 --- a/code/include/playfab/PlayFabAdminDataModels.h +++ b/code/include/playfab/PlayFabAdminDataModels.h @@ -5464,6 +5464,12 @@ namespace PlayFab GenericErrorCodesNoLinkedStatisticToLeaderboard, GenericErrorCodesStatDefinitionAlreadyLinkedToLeaderboard, GenericErrorCodesLinkingStatsNotAllowedForEntityType, + GenericErrorCodesLeaderboardCountLimitExceeded, + GenericErrorCodesLeaderboardSizeLimitExceeded, + GenericErrorCodesLeaderboardDefinitionModificationNotAllowedWhileLinked, + GenericErrorCodesStatisticDefinitionModificationNotAllowedWhileLinked, + GenericErrorCodesLeaderboardUpdateNotAllowedWhileLinked, + GenericErrorCodesCloudScriptAzureFunctionsEventHubRequestError, GenericErrorCodesMatchmakingEntityInvalid, GenericErrorCodesMatchmakingPlayerAttributesInvalid, GenericErrorCodesMatchmakingQueueNotFound, @@ -5664,29 +5670,52 @@ namespace PlayFab GenericErrorCodesCopilotDisabled, GenericErrorCodesCopilotInvalidRequest, GenericErrorCodesTrueSkillUnauthorized, - GenericErrorCodesTrueSkillBadRequest, + GenericErrorCodesTrueSkillInvalidTitleId, + GenericErrorCodesTrueSkillInvalidScenarioId, + GenericErrorCodesTrueSkillInvalidModelId, + GenericErrorCodesTrueSkillInvalidModelName, + GenericErrorCodesTrueSkillInvalidPlayerIds, + GenericErrorCodesTrueSkillInvalidEntityKey, + GenericErrorCodesTrueSkillInvalidConditionKey, + GenericErrorCodesTrueSkillInvalidConditionValue, + GenericErrorCodesTrueSkillInvalidConditionAffinityWeight, + GenericErrorCodesTrueSkillInvalidEventName, + GenericErrorCodesTrueSkillMatchResultCreated, GenericErrorCodesTrueSkillMatchResultAlreadySubmitted, + GenericErrorCodesTrueSkillBadPlayerIdInMatchResult, + GenericErrorCodesTrueSkillInvalidBotIdInMatchResult, GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult, - GenericErrorCodesTrueSkillInvalidRanksInMatchResult, - GenericErrorCodesTrueSkillNoWinnerInMatchResult, - GenericErrorCodesTrueSkillMissingRequiredCondition, - GenericErrorCodesTrueSkillMissingRequiredEvent, - GenericErrorCodesTrueSkillUnknownEventName, - GenericErrorCodesTrueSkillUnknownConditionKey, - GenericErrorCodesTrueSkillUnknownConditionValue, - GenericErrorCodesTrueSkillUnknownModelId, GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam, GenericErrorCodesTrueSkillPlayersInMatchResultExceedingLimit, GenericErrorCodesTrueSkillInvalidPreMatchPartyInMatchResult, GenericErrorCodesTrueSkillInvalidTimestampInMatchResult, + GenericErrorCodesTrueSkillStartTimeMissingInMatchResult, + GenericErrorCodesTrueSkillEndTimeMissingInMatchResult, GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult, GenericErrorCodesTrueSkillNoTeamInMatchResult, GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult, + GenericErrorCodesTrueSkillInvalidRanksInMatchResult, + GenericErrorCodesTrueSkillNoWinnerInMatchResult, + GenericErrorCodesTrueSkillMissingRequiredCondition, + GenericErrorCodesTrueSkillMissingRequiredEvent, + GenericErrorCodesTrueSkillUnknownEventName, + GenericErrorCodesTrueSkillInvalidEventCount, + GenericErrorCodesTrueSkillUnknownConditionKey, + GenericErrorCodesTrueSkillUnknownConditionValue, GenericErrorCodesTrueSkillScenarioConfigDoesNotExist, + GenericErrorCodesTrueSkillUnknownModelId, GenericErrorCodesTrueSkillNoModelInScenario, GenericErrorCodesTrueSkillNotSupportedForTitle, GenericErrorCodesTrueSkillModelIsNotActive, GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills, + GenericErrorCodesTrueSkillInvalidMaxIterations, + GenericErrorCodesTrueSkillEndTimeBeforeStartTime, + GenericErrorCodesTrueSkillInvalidJobId, + GenericErrorCodesTrueSkillInvalidMetadataId, + GenericErrorCodesTrueSkillMissingBuildVerison, + GenericErrorCodesTrueSkillJobAlreadyExists, + GenericErrorCodesTrueSkillJobNotFound, + GenericErrorCodesTrueSkillOperationCanceled, GenericErrorCodesStateShareUnauthorized, GenericErrorCodesStateShareStateNotFound, GenericErrorCodesStateShareLinkNotFound @@ -8499,6 +8528,36 @@ namespace PlayFab output = Json::Value("LinkingStatsNotAllowedForEntityType"); return; } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardCountLimitExceeded) + { + output = Json::Value("LeaderboardCountLimitExceeded"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardSizeLimitExceeded) + { + output = Json::Value("LeaderboardSizeLimitExceeded"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardDefinitionModificationNotAllowedWhileLinked) + { + output = Json::Value("LeaderboardDefinitionModificationNotAllowedWhileLinked"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesStatisticDefinitionModificationNotAllowedWhileLinked) + { + output = Json::Value("StatisticDefinitionModificationNotAllowedWhileLinked"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardUpdateNotAllowedWhileLinked) + { + output = Json::Value("LeaderboardUpdateNotAllowedWhileLinked"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesCloudScriptAzureFunctionsEventHubRequestError) + { + output = Json::Value("CloudScriptAzureFunctionsEventHubRequestError"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid) { output = Json::Value("MatchmakingEntityInvalid"); @@ -9499,59 +9558,79 @@ namespace PlayFab output = Json::Value("TrueSkillUnauthorized"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillBadRequest) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTitleId) { - output = Json::Value("TrueSkillBadRequest"); + output = Json::Value("TrueSkillInvalidTitleId"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidScenarioId) { - output = Json::Value("TrueSkillMatchResultAlreadySubmitted"); + output = Json::Value("TrueSkillInvalidScenarioId"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelId) { - output = Json::Value("TrueSkillDuplicatePlayerInMatchResult"); + output = Json::Value("TrueSkillInvalidModelId"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelName) { - output = Json::Value("TrueSkillInvalidRanksInMatchResult"); + output = Json::Value("TrueSkillInvalidModelName"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerIds) { - output = Json::Value("TrueSkillNoWinnerInMatchResult"); + output = Json::Value("TrueSkillInvalidPlayerIds"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEntityKey) { - output = Json::Value("TrueSkillMissingRequiredCondition"); + output = Json::Value("TrueSkillInvalidEntityKey"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionKey) { - output = Json::Value("TrueSkillMissingRequiredEvent"); + output = Json::Value("TrueSkillInvalidConditionKey"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionValue) { - output = Json::Value("TrueSkillUnknownEventName"); + output = Json::Value("TrueSkillInvalidConditionValue"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionAffinityWeight) { - output = Json::Value("TrueSkillUnknownConditionKey"); + output = Json::Value("TrueSkillInvalidConditionAffinityWeight"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventName) { - output = Json::Value("TrueSkillUnknownConditionValue"); + output = Json::Value("TrueSkillInvalidEventName"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultCreated) { - output = Json::Value("TrueSkillUnknownModelId"); + output = Json::Value("TrueSkillMatchResultCreated"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted) + { + output = Json::Value("TrueSkillMatchResultAlreadySubmitted"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillBadPlayerIdInMatchResult) + { + output = Json::Value("TrueSkillBadPlayerIdInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidBotIdInMatchResult) + { + output = Json::Value("TrueSkillInvalidBotIdInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult) + { + output = Json::Value("TrueSkillDuplicatePlayerInMatchResult"); return; } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam) @@ -9574,6 +9653,16 @@ namespace PlayFab output = Json::Value("TrueSkillInvalidTimestampInMatchResult"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillStartTimeMissingInMatchResult) + { + output = Json::Value("TrueSkillStartTimeMissingInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeMissingInMatchResult) + { + output = Json::Value("TrueSkillEndTimeMissingInMatchResult"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult) { output = Json::Value("TrueSkillInvalidPlayerSecondsPlayedInMatchResult"); @@ -9589,11 +9678,56 @@ namespace PlayFab output = Json::Value("TrueSkillNotEnoughTeamsInMatchResult"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult) + { + output = Json::Value("TrueSkillInvalidRanksInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult) + { + output = Json::Value("TrueSkillNoWinnerInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition) + { + output = Json::Value("TrueSkillMissingRequiredCondition"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent) + { + output = Json::Value("TrueSkillMissingRequiredEvent"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName) + { + output = Json::Value("TrueSkillUnknownEventName"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventCount) + { + output = Json::Value("TrueSkillInvalidEventCount"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey) + { + output = Json::Value("TrueSkillUnknownConditionKey"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue) + { + output = Json::Value("TrueSkillUnknownConditionValue"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillScenarioConfigDoesNotExist) { output = Json::Value("TrueSkillScenarioConfigDoesNotExist"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId) + { + output = Json::Value("TrueSkillUnknownModelId"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoModelInScenario) { output = Json::Value("TrueSkillNoModelInScenario"); @@ -9614,6 +9748,46 @@ namespace PlayFab output = Json::Value("TrueSkillUnauthorizedToQueryOtherPlayerSkills"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMaxIterations) + { + output = Json::Value("TrueSkillInvalidMaxIterations"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeBeforeStartTime) + { + output = Json::Value("TrueSkillEndTimeBeforeStartTime"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidJobId) + { + output = Json::Value("TrueSkillInvalidJobId"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMetadataId) + { + output = Json::Value("TrueSkillInvalidMetadataId"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingBuildVerison) + { + output = Json::Value("TrueSkillMissingBuildVerison"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillJobAlreadyExists) + { + output = Json::Value("TrueSkillJobAlreadyExists"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillJobNotFound) + { + output = Json::Value("TrueSkillJobNotFound"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillOperationCanceled) + { + output = Json::Value("TrueSkillOperationCanceled"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesStateShareUnauthorized) { output = Json::Value("StateShareUnauthorized"); @@ -12442,6 +12616,36 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesLinkingStatsNotAllowedForEntityType; return; } + if (inputStr == "LeaderboardCountLimitExceeded") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardCountLimitExceeded; + return; + } + if (inputStr == "LeaderboardSizeLimitExceeded") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardSizeLimitExceeded; + return; + } + if (inputStr == "LeaderboardDefinitionModificationNotAllowedWhileLinked") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardDefinitionModificationNotAllowedWhileLinked; + return; + } + if (inputStr == "StatisticDefinitionModificationNotAllowedWhileLinked") + { + output = GenericErrorCodes::GenericErrorCodesStatisticDefinitionModificationNotAllowedWhileLinked; + return; + } + if (inputStr == "LeaderboardUpdateNotAllowedWhileLinked") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardUpdateNotAllowedWhileLinked; + return; + } + if (inputStr == "CloudScriptAzureFunctionsEventHubRequestError") + { + output = GenericErrorCodes::GenericErrorCodesCloudScriptAzureFunctionsEventHubRequestError; + return; + } if (inputStr == "MatchmakingEntityInvalid") { output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid; @@ -13442,59 +13646,79 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillUnauthorized; return; } - if (inputStr == "TrueSkillBadRequest") + if (inputStr == "TrueSkillInvalidTitleId") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillBadRequest; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTitleId; return; } - if (inputStr == "TrueSkillMatchResultAlreadySubmitted") + if (inputStr == "TrueSkillInvalidScenarioId") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidScenarioId; return; } - if (inputStr == "TrueSkillDuplicatePlayerInMatchResult") + if (inputStr == "TrueSkillInvalidModelId") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelId; return; } - if (inputStr == "TrueSkillInvalidRanksInMatchResult") + if (inputStr == "TrueSkillInvalidModelName") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelName; return; } - if (inputStr == "TrueSkillNoWinnerInMatchResult") + if (inputStr == "TrueSkillInvalidPlayerIds") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerIds; return; } - if (inputStr == "TrueSkillMissingRequiredCondition") + if (inputStr == "TrueSkillInvalidEntityKey") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEntityKey; return; } - if (inputStr == "TrueSkillMissingRequiredEvent") + if (inputStr == "TrueSkillInvalidConditionKey") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionKey; return; } - if (inputStr == "TrueSkillUnknownEventName") + if (inputStr == "TrueSkillInvalidConditionValue") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionValue; return; } - if (inputStr == "TrueSkillUnknownConditionKey") + if (inputStr == "TrueSkillInvalidConditionAffinityWeight") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionAffinityWeight; return; } - if (inputStr == "TrueSkillUnknownConditionValue") + if (inputStr == "TrueSkillInvalidEventName") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventName; return; } - if (inputStr == "TrueSkillUnknownModelId") + if (inputStr == "TrueSkillMatchResultCreated") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId; + output = GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultCreated; + return; + } + if (inputStr == "TrueSkillMatchResultAlreadySubmitted") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted; + return; + } + if (inputStr == "TrueSkillBadPlayerIdInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillBadPlayerIdInMatchResult; + return; + } + if (inputStr == "TrueSkillInvalidBotIdInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidBotIdInMatchResult; + return; + } + if (inputStr == "TrueSkillDuplicatePlayerInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult; return; } if (inputStr == "TrueSkillNoPlayerInMatchResultTeam") @@ -13517,6 +13741,16 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTimestampInMatchResult; return; } + if (inputStr == "TrueSkillStartTimeMissingInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillStartTimeMissingInMatchResult; + return; + } + if (inputStr == "TrueSkillEndTimeMissingInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeMissingInMatchResult; + return; + } if (inputStr == "TrueSkillInvalidPlayerSecondsPlayedInMatchResult") { output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult; @@ -13532,11 +13766,56 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult; return; } + if (inputStr == "TrueSkillInvalidRanksInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult; + return; + } + if (inputStr == "TrueSkillNoWinnerInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult; + return; + } + if (inputStr == "TrueSkillMissingRequiredCondition") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition; + return; + } + if (inputStr == "TrueSkillMissingRequiredEvent") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent; + return; + } + if (inputStr == "TrueSkillUnknownEventName") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName; + return; + } + if (inputStr == "TrueSkillInvalidEventCount") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventCount; + return; + } + if (inputStr == "TrueSkillUnknownConditionKey") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey; + return; + } + if (inputStr == "TrueSkillUnknownConditionValue") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue; + return; + } if (inputStr == "TrueSkillScenarioConfigDoesNotExist") { output = GenericErrorCodes::GenericErrorCodesTrueSkillScenarioConfigDoesNotExist; return; } + if (inputStr == "TrueSkillUnknownModelId") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId; + return; + } if (inputStr == "TrueSkillNoModelInScenario") { output = GenericErrorCodes::GenericErrorCodesTrueSkillNoModelInScenario; @@ -13557,6 +13836,46 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills; return; } + if (inputStr == "TrueSkillInvalidMaxIterations") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMaxIterations; + return; + } + if (inputStr == "TrueSkillEndTimeBeforeStartTime") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeBeforeStartTime; + return; + } + if (inputStr == "TrueSkillInvalidJobId") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidJobId; + return; + } + if (inputStr == "TrueSkillInvalidMetadataId") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMetadataId; + return; + } + if (inputStr == "TrueSkillMissingBuildVerison") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingBuildVerison; + return; + } + if (inputStr == "TrueSkillJobAlreadyExists") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillJobAlreadyExists; + return; + } + if (inputStr == "TrueSkillJobNotFound") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillJobNotFound; + return; + } + if (inputStr == "TrueSkillOperationCanceled") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillOperationCanceled; + return; + } if (inputStr == "StateShareUnauthorized") { output = GenericErrorCodes::GenericErrorCodesStateShareUnauthorized; @@ -19691,6 +20010,55 @@ namespace PlayFab } } + enum class UserFamilyType + { + UserFamilyTypeNone, + UserFamilyTypeXbox, + UserFamilyTypeSteam + }; + + inline void ToJsonEnum(const UserFamilyType input, Json::Value& output) + { + if (input == UserFamilyType::UserFamilyTypeNone) + { + output = Json::Value("None"); + return; + } + if (input == UserFamilyType::UserFamilyTypeXbox) + { + output = Json::Value("Xbox"); + return; + } + if (input == UserFamilyType::UserFamilyTypeSteam) + { + output = Json::Value("Steam"); + return; + } + } + inline void FromJsonEnum(const Json::Value& input, UserFamilyType& output) + { + if (!input.isString()) + { + return; + } + const std::string& inputStr = input.asString(); + if (inputStr == "None") + { + output = UserFamilyType::UserFamilyTypeNone; + return; + } + if (inputStr == "Xbox") + { + output = UserFamilyType::UserFamilyTypeXbox; + return; + } + if (inputStr == "Steam") + { + output = UserFamilyType::UserFamilyTypeSteam; + return; + } + } + enum class UserOrigination { UserOriginationOrganic, @@ -21246,10 +21614,10 @@ namespace PlayFab std::string BanId; Boxed Created; Boxed Expires; - Boxed IncludeMicrosoftFamily; std::string IPAddress; std::string PlayFabId; std::string Reason; + std::string UserFamilyType; BanInfo() : PlayFabBaseModel(), @@ -21257,10 +21625,10 @@ namespace PlayFab BanId(), Created(), Expires(), - IncludeMicrosoftFamily(), IPAddress(), PlayFabId(), - Reason() + Reason(), + UserFamilyType() {} BanInfo(const BanInfo& src) : @@ -21269,10 +21637,10 @@ namespace PlayFab BanId(src.BanId), Created(src.Created), Expires(src.Expires), - IncludeMicrosoftFamily(src.IncludeMicrosoftFamily), IPAddress(src.IPAddress), PlayFabId(src.PlayFabId), - Reason(src.Reason) + Reason(src.Reason), + UserFamilyType(src.UserFamilyType) {} ~BanInfo() = default; @@ -21283,10 +21651,10 @@ namespace PlayFab FromJsonUtilS(input["BanId"], BanId); FromJsonUtilT(input["Created"], Created); FromJsonUtilT(input["Expires"], Expires); - FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily); FromJsonUtilS(input["IPAddress"], IPAddress); FromJsonUtilS(input["PlayFabId"], PlayFabId); FromJsonUtilS(input["Reason"], Reason); + FromJsonUtilS(input["UserFamilyType"], UserFamilyType); } Json::Value ToJson() const override @@ -21296,10 +21664,10 @@ namespace PlayFab Json::Value each_BanId; ToJsonUtilS(BanId, each_BanId); output["BanId"] = each_BanId; Json::Value each_Created; ToJsonUtilT(Created, each_Created); output["Created"] = each_Created; Json::Value each_Expires; ToJsonUtilT(Expires, each_Expires); output["Expires"] = each_Expires; - Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily; Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress; Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId; Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason; + Json::Value each_UserFamilyType; ToJsonUtilS(UserFamilyType, each_UserFamilyType); output["UserFamilyType"] = each_UserFamilyType; return output; } }; @@ -21341,27 +21709,27 @@ namespace PlayFab struct BanRequest : public PlayFabRequestCommon { Boxed DurationInHours; - Boxed IncludeMicrosoftFamily; std::string IPAddress; std::string PlayFabId; std::string Reason; + Boxed pfUserFamilyType; BanRequest() : PlayFabRequestCommon(), DurationInHours(), - IncludeMicrosoftFamily(), IPAddress(), PlayFabId(), - Reason() + Reason(), + pfUserFamilyType() {} BanRequest(const BanRequest& src) : PlayFabRequestCommon(), DurationInHours(src.DurationInHours), - IncludeMicrosoftFamily(src.IncludeMicrosoftFamily), IPAddress(src.IPAddress), PlayFabId(src.PlayFabId), - Reason(src.Reason) + Reason(src.Reason), + pfUserFamilyType(src.pfUserFamilyType) {} ~BanRequest() = default; @@ -21369,20 +21737,20 @@ namespace PlayFab void FromJson(const Json::Value& input) override { FromJsonUtilP(input["DurationInHours"], DurationInHours); - FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily); FromJsonUtilS(input["IPAddress"], IPAddress); FromJsonUtilS(input["PlayFabId"], PlayFabId); FromJsonUtilS(input["Reason"], Reason); + FromJsonUtilE(input["UserFamilyType"], pfUserFamilyType); } Json::Value ToJson() const override { Json::Value output; Json::Value each_DurationInHours; ToJsonUtilP(DurationInHours, each_DurationInHours); output["DurationInHours"] = each_DurationInHours; - Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily; Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress; Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId; Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason; + Json::Value each_pfUserFamilyType; ToJsonUtilE(pfUserFamilyType, each_pfUserFamilyType); output["UserFamilyType"] = each_pfUserFamilyType; return output; } }; @@ -31281,20 +31649,20 @@ namespace PlayFab Boxed Active; std::string BanId; Boxed Expires; - Boxed IncludeMicrosoftFamily; std::string IPAddress; Boxed Permanent; std::string Reason; + Boxed pfUserFamilyType; UpdateBanRequest() : PlayFabRequestCommon(), Active(), BanId(), Expires(), - IncludeMicrosoftFamily(), IPAddress(), Permanent(), - Reason() + Reason(), + pfUserFamilyType() {} UpdateBanRequest(const UpdateBanRequest& src) : @@ -31302,10 +31670,10 @@ namespace PlayFab Active(src.Active), BanId(src.BanId), Expires(src.Expires), - IncludeMicrosoftFamily(src.IncludeMicrosoftFamily), IPAddress(src.IPAddress), Permanent(src.Permanent), - Reason(src.Reason) + Reason(src.Reason), + pfUserFamilyType(src.pfUserFamilyType) {} ~UpdateBanRequest() = default; @@ -31315,10 +31683,10 @@ namespace PlayFab FromJsonUtilP(input["Active"], Active); FromJsonUtilS(input["BanId"], BanId); FromJsonUtilT(input["Expires"], Expires); - FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily); FromJsonUtilS(input["IPAddress"], IPAddress); FromJsonUtilP(input["Permanent"], Permanent); FromJsonUtilS(input["Reason"], Reason); + FromJsonUtilE(input["UserFamilyType"], pfUserFamilyType); } Json::Value ToJson() const override @@ -31327,10 +31695,10 @@ namespace PlayFab Json::Value each_Active; ToJsonUtilP(Active, each_Active); output["Active"] = each_Active; Json::Value each_BanId; ToJsonUtilS(BanId, each_BanId); output["BanId"] = each_BanId; Json::Value each_Expires; ToJsonUtilT(Expires, each_Expires); output["Expires"] = each_Expires; - Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily; Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress; Json::Value each_Permanent; ToJsonUtilP(Permanent, each_Permanent); output["Permanent"] = each_Permanent; Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason; + Json::Value each_pfUserFamilyType; ToJsonUtilE(pfUserFamilyType, each_pfUserFamilyType); output["UserFamilyType"] = each_pfUserFamilyType; return output; } }; diff --git a/code/include/playfab/PlayFabCloudScriptApi.h b/code/include/playfab/PlayFabCloudScriptApi.h index 3d5fda05..1f9e7b9b 100644 --- a/code/include/playfab/PlayFabCloudScriptApi.h +++ b/code/include/playfab/PlayFabCloudScriptApi.h @@ -32,6 +32,7 @@ namespace PlayFab static void ExecuteEntityCloudScript(CloudScriptModels::ExecuteEntityCloudScriptRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ExecuteFunction(CloudScriptModels::ExecuteFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void GetFunction(CloudScriptModels::GetFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + static void ListEventHubFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListHttpFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListQueuedFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -39,6 +40,7 @@ namespace PlayFab static void PostFunctionResultForFunctionExecution(CloudScriptModels::PostFunctionResultForFunctionExecutionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void PostFunctionResultForPlayerTriggeredAction(CloudScriptModels::PostFunctionResultForPlayerTriggeredActionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void PostFunctionResultForScheduledTask(CloudScriptModels::PostFunctionResultForScheduledTaskRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + static void RegisterEventHubFunction(CloudScriptModels::RegisterEventHubFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void RegisterHttpFunction(CloudScriptModels::RegisterHttpFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void RegisterQueuedFunction(CloudScriptModels::RegisterQueuedFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void UnregisterFunction(CloudScriptModels::UnregisterFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -51,6 +53,7 @@ namespace PlayFab static void OnExecuteEntityCloudScriptResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnExecuteFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnGetFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + static void OnListEventHubFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListHttpFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListQueuedFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -58,6 +61,7 @@ namespace PlayFab static void OnPostFunctionResultForFunctionExecutionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnPostFunctionResultForPlayerTriggeredActionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnPostFunctionResultForScheduledTaskResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + static void OnRegisterEventHubFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnRegisterHttpFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnRegisterQueuedFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnUnregisterFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); diff --git a/code/include/playfab/PlayFabCloudScriptDataModels.h b/code/include/playfab/PlayFabCloudScriptDataModels.h index d320ac50..85bd36eb 100644 --- a/code/include/playfab/PlayFabCloudScriptDataModels.h +++ b/code/include/playfab/PlayFabCloudScriptDataModels.h @@ -3381,7 +3381,8 @@ namespace PlayFab enum class TriggerType { TriggerTypeHTTP, - TriggerTypeQueue + TriggerTypeQueue, + TriggerTypeEventHub }; inline void ToJsonEnum(const TriggerType input, Json::Value& output) @@ -3396,6 +3397,11 @@ namespace PlayFab output = Json::Value("Queue"); return; } + if (input == TriggerType::TriggerTypeEventHub) + { + output = Json::Value("EventHub"); + return; + } } inline void FromJsonEnum(const Json::Value& input, TriggerType& output) { @@ -3414,6 +3420,11 @@ namespace PlayFab output = TriggerType::TriggerTypeQueue; return; } + if (inputStr == "EventHub") + { + output = TriggerType::TriggerTypeEventHub; + return; + } } // CloudScript Classes @@ -3553,6 +3564,45 @@ namespace PlayFab } }; + struct EventHubFunctionModel : public PlayFabBaseModel + { + std::string ConnectionString; + std::string EventHubName; + std::string FunctionName; + + EventHubFunctionModel() : + PlayFabBaseModel(), + ConnectionString(), + EventHubName(), + FunctionName() + {} + + EventHubFunctionModel(const EventHubFunctionModel& src) : + PlayFabBaseModel(), + ConnectionString(src.ConnectionString), + EventHubName(src.EventHubName), + FunctionName(src.FunctionName) + {} + + ~EventHubFunctionModel() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["ConnectionString"], ConnectionString); + FromJsonUtilS(input["EventHubName"], EventHubName); + FromJsonUtilS(input["FunctionName"], FunctionName); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_ConnectionString; ToJsonUtilS(ConnectionString, each_ConnectionString); output["ConnectionString"] = each_ConnectionString; + Json::Value each_EventHubName; ToJsonUtilS(EventHubName, each_EventHubName); output["EventHubName"] = each_EventHubName; + Json::Value each_FunctionName; ToJsonUtilS(FunctionName, each_FunctionName); output["FunctionName"] = each_FunctionName; + return output; + } + }; + struct ScriptExecutionError : public PlayFabBaseModel { std::string Error; @@ -4106,6 +4156,35 @@ namespace PlayFab } }; + struct ListEventHubFunctionsResult : public PlayFabResultCommon + { + std::list Functions; + + ListEventHubFunctionsResult() : + PlayFabResultCommon(), + Functions() + {} + + ListEventHubFunctionsResult(const ListEventHubFunctionsResult& src) : + PlayFabResultCommon(), + Functions(src.Functions) + {} + + ~ListEventHubFunctionsResult() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilO(input["Functions"], Functions); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_Functions; ToJsonUtilO(Functions, each_Functions); output["Functions"] = each_Functions; + return output; + } + }; + struct ListFunctionsRequest : public PlayFabRequestCommon { std::map CustomTags; @@ -4932,6 +5011,50 @@ namespace PlayFab } }; + struct RegisterEventHubFunctionRequest : public PlayFabRequestCommon + { + std::string ConnectionString; + std::map CustomTags; + std::string EventHubName; + std::string FunctionName; + + RegisterEventHubFunctionRequest() : + PlayFabRequestCommon(), + ConnectionString(), + CustomTags(), + EventHubName(), + FunctionName() + {} + + RegisterEventHubFunctionRequest(const RegisterEventHubFunctionRequest& src) : + PlayFabRequestCommon(), + ConnectionString(src.ConnectionString), + CustomTags(src.CustomTags), + EventHubName(src.EventHubName), + FunctionName(src.FunctionName) + {} + + ~RegisterEventHubFunctionRequest() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["ConnectionString"], ConnectionString); + FromJsonUtilS(input["CustomTags"], CustomTags); + FromJsonUtilS(input["EventHubName"], EventHubName); + FromJsonUtilS(input["FunctionName"], FunctionName); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_ConnectionString; ToJsonUtilS(ConnectionString, each_ConnectionString); output["ConnectionString"] = each_ConnectionString; + Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; + Json::Value each_EventHubName; ToJsonUtilS(EventHubName, each_EventHubName); output["EventHubName"] = each_EventHubName; + Json::Value each_FunctionName; ToJsonUtilS(FunctionName, each_FunctionName); output["FunctionName"] = each_FunctionName; + return output; + } + }; + struct RegisterHttpFunctionRequest : public PlayFabRequestCommon { std::map CustomTags; diff --git a/code/include/playfab/PlayFabCloudScriptInstanceApi.h b/code/include/playfab/PlayFabCloudScriptInstanceApi.h index c2355688..ef90fb7e 100644 --- a/code/include/playfab/PlayFabCloudScriptInstanceApi.h +++ b/code/include/playfab/PlayFabCloudScriptInstanceApi.h @@ -48,6 +48,7 @@ namespace PlayFab void ExecuteEntityCloudScript(CloudScriptModels::ExecuteEntityCloudScriptRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ExecuteFunction(CloudScriptModels::ExecuteFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void GetFunction(CloudScriptModels::GetFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + void ListEventHubFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListHttpFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListQueuedFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -55,6 +56,7 @@ namespace PlayFab void PostFunctionResultForFunctionExecution(CloudScriptModels::PostFunctionResultForFunctionExecutionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void PostFunctionResultForPlayerTriggeredAction(CloudScriptModels::PostFunctionResultForPlayerTriggeredActionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void PostFunctionResultForScheduledTask(CloudScriptModels::PostFunctionResultForScheduledTaskRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + void RegisterEventHubFunction(CloudScriptModels::RegisterEventHubFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void RegisterHttpFunction(CloudScriptModels::RegisterHttpFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void RegisterQueuedFunction(CloudScriptModels::RegisterQueuedFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void UnregisterFunction(CloudScriptModels::UnregisterFunctionRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -63,6 +65,7 @@ namespace PlayFab void OnExecuteEntityCloudScriptResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnExecuteFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnGetFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + void OnListEventHubFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListHttpFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListQueuedFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -70,6 +73,7 @@ namespace PlayFab void OnPostFunctionResultForFunctionExecutionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnPostFunctionResultForPlayerTriggeredActionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnPostFunctionResultForScheduledTaskResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + void OnRegisterEventHubFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnRegisterHttpFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnRegisterQueuedFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnUnregisterFunctionResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); diff --git a/code/include/playfab/PlayFabEconomyDataModels.h b/code/include/playfab/PlayFabEconomyDataModels.h index 3d74a195..76ffe254 100644 --- a/code/include/playfab/PlayFabEconomyDataModels.h +++ b/code/include/playfab/PlayFabEconomyDataModels.h @@ -3641,6 +3641,64 @@ namespace PlayFab } }; + struct CategoryRatingConfig : public PlayFabBaseModel + { + std::string Name; + + CategoryRatingConfig() : + PlayFabBaseModel(), + Name() + {} + + CategoryRatingConfig(const CategoryRatingConfig& src) : + PlayFabBaseModel(), + Name(src.Name) + {} + + ~CategoryRatingConfig() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["Name"], Name); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name; + return output; + } + }; + + struct ReviewConfig : public PlayFabBaseModel + { + std::list CategoryRatings; + + ReviewConfig() : + PlayFabBaseModel(), + CategoryRatings() + {} + + ReviewConfig(const ReviewConfig& src) : + PlayFabBaseModel(), + CategoryRatings(src.CategoryRatings) + {} + + ~ReviewConfig() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilO(input["CategoryRatings"], CategoryRatings); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_CategoryRatings; ToJsonUtilO(CategoryRatings, each_CategoryRatings); output["CategoryRatings"] = each_CategoryRatings; + return output; + } + }; + struct UserGeneratedContentSpecificConfig : public PlayFabBaseModel { std::list ContentTypes; @@ -3685,6 +3743,7 @@ namespace PlayFab Boxed Image; bool IsCatalogEnabled; std::list Platforms; + Boxed Review; std::list ReviewerEntities; Boxed UserGeneratedContent; @@ -3698,6 +3757,7 @@ namespace PlayFab Image(), IsCatalogEnabled(), Platforms(), + Review(), ReviewerEntities(), UserGeneratedContent() {} @@ -3712,6 +3772,7 @@ namespace PlayFab Image(src.Image), IsCatalogEnabled(src.IsCatalogEnabled), Platforms(src.Platforms), + Review(src.Review), ReviewerEntities(src.ReviewerEntities), UserGeneratedContent(src.UserGeneratedContent) {} @@ -3728,6 +3789,7 @@ namespace PlayFab FromJsonUtilO(input["Image"], Image); FromJsonUtilP(input["IsCatalogEnabled"], IsCatalogEnabled); FromJsonUtilS(input["Platforms"], Platforms); + FromJsonUtilO(input["Review"], Review); FromJsonUtilO(input["ReviewerEntities"], ReviewerEntities); FromJsonUtilO(input["UserGeneratedContent"], UserGeneratedContent); } @@ -3743,6 +3805,7 @@ namespace PlayFab Json::Value each_Image; ToJsonUtilO(Image, each_Image); output["Image"] = each_Image; Json::Value each_IsCatalogEnabled; ToJsonUtilP(IsCatalogEnabled, each_IsCatalogEnabled); output["IsCatalogEnabled"] = each_IsCatalogEnabled; Json::Value each_Platforms; ToJsonUtilS(Platforms, each_Platforms); output["Platforms"] = each_Platforms; + Json::Value each_Review; ToJsonUtilO(Review, each_Review); output["Review"] = each_Review; Json::Value each_ReviewerEntities; ToJsonUtilO(ReviewerEntities, each_ReviewerEntities); output["ReviewerEntities"] = each_ReviewerEntities; Json::Value each_UserGeneratedContent; ToJsonUtilO(UserGeneratedContent, each_UserGeneratedContent); output["UserGeneratedContent"] = each_UserGeneratedContent; return output; @@ -5928,6 +5991,7 @@ namespace PlayFab struct Review : public PlayFabBaseModel { + std::map CategoryRatings; Int32 HelpfulNegative; Int32 HelpfulPositive; bool IsInstalled; @@ -5944,6 +6008,7 @@ namespace PlayFab Review() : PlayFabBaseModel(), + CategoryRatings(), HelpfulNegative(), HelpfulPositive(), IsInstalled(), @@ -5961,6 +6026,7 @@ namespace PlayFab Review(const Review& src) : PlayFabBaseModel(), + CategoryRatings(src.CategoryRatings), HelpfulNegative(src.HelpfulNegative), HelpfulPositive(src.HelpfulPositive), IsInstalled(src.IsInstalled), @@ -5980,6 +6046,7 @@ namespace PlayFab void FromJson(const Json::Value& input) override { + FromJsonUtilP(input["CategoryRatings"], CategoryRatings); FromJsonUtilP(input["HelpfulNegative"], HelpfulNegative); FromJsonUtilP(input["HelpfulPositive"], HelpfulPositive); FromJsonUtilP(input["IsInstalled"], IsInstalled); @@ -5998,6 +6065,7 @@ namespace PlayFab Json::Value ToJson() const override { Json::Value output; + Json::Value each_CategoryRatings; ToJsonUtilP(CategoryRatings, each_CategoryRatings); output["CategoryRatings"] = each_CategoryRatings; Json::Value each_HelpfulNegative; ToJsonUtilP(HelpfulNegative, each_HelpfulNegative); output["HelpfulNegative"] = each_HelpfulNegative; Json::Value each_HelpfulPositive; ToJsonUtilP(HelpfulPositive, each_HelpfulPositive); output["HelpfulPositive"] = each_HelpfulPositive; Json::Value each_IsInstalled; ToJsonUtilP(IsInstalled, each_IsInstalled); output["IsInstalled"] = each_IsInstalled; diff --git a/code/include/playfab/PlayFabError.h b/code/include/playfab/PlayFabError.h index fc966a80..91cc814f 100644 --- a/code/include/playfab/PlayFabError.h +++ b/code/include/playfab/PlayFabError.h @@ -572,6 +572,12 @@ namespace PlayFab PlayFabErrorNoLinkedStatisticToLeaderboard = 1571, PlayFabErrorStatDefinitionAlreadyLinkedToLeaderboard = 1572, PlayFabErrorLinkingStatsNotAllowedForEntityType = 1573, + PlayFabErrorLeaderboardCountLimitExceeded = 1574, + PlayFabErrorLeaderboardSizeLimitExceeded = 1575, + PlayFabErrorLeaderboardDefinitionModificationNotAllowedWhileLinked = 1576, + PlayFabErrorStatisticDefinitionModificationNotAllowedWhileLinked = 1577, + PlayFabErrorLeaderboardUpdateNotAllowedWhileLinked = 1578, + PlayFabErrorCloudScriptAzureFunctionsEventHubRequestError = 1579, PlayFabErrorMatchmakingEntityInvalid = 2001, PlayFabErrorMatchmakingPlayerAttributesInvalid = 2002, PlayFabErrorMatchmakingQueueNotFound = 2016, @@ -772,29 +778,52 @@ namespace PlayFab PlayFabErrorCopilotDisabled = 19100, PlayFabErrorCopilotInvalidRequest = 19101, PlayFabErrorTrueSkillUnauthorized = 20000, - PlayFabErrorTrueSkillBadRequest = 20001, - PlayFabErrorTrueSkillMatchResultAlreadySubmitted = 20002, - PlayFabErrorTrueSkillDuplicatePlayerInMatchResult = 20003, - PlayFabErrorTrueSkillInvalidRanksInMatchResult = 20004, - PlayFabErrorTrueSkillNoWinnerInMatchResult = 20005, - PlayFabErrorTrueSkillMissingRequiredCondition = 20006, - PlayFabErrorTrueSkillMissingRequiredEvent = 20007, - PlayFabErrorTrueSkillUnknownEventName = 20008, - PlayFabErrorTrueSkillUnknownConditionKey = 20009, - PlayFabErrorTrueSkillUnknownConditionValue = 20010, - PlayFabErrorTrueSkillUnknownModelId = 20011, - PlayFabErrorTrueSkillNoPlayerInMatchResultTeam = 20012, - PlayFabErrorTrueSkillPlayersInMatchResultExceedingLimit = 20013, - PlayFabErrorTrueSkillInvalidPreMatchPartyInMatchResult = 20014, - PlayFabErrorTrueSkillInvalidTimestampInMatchResult = 20015, - PlayFabErrorTrueSkillInvalidPlayerSecondsPlayedInMatchResult = 20016, - PlayFabErrorTrueSkillNoTeamInMatchResult = 20017, - PlayFabErrorTrueSkillNotEnoughTeamsInMatchResult = 20018, - PlayFabErrorTrueSkillScenarioConfigDoesNotExist = 20019, - PlayFabErrorTrueSkillNoModelInScenario = 20020, - PlayFabErrorTrueSkillNotSupportedForTitle = 20021, - PlayFabErrorTrueSkillModelIsNotActive = 20022, - PlayFabErrorTrueSkillUnauthorizedToQueryOtherPlayerSkills = 20023, + PlayFabErrorTrueSkillInvalidTitleId = 20001, + PlayFabErrorTrueSkillInvalidScenarioId = 20002, + PlayFabErrorTrueSkillInvalidModelId = 20003, + PlayFabErrorTrueSkillInvalidModelName = 20004, + PlayFabErrorTrueSkillInvalidPlayerIds = 20005, + PlayFabErrorTrueSkillInvalidEntityKey = 20006, + PlayFabErrorTrueSkillInvalidConditionKey = 20007, + PlayFabErrorTrueSkillInvalidConditionValue = 20008, + PlayFabErrorTrueSkillInvalidConditionAffinityWeight = 20009, + PlayFabErrorTrueSkillInvalidEventName = 20010, + PlayFabErrorTrueSkillMatchResultCreated = 20011, + PlayFabErrorTrueSkillMatchResultAlreadySubmitted = 20012, + PlayFabErrorTrueSkillBadPlayerIdInMatchResult = 20013, + PlayFabErrorTrueSkillInvalidBotIdInMatchResult = 20014, + PlayFabErrorTrueSkillDuplicatePlayerInMatchResult = 20015, + PlayFabErrorTrueSkillNoPlayerInMatchResultTeam = 20016, + PlayFabErrorTrueSkillPlayersInMatchResultExceedingLimit = 20017, + PlayFabErrorTrueSkillInvalidPreMatchPartyInMatchResult = 20018, + PlayFabErrorTrueSkillInvalidTimestampInMatchResult = 20019, + PlayFabErrorTrueSkillStartTimeMissingInMatchResult = 20020, + PlayFabErrorTrueSkillEndTimeMissingInMatchResult = 20021, + PlayFabErrorTrueSkillInvalidPlayerSecondsPlayedInMatchResult = 20022, + PlayFabErrorTrueSkillNoTeamInMatchResult = 20023, + PlayFabErrorTrueSkillNotEnoughTeamsInMatchResult = 20024, + PlayFabErrorTrueSkillInvalidRanksInMatchResult = 20025, + PlayFabErrorTrueSkillNoWinnerInMatchResult = 20026, + PlayFabErrorTrueSkillMissingRequiredCondition = 20027, + PlayFabErrorTrueSkillMissingRequiredEvent = 20028, + PlayFabErrorTrueSkillUnknownEventName = 20029, + PlayFabErrorTrueSkillInvalidEventCount = 20030, + PlayFabErrorTrueSkillUnknownConditionKey = 20031, + PlayFabErrorTrueSkillUnknownConditionValue = 20032, + PlayFabErrorTrueSkillScenarioConfigDoesNotExist = 20033, + PlayFabErrorTrueSkillUnknownModelId = 20034, + PlayFabErrorTrueSkillNoModelInScenario = 20035, + PlayFabErrorTrueSkillNotSupportedForTitle = 20036, + PlayFabErrorTrueSkillModelIsNotActive = 20037, + PlayFabErrorTrueSkillUnauthorizedToQueryOtherPlayerSkills = 20038, + PlayFabErrorTrueSkillInvalidMaxIterations = 20039, + PlayFabErrorTrueSkillEndTimeBeforeStartTime = 20040, + PlayFabErrorTrueSkillInvalidJobId = 20041, + PlayFabErrorTrueSkillInvalidMetadataId = 20042, + PlayFabErrorTrueSkillMissingBuildVerison = 20043, + PlayFabErrorTrueSkillJobAlreadyExists = 20044, + PlayFabErrorTrueSkillJobNotFound = 20045, + PlayFabErrorTrueSkillOperationCanceled = 20046, PlayFabErrorStateShareUnauthorized = 21000, PlayFabErrorStateShareStateNotFound = 21001, PlayFabErrorStateShareLinkNotFound = 21002, diff --git a/code/include/playfab/PlayFabMultiplayerApi.h b/code/include/playfab/PlayFabMultiplayerApi.h index 8c66b8a6..bfd9693d 100644 --- a/code/include/playfab/PlayFabMultiplayerApi.h +++ b/code/include/playfab/PlayFabMultiplayerApi.h @@ -51,6 +51,7 @@ namespace PlayFab static void DeleteContainerImageRepository(MultiplayerModels::DeleteContainerImageRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void DeleteLobby(MultiplayerModels::DeleteLobbyRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void DeleteRemoteUser(MultiplayerModels::DeleteRemoteUserRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + static void DeleteSecret(MultiplayerModels::DeleteSecretRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void EnableMultiplayerServersForTitle(MultiplayerModels::EnableMultiplayerServersForTitleRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void FindFriendLobbies(MultiplayerModels::FindFriendLobbiesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void FindLobbies(MultiplayerModels::FindLobbiesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -89,6 +90,7 @@ namespace PlayFab static void ListMultiplayerServers(MultiplayerModels::ListMultiplayerServersRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListPartyQosServers(MultiplayerModels::ListPartyQosServersRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListQosServersForTitle(MultiplayerModels::ListQosServersForTitleRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + static void ListSecretSummaries(MultiplayerModels::ListSecretSummariesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListServerBackfillTicketsForPlayer(MultiplayerModels::ListServerBackfillTicketsForPlayerRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListTitleMultiplayerServersQuotaChanges(MultiplayerModels::ListTitleMultiplayerServersQuotaChangesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void ListVirtualMachineSummaries(MultiplayerModels::ListVirtualMachineSummariesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -107,6 +109,7 @@ namespace PlayFab static void UpdateLobby(MultiplayerModels::UpdateLobbyRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void UpdateLobbyAsServer(MultiplayerModels::UpdateLobbyAsServerRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); static void UploadCertificate(MultiplayerModels::UploadCertificateRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + static void UploadSecret(MultiplayerModels::UploadSecretRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); private: PlayFabMultiplayerAPI(); // Private constructor, static class should never have an instance @@ -135,6 +138,7 @@ namespace PlayFab static void OnDeleteContainerImageRepositoryResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnDeleteLobbyResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnDeleteRemoteUserResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + static void OnDeleteSecretResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnEnableMultiplayerServersForTitleResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnFindFriendLobbiesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnFindLobbiesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -173,6 +177,7 @@ namespace PlayFab static void OnListMultiplayerServersResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListPartyQosServersResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListQosServersForTitleResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + static void OnListSecretSummariesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListServerBackfillTicketsForPlayerResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListTitleMultiplayerServersQuotaChangesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnListVirtualMachineSummariesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -191,6 +196,7 @@ namespace PlayFab static void OnUpdateLobbyResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnUpdateLobbyAsServerResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static void OnUploadCertificateResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + static void OnUploadSecretResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); static bool ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container); }; diff --git a/code/include/playfab/PlayFabMultiplayerDataModels.h b/code/include/playfab/PlayFabMultiplayerDataModels.h index f8b4bbae..53081294 100644 --- a/code/include/playfab/PlayFabMultiplayerDataModels.h +++ b/code/include/playfab/PlayFabMultiplayerDataModels.h @@ -3174,6 +3174,35 @@ namespace PlayFab } }; + struct GameSecretReferenceParams : public PlayFabBaseModel + { + std::string Name; + + GameSecretReferenceParams() : + PlayFabBaseModel(), + Name() + {} + + GameSecretReferenceParams(const GameSecretReferenceParams& src) : + PlayFabBaseModel(), + Name(src.Name) + {} + + ~GameSecretReferenceParams() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["Name"], Name); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name; + return output; + } + }; + struct LinuxInstrumentationConfiguration : public PlayFabBaseModel { bool IsEnabled; @@ -3398,6 +3427,7 @@ namespace PlayFab std::map CustomTags; std::list GameAssetReferences; std::list GameCertificateReferences; + std::list GameSecretReferences; Boxed pfLinuxInstrumentationConfiguration; std::map Metadata; Boxed MonitoringApplicationConfiguration; @@ -3418,6 +3448,7 @@ namespace PlayFab CustomTags(), GameAssetReferences(), GameCertificateReferences(), + GameSecretReferences(), pfLinuxInstrumentationConfiguration(), Metadata(), MonitoringApplicationConfiguration(), @@ -3439,6 +3470,7 @@ namespace PlayFab CustomTags(src.CustomTags), GameAssetReferences(src.GameAssetReferences), GameCertificateReferences(src.GameCertificateReferences), + GameSecretReferences(src.GameSecretReferences), pfLinuxInstrumentationConfiguration(src.pfLinuxInstrumentationConfiguration), Metadata(src.Metadata), MonitoringApplicationConfiguration(src.MonitoringApplicationConfiguration), @@ -3462,6 +3494,7 @@ namespace PlayFab FromJsonUtilS(input["CustomTags"], CustomTags); FromJsonUtilO(input["GameAssetReferences"], GameAssetReferences); FromJsonUtilO(input["GameCertificateReferences"], GameCertificateReferences); + FromJsonUtilO(input["GameSecretReferences"], GameSecretReferences); FromJsonUtilO(input["LinuxInstrumentationConfiguration"], pfLinuxInstrumentationConfiguration); FromJsonUtilS(input["Metadata"], Metadata); FromJsonUtilO(input["MonitoringApplicationConfiguration"], MonitoringApplicationConfiguration); @@ -3484,6 +3517,7 @@ namespace PlayFab Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; Json::Value each_GameAssetReferences; ToJsonUtilO(GameAssetReferences, each_GameAssetReferences); output["GameAssetReferences"] = each_GameAssetReferences; Json::Value each_GameCertificateReferences; ToJsonUtilO(GameCertificateReferences, each_GameCertificateReferences); output["GameCertificateReferences"] = each_GameCertificateReferences; + Json::Value each_GameSecretReferences; ToJsonUtilO(GameSecretReferences, each_GameSecretReferences); output["GameSecretReferences"] = each_GameSecretReferences; Json::Value each_pfLinuxInstrumentationConfiguration; ToJsonUtilO(pfLinuxInstrumentationConfiguration, each_pfLinuxInstrumentationConfiguration); output["LinuxInstrumentationConfiguration"] = each_pfLinuxInstrumentationConfiguration; Json::Value each_Metadata; ToJsonUtilS(Metadata, each_Metadata); output["Metadata"] = each_Metadata; Json::Value each_MonitoringApplicationConfiguration; ToJsonUtilO(MonitoringApplicationConfiguration, each_MonitoringApplicationConfiguration); output["MonitoringApplicationConfiguration"] = each_MonitoringApplicationConfiguration; @@ -3531,6 +3565,35 @@ namespace PlayFab } }; + struct GameSecretReference : public PlayFabBaseModel + { + std::string Name; + + GameSecretReference() : + PlayFabBaseModel(), + Name() + {} + + GameSecretReference(const GameSecretReference& src) : + PlayFabBaseModel(), + Name(src.Name) + {} + + ~GameSecretReference() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["Name"], Name); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name; + return output; + } + }; + struct MonitoringApplicationConfiguration : public PlayFabBaseModel { AssetReference pfAssetReference; @@ -3654,6 +3717,7 @@ namespace PlayFab Boxed CustomGameContainerImage; std::list GameAssetReferences; std::list GameCertificateReferences; + std::list GameSecretReferences; Boxed pfLinuxInstrumentationConfiguration; std::map Metadata; Boxed pfMonitoringApplicationConfiguration; @@ -3678,6 +3742,7 @@ namespace PlayFab CustomGameContainerImage(), GameAssetReferences(), GameCertificateReferences(), + GameSecretReferences(), pfLinuxInstrumentationConfiguration(), Metadata(), pfMonitoringApplicationConfiguration(), @@ -3703,6 +3768,7 @@ namespace PlayFab CustomGameContainerImage(src.CustomGameContainerImage), GameAssetReferences(src.GameAssetReferences), GameCertificateReferences(src.GameCertificateReferences), + GameSecretReferences(src.GameSecretReferences), pfLinuxInstrumentationConfiguration(src.pfLinuxInstrumentationConfiguration), Metadata(src.Metadata), pfMonitoringApplicationConfiguration(src.pfMonitoringApplicationConfiguration), @@ -3730,6 +3796,7 @@ namespace PlayFab FromJsonUtilO(input["CustomGameContainerImage"], CustomGameContainerImage); FromJsonUtilO(input["GameAssetReferences"], GameAssetReferences); FromJsonUtilO(input["GameCertificateReferences"], GameCertificateReferences); + FromJsonUtilO(input["GameSecretReferences"], GameSecretReferences); FromJsonUtilO(input["LinuxInstrumentationConfiguration"], pfLinuxInstrumentationConfiguration); FromJsonUtilS(input["Metadata"], Metadata); FromJsonUtilO(input["MonitoringApplicationConfiguration"], pfMonitoringApplicationConfiguration); @@ -3756,6 +3823,7 @@ namespace PlayFab Json::Value each_CustomGameContainerImage; ToJsonUtilO(CustomGameContainerImage, each_CustomGameContainerImage); output["CustomGameContainerImage"] = each_CustomGameContainerImage; Json::Value each_GameAssetReferences; ToJsonUtilO(GameAssetReferences, each_GameAssetReferences); output["GameAssetReferences"] = each_GameAssetReferences; Json::Value each_GameCertificateReferences; ToJsonUtilO(GameCertificateReferences, each_GameCertificateReferences); output["GameCertificateReferences"] = each_GameCertificateReferences; + Json::Value each_GameSecretReferences; ToJsonUtilO(GameSecretReferences, each_GameSecretReferences); output["GameSecretReferences"] = each_GameSecretReferences; Json::Value each_pfLinuxInstrumentationConfiguration; ToJsonUtilO(pfLinuxInstrumentationConfiguration, each_pfLinuxInstrumentationConfiguration); output["LinuxInstrumentationConfiguration"] = each_pfLinuxInstrumentationConfiguration; Json::Value each_Metadata; ToJsonUtilS(Metadata, each_Metadata); output["Metadata"] = each_Metadata; Json::Value each_pfMonitoringApplicationConfiguration; ToJsonUtilO(pfMonitoringApplicationConfiguration, each_pfMonitoringApplicationConfiguration); output["MonitoringApplicationConfiguration"] = each_pfMonitoringApplicationConfiguration; @@ -3853,6 +3921,7 @@ namespace PlayFab std::map CustomTags; std::list GameAssetReferences; std::list GameCertificateReferences; + std::list GameSecretReferences; std::string GameWorkingDirectory; Boxed pfInstrumentationConfiguration; std::map Metadata; @@ -3874,6 +3943,7 @@ namespace PlayFab CustomTags(), GameAssetReferences(), GameCertificateReferences(), + GameSecretReferences(), GameWorkingDirectory(), pfInstrumentationConfiguration(), Metadata(), @@ -3896,6 +3966,7 @@ namespace PlayFab CustomTags(src.CustomTags), GameAssetReferences(src.GameAssetReferences), GameCertificateReferences(src.GameCertificateReferences), + GameSecretReferences(src.GameSecretReferences), GameWorkingDirectory(src.GameWorkingDirectory), pfInstrumentationConfiguration(src.pfInstrumentationConfiguration), Metadata(src.Metadata), @@ -3920,6 +3991,7 @@ namespace PlayFab FromJsonUtilS(input["CustomTags"], CustomTags); FromJsonUtilO(input["GameAssetReferences"], GameAssetReferences); FromJsonUtilO(input["GameCertificateReferences"], GameCertificateReferences); + FromJsonUtilO(input["GameSecretReferences"], GameSecretReferences); FromJsonUtilS(input["GameWorkingDirectory"], GameWorkingDirectory); FromJsonUtilO(input["InstrumentationConfiguration"], pfInstrumentationConfiguration); FromJsonUtilS(input["Metadata"], Metadata); @@ -3943,6 +4015,7 @@ namespace PlayFab Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; Json::Value each_GameAssetReferences; ToJsonUtilO(GameAssetReferences, each_GameAssetReferences); output["GameAssetReferences"] = each_GameAssetReferences; Json::Value each_GameCertificateReferences; ToJsonUtilO(GameCertificateReferences, each_GameCertificateReferences); output["GameCertificateReferences"] = each_GameCertificateReferences; + Json::Value each_GameSecretReferences; ToJsonUtilO(GameSecretReferences, each_GameSecretReferences); output["GameSecretReferences"] = each_GameSecretReferences; Json::Value each_GameWorkingDirectory; ToJsonUtilS(GameWorkingDirectory, each_GameWorkingDirectory); output["GameWorkingDirectory"] = each_GameWorkingDirectory; Json::Value each_pfInstrumentationConfiguration; ToJsonUtilO(pfInstrumentationConfiguration, each_pfInstrumentationConfiguration); output["InstrumentationConfiguration"] = each_pfInstrumentationConfiguration; Json::Value each_Metadata; ToJsonUtilS(Metadata, each_Metadata); output["Metadata"] = each_Metadata; @@ -3968,6 +4041,7 @@ namespace PlayFab Boxed CreationTime; std::list GameAssetReferences; std::list GameCertificateReferences; + std::list GameSecretReferences; std::string GameWorkingDirectory; Boxed pfInstrumentationConfiguration; std::map Metadata; @@ -3992,6 +4066,7 @@ namespace PlayFab CreationTime(), GameAssetReferences(), GameCertificateReferences(), + GameSecretReferences(), GameWorkingDirectory(), pfInstrumentationConfiguration(), Metadata(), @@ -4017,6 +4092,7 @@ namespace PlayFab CreationTime(src.CreationTime), GameAssetReferences(src.GameAssetReferences), GameCertificateReferences(src.GameCertificateReferences), + GameSecretReferences(src.GameSecretReferences), GameWorkingDirectory(src.GameWorkingDirectory), pfInstrumentationConfiguration(src.pfInstrumentationConfiguration), Metadata(src.Metadata), @@ -4044,6 +4120,7 @@ namespace PlayFab FromJsonUtilT(input["CreationTime"], CreationTime); FromJsonUtilO(input["GameAssetReferences"], GameAssetReferences); FromJsonUtilO(input["GameCertificateReferences"], GameCertificateReferences); + FromJsonUtilO(input["GameSecretReferences"], GameSecretReferences); FromJsonUtilS(input["GameWorkingDirectory"], GameWorkingDirectory); FromJsonUtilO(input["InstrumentationConfiguration"], pfInstrumentationConfiguration); FromJsonUtilS(input["Metadata"], Metadata); @@ -4070,6 +4147,7 @@ namespace PlayFab Json::Value each_CreationTime; ToJsonUtilT(CreationTime, each_CreationTime); output["CreationTime"] = each_CreationTime; Json::Value each_GameAssetReferences; ToJsonUtilO(GameAssetReferences, each_GameAssetReferences); output["GameAssetReferences"] = each_GameAssetReferences; Json::Value each_GameCertificateReferences; ToJsonUtilO(GameCertificateReferences, each_GameCertificateReferences); output["GameCertificateReferences"] = each_GameCertificateReferences; + Json::Value each_GameSecretReferences; ToJsonUtilO(GameSecretReferences, each_GameSecretReferences); output["GameSecretReferences"] = each_GameSecretReferences; Json::Value each_GameWorkingDirectory; ToJsonUtilS(GameWorkingDirectory, each_GameWorkingDirectory); output["GameWorkingDirectory"] = each_GameWorkingDirectory; Json::Value each_pfInstrumentationConfiguration; ToJsonUtilO(pfInstrumentationConfiguration, each_pfInstrumentationConfiguration); output["InstrumentationConfiguration"] = each_pfInstrumentationConfiguration; Json::Value each_Metadata; ToJsonUtilS(Metadata, each_Metadata); output["Metadata"] = each_Metadata; @@ -4095,6 +4173,7 @@ namespace PlayFab std::map CustomTags; std::list GameAssetReferences; std::list GameCertificateReferences; + std::list GameSecretReferences; std::string GameWorkingDirectory; Boxed pfInstrumentationConfiguration; Boxed IsOSPreview; @@ -4115,6 +4194,7 @@ namespace PlayFab CustomTags(), GameAssetReferences(), GameCertificateReferences(), + GameSecretReferences(), GameWorkingDirectory(), pfInstrumentationConfiguration(), IsOSPreview(), @@ -4136,6 +4216,7 @@ namespace PlayFab CustomTags(src.CustomTags), GameAssetReferences(src.GameAssetReferences), GameCertificateReferences(src.GameCertificateReferences), + GameSecretReferences(src.GameSecretReferences), GameWorkingDirectory(src.GameWorkingDirectory), pfInstrumentationConfiguration(src.pfInstrumentationConfiguration), IsOSPreview(src.IsOSPreview), @@ -4159,6 +4240,7 @@ namespace PlayFab FromJsonUtilS(input["CustomTags"], CustomTags); FromJsonUtilO(input["GameAssetReferences"], GameAssetReferences); FromJsonUtilO(input["GameCertificateReferences"], GameCertificateReferences); + FromJsonUtilO(input["GameSecretReferences"], GameSecretReferences); FromJsonUtilS(input["GameWorkingDirectory"], GameWorkingDirectory); FromJsonUtilO(input["InstrumentationConfiguration"], pfInstrumentationConfiguration); FromJsonUtilP(input["IsOSPreview"], IsOSPreview); @@ -4181,6 +4263,7 @@ namespace PlayFab Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; Json::Value each_GameAssetReferences; ToJsonUtilO(GameAssetReferences, each_GameAssetReferences); output["GameAssetReferences"] = each_GameAssetReferences; Json::Value each_GameCertificateReferences; ToJsonUtilO(GameCertificateReferences, each_GameCertificateReferences); output["GameCertificateReferences"] = each_GameCertificateReferences; + Json::Value each_GameSecretReferences; ToJsonUtilO(GameSecretReferences, each_GameSecretReferences); output["GameSecretReferences"] = each_GameSecretReferences; Json::Value each_GameWorkingDirectory; ToJsonUtilS(GameWorkingDirectory, each_GameWorkingDirectory); output["GameWorkingDirectory"] = each_GameWorkingDirectory; Json::Value each_pfInstrumentationConfiguration; ToJsonUtilO(pfInstrumentationConfiguration, each_pfInstrumentationConfiguration); output["InstrumentationConfiguration"] = each_pfInstrumentationConfiguration; Json::Value each_IsOSPreview; ToJsonUtilP(IsOSPreview, each_IsOSPreview); output["IsOSPreview"] = each_IsOSPreview; @@ -4206,6 +4289,7 @@ namespace PlayFab Boxed CreationTime; std::list GameAssetReferences; std::list GameCertificateReferences; + std::list GameSecretReferences; std::string GameWorkingDirectory; Boxed pfInstrumentationConfiguration; Boxed IsOSPreview; @@ -4230,6 +4314,7 @@ namespace PlayFab CreationTime(), GameAssetReferences(), GameCertificateReferences(), + GameSecretReferences(), GameWorkingDirectory(), pfInstrumentationConfiguration(), IsOSPreview(), @@ -4255,6 +4340,7 @@ namespace PlayFab CreationTime(src.CreationTime), GameAssetReferences(src.GameAssetReferences), GameCertificateReferences(src.GameCertificateReferences), + GameSecretReferences(src.GameSecretReferences), GameWorkingDirectory(src.GameWorkingDirectory), pfInstrumentationConfiguration(src.pfInstrumentationConfiguration), IsOSPreview(src.IsOSPreview), @@ -4282,6 +4368,7 @@ namespace PlayFab FromJsonUtilT(input["CreationTime"], CreationTime); FromJsonUtilO(input["GameAssetReferences"], GameAssetReferences); FromJsonUtilO(input["GameCertificateReferences"], GameCertificateReferences); + FromJsonUtilO(input["GameSecretReferences"], GameSecretReferences); FromJsonUtilS(input["GameWorkingDirectory"], GameWorkingDirectory); FromJsonUtilO(input["InstrumentationConfiguration"], pfInstrumentationConfiguration); FromJsonUtilP(input["IsOSPreview"], IsOSPreview); @@ -4308,6 +4395,7 @@ namespace PlayFab Json::Value each_CreationTime; ToJsonUtilT(CreationTime, each_CreationTime); output["CreationTime"] = each_CreationTime; Json::Value each_GameAssetReferences; ToJsonUtilO(GameAssetReferences, each_GameAssetReferences); output["GameAssetReferences"] = each_GameAssetReferences; Json::Value each_GameCertificateReferences; ToJsonUtilO(GameCertificateReferences, each_GameCertificateReferences); output["GameCertificateReferences"] = each_GameCertificateReferences; + Json::Value each_GameSecretReferences; ToJsonUtilO(GameSecretReferences, each_GameSecretReferences); output["GameSecretReferences"] = each_GameSecretReferences; Json::Value each_GameWorkingDirectory; ToJsonUtilS(GameWorkingDirectory, each_GameWorkingDirectory); output["GameWorkingDirectory"] = each_GameWorkingDirectory; Json::Value each_pfInstrumentationConfiguration; ToJsonUtilO(pfInstrumentationConfiguration, each_pfInstrumentationConfiguration); output["InstrumentationConfiguration"] = each_pfInstrumentationConfiguration; Json::Value each_IsOSPreview; ToJsonUtilP(IsOSPreview, each_IsOSPreview); output["IsOSPreview"] = each_IsOSPreview; @@ -5292,6 +5380,40 @@ namespace PlayFab } }; + struct DeleteSecretRequest : public PlayFabRequestCommon + { + std::map CustomTags; + std::string Name; + + DeleteSecretRequest() : + PlayFabRequestCommon(), + CustomTags(), + Name() + {} + + DeleteSecretRequest(const DeleteSecretRequest& src) : + PlayFabRequestCommon(), + CustomTags(src.CustomTags), + Name(src.Name) + {} + + ~DeleteSecretRequest() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["CustomTags"], CustomTags); + FromJsonUtilS(input["Name"], Name); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; + Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name; + return output; + } + }; + struct EmptyResponse : public PlayFabResultCommon { @@ -8641,6 +8763,123 @@ namespace PlayFab } }; + struct ListSecretSummariesRequest : public PlayFabRequestCommon + { + std::map CustomTags; + Boxed PageSize; + std::string SkipToken; + + ListSecretSummariesRequest() : + PlayFabRequestCommon(), + CustomTags(), + PageSize(), + SkipToken() + {} + + ListSecretSummariesRequest(const ListSecretSummariesRequest& src) : + PlayFabRequestCommon(), + CustomTags(src.CustomTags), + PageSize(src.PageSize), + SkipToken(src.SkipToken) + {} + + ~ListSecretSummariesRequest() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["CustomTags"], CustomTags); + FromJsonUtilP(input["PageSize"], PageSize); + FromJsonUtilS(input["SkipToken"], SkipToken); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; + Json::Value each_PageSize; ToJsonUtilP(PageSize, each_PageSize); output["PageSize"] = each_PageSize; + Json::Value each_SkipToken; ToJsonUtilS(SkipToken, each_SkipToken); output["SkipToken"] = each_SkipToken; + return output; + } + }; + + struct SecretSummary : public PlayFabBaseModel + { + Boxed ExpirationDate; + std::string Name; + std::string Version; + + SecretSummary() : + PlayFabBaseModel(), + ExpirationDate(), + Name(), + Version() + {} + + SecretSummary(const SecretSummary& src) : + PlayFabBaseModel(), + ExpirationDate(src.ExpirationDate), + Name(src.Name), + Version(src.Version) + {} + + ~SecretSummary() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilT(input["ExpirationDate"], ExpirationDate); + FromJsonUtilS(input["Name"], Name); + FromJsonUtilS(input["Version"], Version); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_ExpirationDate; ToJsonUtilT(ExpirationDate, each_ExpirationDate); output["ExpirationDate"] = each_ExpirationDate; + Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name; + Json::Value each_Version; ToJsonUtilS(Version, each_Version); output["Version"] = each_Version; + return output; + } + }; + + struct ListSecretSummariesResponse : public PlayFabResultCommon + { + Int32 PageSize; + std::list SecretSummaries; + std::string SkipToken; + + ListSecretSummariesResponse() : + PlayFabResultCommon(), + PageSize(), + SecretSummaries(), + SkipToken() + {} + + ListSecretSummariesResponse(const ListSecretSummariesResponse& src) : + PlayFabResultCommon(), + PageSize(src.PageSize), + SecretSummaries(src.SecretSummaries), + SkipToken(src.SkipToken) + {} + + ~ListSecretSummariesResponse() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilP(input["PageSize"], PageSize); + FromJsonUtilO(input["SecretSummaries"], SecretSummaries); + FromJsonUtilS(input["SkipToken"], SkipToken); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_PageSize; ToJsonUtilP(PageSize, each_PageSize); output["PageSize"] = each_PageSize; + Json::Value each_SecretSummaries; ToJsonUtilO(SecretSummaries, each_SecretSummaries); output["SecretSummaries"] = each_SecretSummaries; + Json::Value each_SkipToken; ToJsonUtilS(SkipToken, each_SkipToken); output["SkipToken"] = each_SkipToken; + return output; + } + }; + struct ListServerBackfillTicketsForPlayerRequest : public PlayFabRequestCommon { std::map CustomTags; @@ -9354,6 +9593,45 @@ namespace PlayFab } }; + struct Secret : public PlayFabBaseModel + { + Boxed ExpirationDate; + std::string Name; + std::string Value; + + Secret() : + PlayFabBaseModel(), + ExpirationDate(), + Name(), + Value() + {} + + Secret(const Secret& src) : + PlayFabBaseModel(), + ExpirationDate(src.ExpirationDate), + Name(src.Name), + Value(src.Value) + {} + + ~Secret() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilT(input["ExpirationDate"], ExpirationDate); + FromJsonUtilS(input["Name"], Name); + FromJsonUtilS(input["Value"], Value); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_ExpirationDate; ToJsonUtilT(ExpirationDate, each_ExpirationDate); output["ExpirationDate"] = each_ExpirationDate; + Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name; + Json::Value each_Value; ToJsonUtilS(Value, each_Value); output["Value"] = each_Value; + return output; + } + }; + struct ShutdownMultiplayerServerRequest : public PlayFabRequestCommon { std::map CustomTags; @@ -9902,6 +10180,45 @@ namespace PlayFab } }; + struct UploadSecretRequest : public PlayFabRequestCommon + { + std::map CustomTags; + Boxed ForceUpdate; + Secret GameSecret; + + UploadSecretRequest() : + PlayFabRequestCommon(), + CustomTags(), + ForceUpdate(), + GameSecret() + {} + + UploadSecretRequest(const UploadSecretRequest& src) : + PlayFabRequestCommon(), + CustomTags(src.CustomTags), + ForceUpdate(src.ForceUpdate), + GameSecret(src.GameSecret) + {} + + ~UploadSecretRequest() = default; + + void FromJson(const Json::Value& input) override + { + FromJsonUtilS(input["CustomTags"], CustomTags); + FromJsonUtilP(input["ForceUpdate"], ForceUpdate); + FromJsonUtilO(input["GameSecret"], GameSecret); + } + + Json::Value ToJson() const override + { + Json::Value output; + Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags; + Json::Value each_ForceUpdate; ToJsonUtilP(ForceUpdate, each_ForceUpdate); output["ForceUpdate"] = each_ForceUpdate; + Json::Value each_GameSecret; ToJsonUtilO(GameSecret, each_GameSecret); output["GameSecret"] = each_GameSecret; + return output; + } + }; + } } diff --git a/code/include/playfab/PlayFabMultiplayerInstanceApi.h b/code/include/playfab/PlayFabMultiplayerInstanceApi.h index 9c07892c..566b3251 100644 --- a/code/include/playfab/PlayFabMultiplayerInstanceApi.h +++ b/code/include/playfab/PlayFabMultiplayerInstanceApi.h @@ -67,6 +67,7 @@ namespace PlayFab void DeleteContainerImageRepository(MultiplayerModels::DeleteContainerImageRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void DeleteLobby(MultiplayerModels::DeleteLobbyRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void DeleteRemoteUser(MultiplayerModels::DeleteRemoteUserRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + void DeleteSecret(MultiplayerModels::DeleteSecretRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void EnableMultiplayerServersForTitle(MultiplayerModels::EnableMultiplayerServersForTitleRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void FindFriendLobbies(MultiplayerModels::FindFriendLobbiesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void FindLobbies(MultiplayerModels::FindLobbiesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -105,6 +106,7 @@ namespace PlayFab void ListMultiplayerServers(MultiplayerModels::ListMultiplayerServersRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListPartyQosServers(MultiplayerModels::ListPartyQosServersRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListQosServersForTitle(MultiplayerModels::ListQosServersForTitleRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + void ListSecretSummaries(MultiplayerModels::ListSecretSummariesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListServerBackfillTicketsForPlayer(MultiplayerModels::ListServerBackfillTicketsForPlayerRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListTitleMultiplayerServersQuotaChanges(MultiplayerModels::ListTitleMultiplayerServersQuotaChangesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void ListVirtualMachineSummaries(MultiplayerModels::ListVirtualMachineSummariesRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); @@ -123,6 +125,7 @@ namespace PlayFab void UpdateLobby(MultiplayerModels::UpdateLobbyRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void UpdateLobbyAsServer(MultiplayerModels::UpdateLobbyAsServerRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); void UploadCertificate(MultiplayerModels::UploadCertificateRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); + void UploadSecret(MultiplayerModels::UploadSecretRequest& request, const ProcessApiCallback callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr); // ------------ Generated result handlers void OnCancelAllMatchmakingTicketsForPlayerResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -147,6 +150,7 @@ namespace PlayFab void OnDeleteContainerImageRepositoryResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnDeleteLobbyResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnDeleteRemoteUserResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + void OnDeleteSecretResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnEnableMultiplayerServersForTitleResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnFindFriendLobbiesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnFindLobbiesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -185,6 +189,7 @@ namespace PlayFab void OnListMultiplayerServersResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListPartyQosServersResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListQosServersForTitleResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + void OnListSecretSummariesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListServerBackfillTicketsForPlayerResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListTitleMultiplayerServersQuotaChangesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnListVirtualMachineSummariesResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); @@ -203,6 +208,7 @@ namespace PlayFab void OnUpdateLobbyResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnUpdateLobbyAsServerResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); void OnUploadCertificateResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); + void OnUploadSecretResult(int httpCode, const std::string& result, const std::shared_ptr& reqContainer); bool ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container); }; diff --git a/code/include/playfab/PlayFabServerDataModels.h b/code/include/playfab/PlayFabServerDataModels.h index acee2bac..f9f93bd3 100644 --- a/code/include/playfab/PlayFabServerDataModels.h +++ b/code/include/playfab/PlayFabServerDataModels.h @@ -5481,6 +5481,12 @@ namespace PlayFab GenericErrorCodesNoLinkedStatisticToLeaderboard, GenericErrorCodesStatDefinitionAlreadyLinkedToLeaderboard, GenericErrorCodesLinkingStatsNotAllowedForEntityType, + GenericErrorCodesLeaderboardCountLimitExceeded, + GenericErrorCodesLeaderboardSizeLimitExceeded, + GenericErrorCodesLeaderboardDefinitionModificationNotAllowedWhileLinked, + GenericErrorCodesStatisticDefinitionModificationNotAllowedWhileLinked, + GenericErrorCodesLeaderboardUpdateNotAllowedWhileLinked, + GenericErrorCodesCloudScriptAzureFunctionsEventHubRequestError, GenericErrorCodesMatchmakingEntityInvalid, GenericErrorCodesMatchmakingPlayerAttributesInvalid, GenericErrorCodesMatchmakingQueueNotFound, @@ -5681,29 +5687,52 @@ namespace PlayFab GenericErrorCodesCopilotDisabled, GenericErrorCodesCopilotInvalidRequest, GenericErrorCodesTrueSkillUnauthorized, - GenericErrorCodesTrueSkillBadRequest, + GenericErrorCodesTrueSkillInvalidTitleId, + GenericErrorCodesTrueSkillInvalidScenarioId, + GenericErrorCodesTrueSkillInvalidModelId, + GenericErrorCodesTrueSkillInvalidModelName, + GenericErrorCodesTrueSkillInvalidPlayerIds, + GenericErrorCodesTrueSkillInvalidEntityKey, + GenericErrorCodesTrueSkillInvalidConditionKey, + GenericErrorCodesTrueSkillInvalidConditionValue, + GenericErrorCodesTrueSkillInvalidConditionAffinityWeight, + GenericErrorCodesTrueSkillInvalidEventName, + GenericErrorCodesTrueSkillMatchResultCreated, GenericErrorCodesTrueSkillMatchResultAlreadySubmitted, + GenericErrorCodesTrueSkillBadPlayerIdInMatchResult, + GenericErrorCodesTrueSkillInvalidBotIdInMatchResult, GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult, - GenericErrorCodesTrueSkillInvalidRanksInMatchResult, - GenericErrorCodesTrueSkillNoWinnerInMatchResult, - GenericErrorCodesTrueSkillMissingRequiredCondition, - GenericErrorCodesTrueSkillMissingRequiredEvent, - GenericErrorCodesTrueSkillUnknownEventName, - GenericErrorCodesTrueSkillUnknownConditionKey, - GenericErrorCodesTrueSkillUnknownConditionValue, - GenericErrorCodesTrueSkillUnknownModelId, GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam, GenericErrorCodesTrueSkillPlayersInMatchResultExceedingLimit, GenericErrorCodesTrueSkillInvalidPreMatchPartyInMatchResult, GenericErrorCodesTrueSkillInvalidTimestampInMatchResult, + GenericErrorCodesTrueSkillStartTimeMissingInMatchResult, + GenericErrorCodesTrueSkillEndTimeMissingInMatchResult, GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult, GenericErrorCodesTrueSkillNoTeamInMatchResult, GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult, + GenericErrorCodesTrueSkillInvalidRanksInMatchResult, + GenericErrorCodesTrueSkillNoWinnerInMatchResult, + GenericErrorCodesTrueSkillMissingRequiredCondition, + GenericErrorCodesTrueSkillMissingRequiredEvent, + GenericErrorCodesTrueSkillUnknownEventName, + GenericErrorCodesTrueSkillInvalidEventCount, + GenericErrorCodesTrueSkillUnknownConditionKey, + GenericErrorCodesTrueSkillUnknownConditionValue, GenericErrorCodesTrueSkillScenarioConfigDoesNotExist, + GenericErrorCodesTrueSkillUnknownModelId, GenericErrorCodesTrueSkillNoModelInScenario, GenericErrorCodesTrueSkillNotSupportedForTitle, GenericErrorCodesTrueSkillModelIsNotActive, GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills, + GenericErrorCodesTrueSkillInvalidMaxIterations, + GenericErrorCodesTrueSkillEndTimeBeforeStartTime, + GenericErrorCodesTrueSkillInvalidJobId, + GenericErrorCodesTrueSkillInvalidMetadataId, + GenericErrorCodesTrueSkillMissingBuildVerison, + GenericErrorCodesTrueSkillJobAlreadyExists, + GenericErrorCodesTrueSkillJobNotFound, + GenericErrorCodesTrueSkillOperationCanceled, GenericErrorCodesStateShareUnauthorized, GenericErrorCodesStateShareStateNotFound, GenericErrorCodesStateShareLinkNotFound @@ -8516,6 +8545,36 @@ namespace PlayFab output = Json::Value("LinkingStatsNotAllowedForEntityType"); return; } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardCountLimitExceeded) + { + output = Json::Value("LeaderboardCountLimitExceeded"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardSizeLimitExceeded) + { + output = Json::Value("LeaderboardSizeLimitExceeded"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardDefinitionModificationNotAllowedWhileLinked) + { + output = Json::Value("LeaderboardDefinitionModificationNotAllowedWhileLinked"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesStatisticDefinitionModificationNotAllowedWhileLinked) + { + output = Json::Value("StatisticDefinitionModificationNotAllowedWhileLinked"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesLeaderboardUpdateNotAllowedWhileLinked) + { + output = Json::Value("LeaderboardUpdateNotAllowedWhileLinked"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesCloudScriptAzureFunctionsEventHubRequestError) + { + output = Json::Value("CloudScriptAzureFunctionsEventHubRequestError"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid) { output = Json::Value("MatchmakingEntityInvalid"); @@ -9516,59 +9575,79 @@ namespace PlayFab output = Json::Value("TrueSkillUnauthorized"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillBadRequest) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTitleId) { - output = Json::Value("TrueSkillBadRequest"); + output = Json::Value("TrueSkillInvalidTitleId"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidScenarioId) { - output = Json::Value("TrueSkillMatchResultAlreadySubmitted"); + output = Json::Value("TrueSkillInvalidScenarioId"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelId) { - output = Json::Value("TrueSkillDuplicatePlayerInMatchResult"); + output = Json::Value("TrueSkillInvalidModelId"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelName) { - output = Json::Value("TrueSkillInvalidRanksInMatchResult"); + output = Json::Value("TrueSkillInvalidModelName"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerIds) { - output = Json::Value("TrueSkillNoWinnerInMatchResult"); + output = Json::Value("TrueSkillInvalidPlayerIds"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEntityKey) { - output = Json::Value("TrueSkillMissingRequiredCondition"); + output = Json::Value("TrueSkillInvalidEntityKey"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionKey) { - output = Json::Value("TrueSkillMissingRequiredEvent"); + output = Json::Value("TrueSkillInvalidConditionKey"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionValue) { - output = Json::Value("TrueSkillUnknownEventName"); + output = Json::Value("TrueSkillInvalidConditionValue"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionAffinityWeight) { - output = Json::Value("TrueSkillUnknownConditionKey"); + output = Json::Value("TrueSkillInvalidConditionAffinityWeight"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventName) { - output = Json::Value("TrueSkillUnknownConditionValue"); + output = Json::Value("TrueSkillInvalidEventName"); return; } - if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId) + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultCreated) { - output = Json::Value("TrueSkillUnknownModelId"); + output = Json::Value("TrueSkillMatchResultCreated"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted) + { + output = Json::Value("TrueSkillMatchResultAlreadySubmitted"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillBadPlayerIdInMatchResult) + { + output = Json::Value("TrueSkillBadPlayerIdInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidBotIdInMatchResult) + { + output = Json::Value("TrueSkillInvalidBotIdInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult) + { + output = Json::Value("TrueSkillDuplicatePlayerInMatchResult"); return; } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoPlayerInMatchResultTeam) @@ -9591,6 +9670,16 @@ namespace PlayFab output = Json::Value("TrueSkillInvalidTimestampInMatchResult"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillStartTimeMissingInMatchResult) + { + output = Json::Value("TrueSkillStartTimeMissingInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeMissingInMatchResult) + { + output = Json::Value("TrueSkillEndTimeMissingInMatchResult"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult) { output = Json::Value("TrueSkillInvalidPlayerSecondsPlayedInMatchResult"); @@ -9606,11 +9695,56 @@ namespace PlayFab output = Json::Value("TrueSkillNotEnoughTeamsInMatchResult"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult) + { + output = Json::Value("TrueSkillInvalidRanksInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult) + { + output = Json::Value("TrueSkillNoWinnerInMatchResult"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition) + { + output = Json::Value("TrueSkillMissingRequiredCondition"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent) + { + output = Json::Value("TrueSkillMissingRequiredEvent"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName) + { + output = Json::Value("TrueSkillUnknownEventName"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventCount) + { + output = Json::Value("TrueSkillInvalidEventCount"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey) + { + output = Json::Value("TrueSkillUnknownConditionKey"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue) + { + output = Json::Value("TrueSkillUnknownConditionValue"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillScenarioConfigDoesNotExist) { output = Json::Value("TrueSkillScenarioConfigDoesNotExist"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId) + { + output = Json::Value("TrueSkillUnknownModelId"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesTrueSkillNoModelInScenario) { output = Json::Value("TrueSkillNoModelInScenario"); @@ -9631,6 +9765,46 @@ namespace PlayFab output = Json::Value("TrueSkillUnauthorizedToQueryOtherPlayerSkills"); return; } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMaxIterations) + { + output = Json::Value("TrueSkillInvalidMaxIterations"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeBeforeStartTime) + { + output = Json::Value("TrueSkillEndTimeBeforeStartTime"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidJobId) + { + output = Json::Value("TrueSkillInvalidJobId"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMetadataId) + { + output = Json::Value("TrueSkillInvalidMetadataId"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillMissingBuildVerison) + { + output = Json::Value("TrueSkillMissingBuildVerison"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillJobAlreadyExists) + { + output = Json::Value("TrueSkillJobAlreadyExists"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillJobNotFound) + { + output = Json::Value("TrueSkillJobNotFound"); + return; + } + if (input == GenericErrorCodes::GenericErrorCodesTrueSkillOperationCanceled) + { + output = Json::Value("TrueSkillOperationCanceled"); + return; + } if (input == GenericErrorCodes::GenericErrorCodesStateShareUnauthorized) { output = Json::Value("StateShareUnauthorized"); @@ -12459,6 +12633,36 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesLinkingStatsNotAllowedForEntityType; return; } + if (inputStr == "LeaderboardCountLimitExceeded") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardCountLimitExceeded; + return; + } + if (inputStr == "LeaderboardSizeLimitExceeded") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardSizeLimitExceeded; + return; + } + if (inputStr == "LeaderboardDefinitionModificationNotAllowedWhileLinked") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardDefinitionModificationNotAllowedWhileLinked; + return; + } + if (inputStr == "StatisticDefinitionModificationNotAllowedWhileLinked") + { + output = GenericErrorCodes::GenericErrorCodesStatisticDefinitionModificationNotAllowedWhileLinked; + return; + } + if (inputStr == "LeaderboardUpdateNotAllowedWhileLinked") + { + output = GenericErrorCodes::GenericErrorCodesLeaderboardUpdateNotAllowedWhileLinked; + return; + } + if (inputStr == "CloudScriptAzureFunctionsEventHubRequestError") + { + output = GenericErrorCodes::GenericErrorCodesCloudScriptAzureFunctionsEventHubRequestError; + return; + } if (inputStr == "MatchmakingEntityInvalid") { output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid; @@ -13459,59 +13663,79 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillUnauthorized; return; } - if (inputStr == "TrueSkillBadRequest") + if (inputStr == "TrueSkillInvalidTitleId") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillBadRequest; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTitleId; return; } - if (inputStr == "TrueSkillMatchResultAlreadySubmitted") + if (inputStr == "TrueSkillInvalidScenarioId") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidScenarioId; return; } - if (inputStr == "TrueSkillDuplicatePlayerInMatchResult") + if (inputStr == "TrueSkillInvalidModelId") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelId; return; } - if (inputStr == "TrueSkillInvalidRanksInMatchResult") + if (inputStr == "TrueSkillInvalidModelName") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidModelName; return; } - if (inputStr == "TrueSkillNoWinnerInMatchResult") + if (inputStr == "TrueSkillInvalidPlayerIds") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerIds; return; } - if (inputStr == "TrueSkillMissingRequiredCondition") + if (inputStr == "TrueSkillInvalidEntityKey") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEntityKey; return; } - if (inputStr == "TrueSkillMissingRequiredEvent") + if (inputStr == "TrueSkillInvalidConditionKey") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionKey; return; } - if (inputStr == "TrueSkillUnknownEventName") + if (inputStr == "TrueSkillInvalidConditionValue") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionValue; return; } - if (inputStr == "TrueSkillUnknownConditionKey") + if (inputStr == "TrueSkillInvalidConditionAffinityWeight") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidConditionAffinityWeight; return; } - if (inputStr == "TrueSkillUnknownConditionValue") + if (inputStr == "TrueSkillInvalidEventName") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue; + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventName; return; } - if (inputStr == "TrueSkillUnknownModelId") + if (inputStr == "TrueSkillMatchResultCreated") { - output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId; + output = GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultCreated; + return; + } + if (inputStr == "TrueSkillMatchResultAlreadySubmitted") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMatchResultAlreadySubmitted; + return; + } + if (inputStr == "TrueSkillBadPlayerIdInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillBadPlayerIdInMatchResult; + return; + } + if (inputStr == "TrueSkillInvalidBotIdInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidBotIdInMatchResult; + return; + } + if (inputStr == "TrueSkillDuplicatePlayerInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillDuplicatePlayerInMatchResult; return; } if (inputStr == "TrueSkillNoPlayerInMatchResultTeam") @@ -13534,6 +13758,16 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidTimestampInMatchResult; return; } + if (inputStr == "TrueSkillStartTimeMissingInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillStartTimeMissingInMatchResult; + return; + } + if (inputStr == "TrueSkillEndTimeMissingInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeMissingInMatchResult; + return; + } if (inputStr == "TrueSkillInvalidPlayerSecondsPlayedInMatchResult") { output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidPlayerSecondsPlayedInMatchResult; @@ -13549,11 +13783,56 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillNotEnoughTeamsInMatchResult; return; } + if (inputStr == "TrueSkillInvalidRanksInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidRanksInMatchResult; + return; + } + if (inputStr == "TrueSkillNoWinnerInMatchResult") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillNoWinnerInMatchResult; + return; + } + if (inputStr == "TrueSkillMissingRequiredCondition") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredCondition; + return; + } + if (inputStr == "TrueSkillMissingRequiredEvent") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingRequiredEvent; + return; + } + if (inputStr == "TrueSkillUnknownEventName") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownEventName; + return; + } + if (inputStr == "TrueSkillInvalidEventCount") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidEventCount; + return; + } + if (inputStr == "TrueSkillUnknownConditionKey") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionKey; + return; + } + if (inputStr == "TrueSkillUnknownConditionValue") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownConditionValue; + return; + } if (inputStr == "TrueSkillScenarioConfigDoesNotExist") { output = GenericErrorCodes::GenericErrorCodesTrueSkillScenarioConfigDoesNotExist; return; } + if (inputStr == "TrueSkillUnknownModelId") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillUnknownModelId; + return; + } if (inputStr == "TrueSkillNoModelInScenario") { output = GenericErrorCodes::GenericErrorCodesTrueSkillNoModelInScenario; @@ -13574,6 +13853,46 @@ namespace PlayFab output = GenericErrorCodes::GenericErrorCodesTrueSkillUnauthorizedToQueryOtherPlayerSkills; return; } + if (inputStr == "TrueSkillInvalidMaxIterations") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMaxIterations; + return; + } + if (inputStr == "TrueSkillEndTimeBeforeStartTime") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillEndTimeBeforeStartTime; + return; + } + if (inputStr == "TrueSkillInvalidJobId") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidJobId; + return; + } + if (inputStr == "TrueSkillInvalidMetadataId") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillInvalidMetadataId; + return; + } + if (inputStr == "TrueSkillMissingBuildVerison") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillMissingBuildVerison; + return; + } + if (inputStr == "TrueSkillJobAlreadyExists") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillJobAlreadyExists; + return; + } + if (inputStr == "TrueSkillJobNotFound") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillJobNotFound; + return; + } + if (inputStr == "TrueSkillOperationCanceled") + { + output = GenericErrorCodes::GenericErrorCodesTrueSkillOperationCanceled; + return; + } if (inputStr == "StateShareUnauthorized") { output = GenericErrorCodes::GenericErrorCodesStateShareUnauthorized; @@ -14231,6 +14550,55 @@ namespace PlayFab } } + enum class UserFamilyType + { + UserFamilyTypeNone, + UserFamilyTypeXbox, + UserFamilyTypeSteam + }; + + inline void ToJsonEnum(const UserFamilyType input, Json::Value& output) + { + if (input == UserFamilyType::UserFamilyTypeNone) + { + output = Json::Value("None"); + return; + } + if (input == UserFamilyType::UserFamilyTypeXbox) + { + output = Json::Value("Xbox"); + return; + } + if (input == UserFamilyType::UserFamilyTypeSteam) + { + output = Json::Value("Steam"); + return; + } + } + inline void FromJsonEnum(const Json::Value& input, UserFamilyType& output) + { + if (!input.isString()) + { + return; + } + const std::string& inputStr = input.asString(); + if (inputStr == "None") + { + output = UserFamilyType::UserFamilyTypeNone; + return; + } + if (inputStr == "Xbox") + { + output = UserFamilyType::UserFamilyTypeXbox; + return; + } + if (inputStr == "Steam") + { + output = UserFamilyType::UserFamilyTypeSteam; + return; + } + } + enum class UserOrigination { UserOriginationOrganic, @@ -15999,10 +16367,10 @@ namespace PlayFab std::string BanId; Boxed Created; Boxed Expires; - Boxed IncludeMicrosoftFamily; std::string IPAddress; std::string PlayFabId; std::string Reason; + std::string UserFamilyType; BanInfo() : PlayFabBaseModel(), @@ -16010,10 +16378,10 @@ namespace PlayFab BanId(), Created(), Expires(), - IncludeMicrosoftFamily(), IPAddress(), PlayFabId(), - Reason() + Reason(), + UserFamilyType() {} BanInfo(const BanInfo& src) : @@ -16022,10 +16390,10 @@ namespace PlayFab BanId(src.BanId), Created(src.Created), Expires(src.Expires), - IncludeMicrosoftFamily(src.IncludeMicrosoftFamily), IPAddress(src.IPAddress), PlayFabId(src.PlayFabId), - Reason(src.Reason) + Reason(src.Reason), + UserFamilyType(src.UserFamilyType) {} ~BanInfo() = default; @@ -16036,10 +16404,10 @@ namespace PlayFab FromJsonUtilS(input["BanId"], BanId); FromJsonUtilT(input["Created"], Created); FromJsonUtilT(input["Expires"], Expires); - FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily); FromJsonUtilS(input["IPAddress"], IPAddress); FromJsonUtilS(input["PlayFabId"], PlayFabId); FromJsonUtilS(input["Reason"], Reason); + FromJsonUtilS(input["UserFamilyType"], UserFamilyType); } Json::Value ToJson() const override @@ -16049,10 +16417,10 @@ namespace PlayFab Json::Value each_BanId; ToJsonUtilS(BanId, each_BanId); output["BanId"] = each_BanId; Json::Value each_Created; ToJsonUtilT(Created, each_Created); output["Created"] = each_Created; Json::Value each_Expires; ToJsonUtilT(Expires, each_Expires); output["Expires"] = each_Expires; - Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily; Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress; Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId; Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason; + Json::Value each_UserFamilyType; ToJsonUtilS(UserFamilyType, each_UserFamilyType); output["UserFamilyType"] = each_UserFamilyType; return output; } }; @@ -16060,27 +16428,27 @@ namespace PlayFab struct BanRequest : public PlayFabRequestCommon { Boxed DurationInHours; - Boxed IncludeMicrosoftFamily; std::string IPAddress; std::string PlayFabId; std::string Reason; + Boxed pfUserFamilyType; BanRequest() : PlayFabRequestCommon(), DurationInHours(), - IncludeMicrosoftFamily(), IPAddress(), PlayFabId(), - Reason() + Reason(), + pfUserFamilyType() {} BanRequest(const BanRequest& src) : PlayFabRequestCommon(), DurationInHours(src.DurationInHours), - IncludeMicrosoftFamily(src.IncludeMicrosoftFamily), IPAddress(src.IPAddress), PlayFabId(src.PlayFabId), - Reason(src.Reason) + Reason(src.Reason), + pfUserFamilyType(src.pfUserFamilyType) {} ~BanRequest() = default; @@ -16088,20 +16456,20 @@ namespace PlayFab void FromJson(const Json::Value& input) override { FromJsonUtilP(input["DurationInHours"], DurationInHours); - FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily); FromJsonUtilS(input["IPAddress"], IPAddress); FromJsonUtilS(input["PlayFabId"], PlayFabId); FromJsonUtilS(input["Reason"], Reason); + FromJsonUtilE(input["UserFamilyType"], pfUserFamilyType); } Json::Value ToJson() const override { Json::Value output; Json::Value each_DurationInHours; ToJsonUtilP(DurationInHours, each_DurationInHours); output["DurationInHours"] = each_DurationInHours; - Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily; Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress; Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId; Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason; + Json::Value each_pfUserFamilyType; ToJsonUtilE(pfUserFamilyType, each_pfUserFamilyType); output["UserFamilyType"] = each_pfUserFamilyType; return output; } }; @@ -26039,20 +26407,20 @@ namespace PlayFab Boxed Active; std::string BanId; Boxed Expires; - Boxed IncludeMicrosoftFamily; std::string IPAddress; Boxed Permanent; std::string Reason; + Boxed pfUserFamilyType; UpdateBanRequest() : PlayFabRequestCommon(), Active(), BanId(), Expires(), - IncludeMicrosoftFamily(), IPAddress(), Permanent(), - Reason() + Reason(), + pfUserFamilyType() {} UpdateBanRequest(const UpdateBanRequest& src) : @@ -26060,10 +26428,10 @@ namespace PlayFab Active(src.Active), BanId(src.BanId), Expires(src.Expires), - IncludeMicrosoftFamily(src.IncludeMicrosoftFamily), IPAddress(src.IPAddress), Permanent(src.Permanent), - Reason(src.Reason) + Reason(src.Reason), + pfUserFamilyType(src.pfUserFamilyType) {} ~UpdateBanRequest() = default; @@ -26073,10 +26441,10 @@ namespace PlayFab FromJsonUtilP(input["Active"], Active); FromJsonUtilS(input["BanId"], BanId); FromJsonUtilT(input["Expires"], Expires); - FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily); FromJsonUtilS(input["IPAddress"], IPAddress); FromJsonUtilP(input["Permanent"], Permanent); FromJsonUtilS(input["Reason"], Reason); + FromJsonUtilE(input["UserFamilyType"], pfUserFamilyType); } Json::Value ToJson() const override @@ -26085,10 +26453,10 @@ namespace PlayFab Json::Value each_Active; ToJsonUtilP(Active, each_Active); output["Active"] = each_Active; Json::Value each_BanId; ToJsonUtilS(BanId, each_BanId); output["BanId"] = each_BanId; Json::Value each_Expires; ToJsonUtilT(Expires, each_Expires); output["Expires"] = each_Expires; - Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily; Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress; Json::Value each_Permanent; ToJsonUtilP(Permanent, each_Permanent); output["Permanent"] = each_Permanent; Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason; + Json::Value each_pfUserFamilyType; ToJsonUtilE(pfUserFamilyType, each_pfUserFamilyType); output["UserFamilyType"] = each_pfUserFamilyType; return output; } }; diff --git a/code/source/playfab/PlayFabCloudScriptApi.cpp b/code/source/playfab/PlayFabCloudScriptApi.cpp index b4fc6178..3ddbd9fa 100644 --- a/code/source/playfab/PlayFabCloudScriptApi.cpp +++ b/code/source/playfab/PlayFabCloudScriptApi.cpp @@ -176,6 +176,55 @@ namespace PlayFab } } + void PlayFabCloudScriptAPI::ListEventHubFunctions( + ListFunctionsRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : PlayFabSettings::staticPlayer; + std::shared_ptr settings = PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/CloudScript/ListEventHubFunctions", + headers, + jsonAsString, + OnListEventHubFunctionsResult, + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabCloudScriptAPI::OnListEventHubFunctionsResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + ListEventHubFunctionsResult outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = (*static_cast *>(internalPtr.get())); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabCloudScriptAPI::ListFunctions( ListFunctionsRequest& request, const ProcessApiCallback callback, @@ -519,6 +568,55 @@ namespace PlayFab } } + void PlayFabCloudScriptAPI::RegisterEventHubFunction( + RegisterEventHubFunctionRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : PlayFabSettings::staticPlayer; + std::shared_ptr settings = PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/CloudScript/RegisterEventHubFunction", + headers, + jsonAsString, + OnRegisterEventHubFunctionResult, + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabCloudScriptAPI::OnRegisterEventHubFunctionResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + EmptyResult outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = (*static_cast *>(internalPtr.get())); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabCloudScriptAPI::RegisterHttpFunction( RegisterHttpFunctionRequest& request, const ProcessApiCallback callback, diff --git a/code/source/playfab/PlayFabCloudScriptInstanceApi.cpp b/code/source/playfab/PlayFabCloudScriptInstanceApi.cpp index 0b9c7134..92d9dce2 100644 --- a/code/source/playfab/PlayFabCloudScriptInstanceApi.cpp +++ b/code/source/playfab/PlayFabCloudScriptInstanceApi.cpp @@ -209,6 +209,56 @@ namespace PlayFab } } + void PlayFabCloudScriptInstanceAPI::ListEventHubFunctions( + ListFunctionsRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : this->m_context; + std::shared_ptr settings = this->m_settings != nullptr ? this->m_settings : PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::shared_ptr authenticationContext = request.authenticationContext == nullptr ? this->m_context : request.authenticationContext; + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/CloudScript/ListEventHubFunctions", + headers, + jsonAsString, + std::bind(&PlayFabCloudScriptInstanceAPI::OnListEventHubFunctionsResult, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabCloudScriptInstanceAPI::OnListEventHubFunctionsResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + ListEventHubFunctionsResult outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = *static_cast *>(internalPtr.get()); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabCloudScriptInstanceAPI::ListFunctions( ListFunctionsRequest& request, const ProcessApiCallback callback, @@ -559,6 +609,56 @@ namespace PlayFab } } + void PlayFabCloudScriptInstanceAPI::RegisterEventHubFunction( + RegisterEventHubFunctionRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : this->m_context; + std::shared_ptr settings = this->m_settings != nullptr ? this->m_settings : PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::shared_ptr authenticationContext = request.authenticationContext == nullptr ? this->m_context : request.authenticationContext; + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/CloudScript/RegisterEventHubFunction", + headers, + jsonAsString, + std::bind(&PlayFabCloudScriptInstanceAPI::OnRegisterEventHubFunctionResult, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabCloudScriptInstanceAPI::OnRegisterEventHubFunctionResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + EmptyResult outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = *static_cast *>(internalPtr.get()); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabCloudScriptInstanceAPI::RegisterHttpFunction( RegisterHttpFunctionRequest& request, const ProcessApiCallback callback, diff --git a/code/source/playfab/PlayFabMultiplayerApi.cpp b/code/source/playfab/PlayFabMultiplayerApi.cpp index d38b4de7..738d2b01 100644 --- a/code/source/playfab/PlayFabMultiplayerApi.cpp +++ b/code/source/playfab/PlayFabMultiplayerApi.cpp @@ -1107,6 +1107,55 @@ namespace PlayFab } } + void PlayFabMultiplayerAPI::DeleteSecret( + DeleteSecretRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : PlayFabSettings::staticPlayer; + std::shared_ptr settings = PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/MultiplayerServer/DeleteSecret", + headers, + jsonAsString, + OnDeleteSecretResult, + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabMultiplayerAPI::OnDeleteSecretResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + EmptyResponse outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = (*static_cast *>(internalPtr.get())); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabMultiplayerAPI::EnableMultiplayerServersForTitle( EnableMultiplayerServersForTitleRequest& request, const ProcessApiCallback callback, @@ -2968,6 +3017,55 @@ namespace PlayFab } } + void PlayFabMultiplayerAPI::ListSecretSummaries( + ListSecretSummariesRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : PlayFabSettings::staticPlayer; + std::shared_ptr settings = PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/MultiplayerServer/ListSecretSummaries", + headers, + jsonAsString, + OnListSecretSummariesResult, + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabMultiplayerAPI::OnListSecretSummariesResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + ListSecretSummariesResponse outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = (*static_cast *>(internalPtr.get())); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabMultiplayerAPI::ListServerBackfillTicketsForPlayer( ListServerBackfillTicketsForPlayerRequest& request, const ProcessApiCallback callback, @@ -3850,6 +3948,55 @@ namespace PlayFab } } + void PlayFabMultiplayerAPI::UploadSecret( + UploadSecretRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : PlayFabSettings::staticPlayer; + std::shared_ptr settings = PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/MultiplayerServer/UploadSecret", + headers, + jsonAsString, + OnUploadSecretResult, + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabMultiplayerAPI::OnUploadSecretResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + EmptyResponse outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = (*static_cast *>(internalPtr.get())); + callback(outResult, container.GetCustomData()); + } + } + } + bool PlayFabMultiplayerAPI::ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container) { if (container.errorWrapper.HttpCode == 200) diff --git a/code/source/playfab/PlayFabMultiplayerInstanceApi.cpp b/code/source/playfab/PlayFabMultiplayerInstanceApi.cpp index a10c25a4..0400c8d2 100644 --- a/code/source/playfab/PlayFabMultiplayerInstanceApi.cpp +++ b/code/source/playfab/PlayFabMultiplayerInstanceApi.cpp @@ -1159,6 +1159,56 @@ namespace PlayFab } } + void PlayFabMultiplayerInstanceAPI::DeleteSecret( + DeleteSecretRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : this->m_context; + std::shared_ptr settings = this->m_settings != nullptr ? this->m_settings : PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::shared_ptr authenticationContext = request.authenticationContext == nullptr ? this->m_context : request.authenticationContext; + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/MultiplayerServer/DeleteSecret", + headers, + jsonAsString, + std::bind(&PlayFabMultiplayerInstanceAPI::OnDeleteSecretResult, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabMultiplayerInstanceAPI::OnDeleteSecretResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + EmptyResponse outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = *static_cast *>(internalPtr.get()); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabMultiplayerInstanceAPI::EnableMultiplayerServersForTitle( EnableMultiplayerServersForTitleRequest& request, const ProcessApiCallback callback, @@ -3058,6 +3108,56 @@ namespace PlayFab } } + void PlayFabMultiplayerInstanceAPI::ListSecretSummaries( + ListSecretSummariesRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : this->m_context; + std::shared_ptr settings = this->m_settings != nullptr ? this->m_settings : PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::shared_ptr authenticationContext = request.authenticationContext == nullptr ? this->m_context : request.authenticationContext; + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/MultiplayerServer/ListSecretSummaries", + headers, + jsonAsString, + std::bind(&PlayFabMultiplayerInstanceAPI::OnListSecretSummariesResult, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabMultiplayerInstanceAPI::OnListSecretSummariesResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + ListSecretSummariesResponse outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = *static_cast *>(internalPtr.get()); + callback(outResult, container.GetCustomData()); + } + } + } + void PlayFabMultiplayerInstanceAPI::ListServerBackfillTicketsForPlayer( ListServerBackfillTicketsForPlayerRequest& request, const ProcessApiCallback callback, @@ -3958,6 +4058,56 @@ namespace PlayFab } } + void PlayFabMultiplayerInstanceAPI::UploadSecret( + UploadSecretRequest& request, + const ProcessApiCallback callback, + const ErrorCallback errorCallback, + void* customData + ) + { + std::shared_ptr context = request.authenticationContext != nullptr ? request.authenticationContext : this->m_context; + std::shared_ptr settings = this->m_settings != nullptr ? this->m_settings : PlayFabSettings::staticSettings; + + IPlayFabHttpPlugin& http = *PlayFabPluginManager::GetPlugin(PlayFabPluginContract::PlayFab_Transport); + const Json::Value requestJson = request.ToJson(); + std::string jsonAsString = requestJson.toStyledString(); + + std::shared_ptr authenticationContext = request.authenticationContext == nullptr ? this->m_context : request.authenticationContext; + std::unordered_map headers; + headers.emplace("X-EntityToken", context->entityToken); + + auto reqContainer = std::unique_ptr(new CallRequestContainer( + "/MultiplayerServer/UploadSecret", + headers, + jsonAsString, + std::bind(&PlayFabMultiplayerInstanceAPI::OnUploadSecretResult, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), + settings, + context, + customData)); + + reqContainer->successCallback = std::shared_ptr((callback == nullptr) ? nullptr : new ProcessApiCallback(callback)); + reqContainer->errorCallback = errorCallback; + + http.MakePostRequest(std::unique_ptr(static_cast(reqContainer.release()))); + } + + void PlayFabMultiplayerInstanceAPI::OnUploadSecretResult(int /*httpCode*/, const std::string& /*result*/, const std::shared_ptr& reqContainer) + { + CallRequestContainer& container = static_cast(*reqContainer); + std::shared_ptr context = container.GetContext(); + + EmptyResponse outResult; + if (ValidateResult(outResult, container)) + { + std::shared_ptr internalPtr = container.successCallback; + if (internalPtr.get() != nullptr) + { + const auto& callback = *static_cast *>(internalPtr.get()); + callback(outResult, container.GetCustomData()); + } + } + } + bool PlayFabMultiplayerInstanceAPI::ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container) { if (container.errorWrapper.HttpCode == 200) diff --git a/code/source/playfab/PlayFabSettings.cpp b/code/source/playfab/PlayFabSettings.cpp index 3d2cba62..3257aa37 100644 --- a/code/source/playfab/PlayFabSettings.cpp +++ b/code/source/playfab/PlayFabSettings.cpp @@ -7,9 +7,9 @@ namespace PlayFab // Control whether all callbacks are threaded or whether the user manually controls callback timing from their main-thread // Note ANY api call may synchronously throw an exception if the title id is not set bool PlayFabSettings::threadedCallbacks = false; - const std::string PlayFabSettings::sdkVersion = "3.135.240412"; - const std::string PlayFabSettings::buildIdentifier = "adobuild_xplatcppsdk_117"; - const std::string PlayFabSettings::versionString = "XPlatCppSdk-3.135.240412"; + const std::string PlayFabSettings::sdkVersion = "3.136.240426"; + const std::string PlayFabSettings::buildIdentifier = "adobuild_xplatcppsdk_118"; + const std::string PlayFabSettings::versionString = "XPlatCppSdk-3.136.240426"; std::string PlayFabSettings::productionEnvironmentURL = ".playfabapi.com"; ErrorCallback PlayFabSettings::globalErrorHandler = nullptr; diff --git a/com.playfab.xplatcppsdk.v141.autopkg b/com.playfab.xplatcppsdk.v141.autopkg index 60db50f7..127c4fcd 100644 --- a/com.playfab.xplatcppsdk.v141.autopkg +++ b/com.playfab.xplatcppsdk.v141.autopkg @@ -8,7 +8,7 @@ configurations { nuget { nuspec { id = "com.playfab.xplatcppsdk.v141"; - version : 3.135.240412; + version : 3.136.240426; title: "PlayFab Cross Platform C++ Sdk for Visual Studio 2017"; summary: "PlayFab is the unified backend platform for games and everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience."; authors: "PlayFab"; @@ -18,7 +18,7 @@ nuget { iconUrl: "https://playfab.com/assets/img/playfab-mark.png"; requireLicenseAcceptance: false; description: "Authentication, in-game commerce, player data, title data, inventory, characters, statistics, leaderboards, analytics and reporting, friends, multiplayer, matchmaking, tournaments, cloud script, trading, real-time event handling, player management, live ops, and server hosting for all major platforms/devices and games of any scale. This sdk gives your game the ability log into PlayFab and access cloud data and services."; - releaseNotes: "https://api.playfab.com/releaseNotes/#240412"; + releaseNotes: "https://api.playfab.com/releaseNotes/#240426"; copyright: "Copyright 2024"; language: "C++"; tags: { PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native }; diff --git a/com.playfab.xplatcppsdk.v141.nuspec b/com.playfab.xplatcppsdk.v141.nuspec index d6a07a6d..e83df406 100644 --- a/com.playfab.xplatcppsdk.v141.nuspec +++ b/com.playfab.xplatcppsdk.v141.nuspec @@ -2,14 +2,14 @@ com.playfab.xplatcppsdk.v141 - 3.135.240412 + 3.136.240426 Microsoft Microsoft http://github.com/PlayFab/XPlatCppSdk Apache-2.0 ./images/icon.png false - https://api.playfab.com/releaseNotes/#3.135.240412 + https://api.playfab.com/releaseNotes/#3.136.240426 Microsoft Azure PlayFab XPlatCppSdk © Microsoft Corporation. All rights reserved. Microsoft Azure PlayFab Baas Paas JSON REST HTTP SSL API cloud liveops game gamedev native nativepackage diff --git a/com.playfab.xplatcppsdk.v142.autopkg b/com.playfab.xplatcppsdk.v142.autopkg index 43ffc87c..2d42225b 100644 --- a/com.playfab.xplatcppsdk.v142.autopkg +++ b/com.playfab.xplatcppsdk.v142.autopkg @@ -8,7 +8,7 @@ configurations { nuget { nuspec { id = "com.playfab.xplatcppsdk.v142"; - version : 3.135.240412; + version : 3.136.240426; title: "PlayFab Cross Platform C++ Sdk for Visual Studio 2019+"; summary: "PlayFab is the unified backend platform for games and everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience."; authors: "PlayFab"; @@ -18,7 +18,7 @@ nuget { iconUrl: "https://playfab.com/assets/img/playfab-mark.png"; requireLicenseAcceptance: false; description: "Authentication, in-game commerce, player data, title data, inventory, characters, statistics, leaderboards, analytics and reporting, friends, multiplayer, matchmaking, tournaments, cloud script, trading, real-time event handling, player management, live ops, and server hosting for all major platforms/devices and games of any scale. This sdk gives your game the ability log into PlayFab and access cloud data and services."; - releaseNotes: "https://api.playfab.com/releaseNotes/#240412"; + releaseNotes: "https://api.playfab.com/releaseNotes/#240426"; copyright: "Copyright 2024"; language: "C++"; tags: { PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native }; diff --git a/com.playfab.xplatcppsdk.v142.nuspec b/com.playfab.xplatcppsdk.v142.nuspec index b8bdfdb6..8d1b0022 100644 --- a/com.playfab.xplatcppsdk.v142.nuspec +++ b/com.playfab.xplatcppsdk.v142.nuspec @@ -2,14 +2,14 @@ com.playfab.xplatcppsdk.v142 - 3.135.240412 + 3.136.240426 Microsoft Microsoft http://github.com/PlayFab/XPlatCppSdk Apache-2.0 ./images/icon.png false - https://api.playfab.com/releaseNotes/#3.135.240412 + https://api.playfab.com/releaseNotes/#3.136.240426 Microsoft Azure PlayFab XPlatCppSdk © Microsoft Corporation. All rights reserved. Microsoft Azure PlayFab Baas Paas JSON REST HTTP SSL API cloud liveops game gamedev native nativepackage diff --git a/com.playfab.xplatxboxsdk.v141.autopkg b/com.playfab.xplatxboxsdk.v141.autopkg index feabf0fb..8884a0e0 100644 --- a/com.playfab.xplatxboxsdk.v141.autopkg +++ b/com.playfab.xplatxboxsdk.v141.autopkg @@ -18,7 +18,7 @@ configurations { nuget { nuspec { id = "com.playfab.xplatxboxsdk.v141"; - version : 3.135.240412; + version : 3.136.240426; title: "PlayFab Xbox Platform C++ Sdk for Visual Studio 2017"; summary: "PlayFab is the unified backend platform for games and everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience."; authors: "PlayFab"; @@ -28,7 +28,7 @@ nuget { iconUrl: "https://playfab.com/assets/img/playfab-mark.png"; requireLicenseAcceptance: false; description: "Authentication, in-game commerce, player data, title data, inventory, characters, statistics, leaderboards, analytics and reporting, friends, multiplayer, matchmaking, tournaments, cloud script, trading, real-time event handling, player management, live ops, and server hosting for all major platforms/devices and games of any scale. This sdk gives your game the ability log into PlayFab and access cloud data and services."; - releaseNotes: "https://api.playfab.com/releaseNotes/#240412"; + releaseNotes: "https://api.playfab.com/releaseNotes/#240426"; copyright: "Copyright 2024"; language: "C++"; tags: { PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native, xbox };