Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#201014
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Oct 14, 2020
2 parents 0fa79d5 + bd5ddbb commit 8df07cd
Show file tree
Hide file tree
Showing 19 changed files with 1,180 additions and 36 deletions.
6 changes: 3 additions & 3 deletions build/Xbox/TestXboxApp/TestXboxApp.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<ShaderModel>5.0</ShaderModel>
</FXCompile>
<CustomBuildStep>
<Command>copy $(PF_TEST_TITLE_DATA_JSON) $(Platform)\Layout\Image\Loose /Y</Command>
<Command>powershell "cp '$(PF_TEST_TITLE_DATA_JSON)' '$(ProjectDir)/$(Platform)/Layout/Image/Loose/testTitleData.json'"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Message>Copying testTitleData.json for packaging</Message>
Expand Down Expand Up @@ -155,7 +155,7 @@
<ShaderModel>5.0</ShaderModel>
</FXCompile>
<CustomBuildStep>
<Command>copy $(PF_TEST_TITLE_DATA_JSON) $(Platform)\Layout\Image\Loose /Y</Command>
<Command>powershell "cp '$(PF_TEST_TITLE_DATA_JSON)' '$(ProjectDir)/$(Platform)/Layout/Image/Loose/testTitleData.json'"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Message>Copying testTitleData.json for packaging</Message>
Expand Down Expand Up @@ -185,7 +185,7 @@
<ShaderModel>5.0</ShaderModel>
</FXCompile>
<CustomBuildStep>
<Command>copy $(PF_TEST_TITLE_DATA_JSON) $(Platform)\Layout\Image\Loose /Y</Command>
<Command>powershell "cp '$(PF_TEST_TITLE_DATA_JSON)' '$(ProjectDir)/$(Platform)/Layout/Image/Loose/testTitleData.json'"</Command>
</CustomBuildStep>
<CustomBuildStep>
<Message>Copying testTitleData.json for packaging</Message>
Expand Down
99 changes: 99 additions & 0 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5473,13 +5473,22 @@ namespace PlayFab
GenericErrorCodesExperimentationInvalidDuration,
GenericErrorCodesExperimentationMaxExperimentsReached,
GenericErrorCodesExperimentationExperimentSchedulingInProgress,
GenericErrorCodesExperimentationInvalidEndDate,
GenericErrorCodesExperimentationInvalidStartDate,
GenericErrorCodesExperimentationMaxDurationExceeded,
GenericErrorCodesExperimentationExclusionGroupNotFound,
GenericErrorCodesExperimentationExclusionGroupInsufficientCapacity,
GenericErrorCodesExperimentationExclusionGroupCannotDelete,
GenericErrorCodesExperimentationExclusionGroupInvalidTrafficAllocation,
GenericErrorCodesMaxActionDepthExceeded,
GenericErrorCodesTitleNotOnUpdatedPricingPlan,
GenericErrorCodesSegmentManagementTitleNotInFlight,
GenericErrorCodesSegmentManagementNoExpressionTree,
GenericErrorCodesSegmentManagementTriggerActionCountOverLimit,
GenericErrorCodesSegmentManagementSegmentCountOverLimit,
GenericErrorCodesSegmentManagementInvalidSegmentId,
GenericErrorCodesSegmentManagementInvalidInput,
GenericErrorCodesSegmentManagementInvalidSegmentName,
GenericErrorCodesSnapshotNotFound
};

