Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#200402
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Apr 2, 2020
2 parents cdb38fb + a45af87 commit 4f3a4ae
Show file tree
Hide file tree
Showing 17 changed files with 1,403 additions and 8 deletions.
2 changes: 2 additions & 0 deletions build/Linux/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ OBJS = stdafx.o \
PlayFabEventsInstanceApi.o \
PlayFabExperimentationApi.o \
PlayFabExperimentationInstanceApi.o \
PlayFabInsightsApi.o \
PlayFabInsightsInstanceApi.o \
PlayFabGroupsApi.o \
PlayFabGroupsInstanceApi.o \
PlayFabLocalizationApi.o \
Expand Down
5 changes: 5 additions & 0 deletions build/Windows/XPlatCppWindows.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationInstanceApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationDataModels.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsInstanceApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsDataModels.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsInstanceApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsDataModels.h" />
Expand Down Expand Up @@ -200,6 +203,8 @@
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabEventsInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabExperimentationApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabExperimentationInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabGroupsApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabGroupsInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabLocalizationApi.cpp" />
Expand Down
15 changes: 15 additions & 0 deletions build/Windows/XPlatCppWindows.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationDataModels.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsApi.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsInstanceApi.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsDataModels.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsApi.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
Expand Down Expand Up @@ -289,6 +298,12 @@
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabExperimentationInstanceApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsInstanceApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabGroupsApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
Expand Down
5 changes: 5 additions & 0 deletions build/Xbox/XPlatXbox.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationInstanceApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationDataModels.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsInstanceApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsDataModels.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsInstanceApi.h" />
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsDataModels.h" />
Expand Down Expand Up @@ -261,6 +264,8 @@
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabEventsInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabExperimentationApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabExperimentationInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabGroupsApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabGroupsInstanceApi.cpp" />
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabLocalizationApi.cpp" />
Expand Down
15 changes: 15 additions & 0 deletions build/Xbox/XPlatXbox.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabExperimentationDataModels.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsApi.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsInstanceApi.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabInsightsDataModels.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
<ClInclude Include="$(SdkSourceDir)\include\playfab\PlayFabGroupsApi.h">
<Filter>Header Files\playfab</Filter>
</ClInclude>
Expand Down Expand Up @@ -292,6 +301,12 @@
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabExperimentationInstanceApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabInsightsInstanceApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
<ClCompile Include="$(SdkSourceDir)\source\playfab\PlayFabGroupsApi.cpp">
<Filter>Source Files\playfab</Filter>
</ClCompile>
Expand Down
22 changes: 22 additions & 0 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5449,6 +5449,7 @@ namespace PlayFab
GenericErrorCodesExportQuerySchemaMissingRequiredColumns,
GenericErrorCodesExportCannotParseQuery,
GenericErrorCodesExportControlCommandsNotAllowed,
GenericErrorCodesExportQueryMissingTableReference,
GenericErrorCodesTitleNotEnabledForParty,
GenericErrorCodesPartyVersionNotFound,
GenericErrorCodesMultiplayerServerBuildReferencedByMatchmakingQueue,
Expand All @@ -5466,6 +5467,7 @@ namespace PlayFab
GenericErrorCodesExperimentationTreatmentAssignmentDisabled,
GenericErrorCodesExperimentationInvalidDuration,
GenericErrorCodesExperimentationMaxExperimentsReached,
GenericErrorCodesExperimentationExperimentSchedulingInProgress,
GenericErrorCodesMaxActionDepthExceeded,
GenericErrorCodesTitleNotOnUpdatedPricingPlan,
GenericErrorCodesSnapshotNotFound
Expand Down Expand Up @@ -8258,6 +8260,11 @@ namespace PlayFab
output = Json::Value("ExportControlCommandsNotAllowed");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExportQueryMissingTableReference)
{
output = Json::Value("ExportQueryMissingTableReference");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTitleNotEnabledForParty)
{
output = Json::Value("TitleNotEnabledForParty");
Expand Down Expand Up @@ -8343,6 +8350,11 @@ namespace PlayFab
output = Json::Value("ExperimentationMaxExperimentsReached");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationExperimentSchedulingInProgress)
{
output = Json::Value("ExperimentationExperimentSchedulingInProgress");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded)
{
output = Json::Value("MaxActionDepthExceeded");
Expand Down Expand Up @@ -11151,6 +11163,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesExportControlCommandsNotAllowed;
return;
}
if (inputStr == "ExportQueryMissingTableReference")
{
output = GenericErrorCodes::GenericErrorCodesExportQueryMissingTableReference;
return;
}
if (inputStr == "TitleNotEnabledForParty")
{
output = GenericErrorCodes::GenericErrorCodesTitleNotEnabledForParty;
Expand Down Expand Up @@ -11236,6 +11253,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesExperimentationMaxExperimentsReached;
return;
}
if (inputStr == "ExperimentationExperimentSchedulingInProgress")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationExperimentSchedulingInProgress;
return;
}
if (inputStr == "MaxActionDepthExceeded")
{
output = GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ namespace PlayFab
PlayFabErrorExportQuerySchemaMissingRequiredColumns = 5023,
PlayFabErrorExportCannotParseQuery = 5024,
PlayFabErrorExportControlCommandsNotAllowed = 5025,
PlayFabErrorExportQueryMissingTableReference = 5026,
PlayFabErrorTitleNotEnabledForParty = 6000,
PlayFabErrorPartyVersionNotFound = 6001,
PlayFabErrorMultiplayerServerBuildReferencedByMatchmakingQueue = 6002,
Expand All @@ -585,6 +586,7 @@ namespace PlayFab
PlayFabErrorExperimentationTreatmentAssignmentDisabled = 7011,
PlayFabErrorExperimentationInvalidDuration = 7012,
PlayFabErrorExperimentationMaxExperimentsReached = 7013,
PlayFabErrorExperimentationExperimentSchedulingInProgress = 7014,
PlayFabErrorMaxActionDepthExceeded = 8000,
PlayFabErrorTitleNotOnUpdatedPricingPlan = 9000,
PlayFabErrorSnapshotNotFound = 11000,
Expand Down
47 changes: 47 additions & 0 deletions code/include/playfab/PlayFabInsightsApi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#pragma once

#if !defined(DISABLE_PLAYFABENTITY_API)

#include <playfab/PlayFabInsightsDataModels.h>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Insights APIs
/// </summary>
class PlayFabInsightsAPI
{
public:
static size_t Update();
static void ForgetAllCredentials();


// ------------ Generated API calls
static void GetDetails(InsightsModels::InsightsEmptyRequest& request, const ProcessApiCallback<InsightsModels::InsightsGetDetailsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetLimits(InsightsModels::InsightsEmptyRequest& request, const ProcessApiCallback<InsightsModels::InsightsGetLimitsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetOperationStatus(InsightsModels::InsightsGetOperationStatusRequest& request, const ProcessApiCallback<InsightsModels::InsightsGetOperationStatusResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetPendingOperations(InsightsModels::InsightsGetPendingOperationsRequest& request, const ProcessApiCallback<InsightsModels::InsightsGetPendingOperationsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void SetPerformance(InsightsModels::InsightsSetPerformanceRequest& request, const ProcessApiCallback<InsightsModels::InsightsOperationResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void SetStorageRetention(InsightsModels::InsightsSetStorageRetentionRequest& request, const ProcessApiCallback<InsightsModels::InsightsOperationResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);

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

// ------------ Generated result handlers
static void OnGetDetailsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetLimitsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetOperationStatusResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetPendingOperationsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnSetPerformanceResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnSetStorageRetentionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);

static bool ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container);
};
}

#endif // #if !defined(DISABLE_PLAYFABENTITY_API)
Loading

0 comments on commit 4f3a4ae

Please sign in to comment.