Expand Down Expand Up @@ -8390,6 +8399,41 @@ namespace PlayFab
output = Json::Value("ExperimentationExperimentSchedulingInProgress");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationInvalidEndDate)
{
output = Json::Value("ExperimentationInvalidEndDate");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationInvalidStartDate)
{
output = Json::Value("ExperimentationInvalidStartDate");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationMaxDurationExceeded)
{
output = Json::Value("ExperimentationMaxDurationExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupNotFound)
{
output = Json::Value("ExperimentationExclusionGroupNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInsufficientCapacity)
{
output = Json::Value("ExperimentationExclusionGroupInsufficientCapacity");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupCannotDelete)
{
output = Json::Value("ExperimentationExclusionGroupCannotDelete");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInvalidTrafficAllocation)
{
output = Json::Value("ExperimentationExclusionGroupInvalidTrafficAllocation");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded)
{
output = Json::Value("MaxActionDepthExceeded");
Expand Down Expand Up @@ -8425,6 +8469,16 @@ namespace PlayFab
output = Json::Value("SegmentManagementInvalidSegmentId");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSegmentManagementInvalidInput)
{
output = Json::Value("SegmentManagementInvalidInput");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSegmentManagementInvalidSegmentName)
{
output = Json::Value("SegmentManagementInvalidSegmentName");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSnapshotNotFound)
{
output = Json::Value("SnapshotNotFound");
Expand Down Expand Up @@ -11343,6 +11397,41 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesExperimentationExperimentSchedulingInProgress;
return;
}
if (inputStr == "ExperimentationInvalidEndDate")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationInvalidEndDate;
return;
}
if (inputStr == "ExperimentationInvalidStartDate")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationInvalidStartDate;
return;
}
if (inputStr == "ExperimentationMaxDurationExceeded")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationMaxDurationExceeded;
return;
}
if (inputStr == "ExperimentationExclusionGroupNotFound")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupNotFound;
return;
}
if (inputStr == "ExperimentationExclusionGroupInsufficientCapacity")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInsufficientCapacity;
return;
}
if (inputStr == "ExperimentationExclusionGroupCannotDelete")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupCannotDelete;
return;
}
if (inputStr == "ExperimentationExclusionGroupInvalidTrafficAllocation")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationExclusionGroupInvalidTrafficAllocation;
return;
}
if (inputStr == "MaxActionDepthExceeded")
{
output = GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded;
Expand Down Expand Up @@ -11378,6 +11467,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesSegmentManagementInvalidSegmentId;
return;
}
if (inputStr == "SegmentManagementInvalidInput")
{
output = GenericErrorCodes::GenericErrorCodesSegmentManagementInvalidInput;
return;
}
if (inputStr == "SegmentManagementInvalidSegmentName")
{
output = GenericErrorCodes::GenericErrorCodesSegmentManagementInvalidSegmentName;
return;
}
if (inputStr == "SnapshotNotFound")
{
output = GenericErrorCodes::GenericErrorCodesSnapshotNotFound;
Expand Down
9 changes: 7 additions & 2 deletions code/include/playfab/PlayFabDataDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,22 @@ namespace PlayFab
std::map<std::string, std::string> CustomTags;
EntityKey Entity;
std::list<std::string> FileNames;
Int32 ProfileVersion;

FinalizeFileUploadsRequest() :
PlayFabRequestCommon(),
CustomTags(),
Entity(),
FileNames()
FileNames(),
ProfileVersion()
{}

FinalizeFileUploadsRequest(const FinalizeFileUploadsRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags),
Entity(src.Entity),
FileNames(src.FileNames)
FileNames(src.FileNames),
ProfileVersion(src.ProfileVersion)
{}

~FinalizeFileUploadsRequest() = default;
Expand All @@ -288,6 +291,7 @@ namespace PlayFab
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilO(input["Entity"], Entity);
FromJsonUtilS(input["FileNames"], FileNames);
FromJsonUtilP(input["ProfileVersion"], ProfileVersion);
}

Json::Value ToJson() const override
Expand All @@ -296,6 +300,7 @@ namespace PlayFab
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_Entity; ToJsonUtilO(Entity, each_Entity); output["Entity"] = each_Entity;
Json::Value each_FileNames; ToJsonUtilS(FileNames, each_FileNames); output["FileNames"] = each_FileNames;
Json::Value each_ProfileVersion; ToJsonUtilP(ProfileVersion, each_ProfileVersion); output["ProfileVersion"] = each_ProfileVersion;
return output;
}
};
Expand Down
9 changes: 9 additions & 0 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -592,13 +592,22 @@ namespace PlayFab
PlayFabErrorExperimentationInvalidDuration = 7012,
PlayFabErrorExperimentationMaxExperimentsReached = 7013,
PlayFabErrorExperimentationExperimentSchedulingInProgress = 7014,
PlayFabErrorExperimentationInvalidEndDate = 7015,
PlayFabErrorExperimentationInvalidStartDate = 7016,
PlayFabErrorExperimentationMaxDurationExceeded = 7017,
PlayFabErrorExperimentationExclusionGroupNotFound = 7018,
PlayFabErrorExperimentationExclusionGroupInsufficientCapacity = 7019,
PlayFabErrorExperimentationExclusionGroupCannotDelete = 7020,
PlayFabErrorExperimentationExclusionGroupInvalidTrafficAllocation = 7021,
PlayFabErrorMaxActionDepthExceeded = 8000,
PlayFabErrorTitleNotOnUpdatedPricingPlan = 9000,
PlayFabErrorSegmentManagementTitleNotInFlight = 10000,
PlayFabErrorSegmentManagementNoExpressionTree = 10001,
PlayFabErrorSegmentManagementTriggerActionCountOverLimit = 10002,
PlayFabErrorSegmentManagementSegmentCountOverLimit = 10003,
PlayFabErrorSegmentManagementInvalidSegmentId = 10004,
PlayFabErrorSegmentManagementInvalidInput = 10005,
PlayFabErrorSegmentManagementInvalidSegmentName = 10006,
PlayFabErrorSnapshotNotFound = 11000,
};

Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabEventPipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ namespace PlayFab
std::shared_ptr<PlayFabEventsInstanceAPI> eventsApi;

std::atomic_uintptr_t batchCounter;
std::vector<std::shared_ptr<const IPlayFabEmitEventRequest>> batch;
std::chrono::steady_clock::time_point momentBatchStarted;
std::shared_ptr<PlayFabEventPipelineSettings> settings;
PlayFabEventBuffer buffer;
Expand Down
10 changes: 10 additions & 0 deletions code/include/playfab/PlayFabExperimentationApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,37 @@ namespace PlayFab


// ------------ Generated API calls
static void CreateExclusionGroup(ExperimentationModels::CreateExclusionGroupRequest& request, const ProcessApiCallback<ExperimentationModels::CreateExclusionGroupResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreateExperiment(ExperimentationModels::CreateExperimentRequest& request, const ProcessApiCallback<ExperimentationModels::CreateExperimentResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void DeleteExclusionGroup(ExperimentationModels::DeleteExclusionGroupRequest& request, const ProcessApiCallback<ExperimentationModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void DeleteExperiment(ExperimentationModels::DeleteExperimentRequest& request, const ProcessApiCallback<ExperimentationModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetExclusionGroups(ExperimentationModels::GetExclusionGroupsRequest& request, const ProcessApiCallback<ExperimentationModels::GetExclusionGroupsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetExclusionGroupTraffic(ExperimentationModels::GetExclusionGroupTrafficRequest& request, const ProcessApiCallback<ExperimentationModels::GetExclusionGroupTrafficResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetExperiments(ExperimentationModels::GetExperimentsRequest& request, const ProcessApiCallback<ExperimentationModels::GetExperimentsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetLatestScorecard(ExperimentationModels::GetLatestScorecardRequest& request, const ProcessApiCallback<ExperimentationModels::GetLatestScorecardResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetTreatmentAssignment(ExperimentationModels::GetTreatmentAssignmentRequest& request, const ProcessApiCallback<ExperimentationModels::GetTreatmentAssignmentResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void StartExperiment(ExperimentationModels::StartExperimentRequest& request, const ProcessApiCallback<ExperimentationModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void StopExperiment(ExperimentationModels::StopExperimentRequest& request, const ProcessApiCallback<ExperimentationModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UpdateExclusionGroup(ExperimentationModels::UpdateExclusionGroupRequest& request, const ProcessApiCallback<ExperimentationModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UpdateExperiment(ExperimentationModels::UpdateExperimentRequest& request, const ProcessApiCallback<ExperimentationModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);

private:
PlayFabExperimentationAPI(); // Private constructor, static class should never have an instance
PlayFabExperimentationAPI(const PlayFabExperimentationAPI& other); // Private copy-constructor, static class should never have an instance

// ------------ Generated result handlers
static void OnCreateExclusionGroupResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreateExperimentResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnDeleteExclusionGroupResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnDeleteExperimentResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetExclusionGroupsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetExclusionGroupTrafficResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetExperimentsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetLatestScorecardResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetTreatmentAssignmentResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnStartExperimentResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnStopExperimentResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUpdateExclusionGroupResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUpdateExperimentResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);

static bool ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container);
Expand Down
Loading

0 comments on commit 8df07cd

Please sign in to comment.