Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#210406
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Apr 6, 2021
2 parents 4e4f04e + 74f8508 commit 5ae060b
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 79 deletions.
21 changes: 16 additions & 5 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5374,7 +5374,7 @@ namespace PlayFab
GenericErrorCodesEvaluationModePlayerCountExceeded,
GenericErrorCodesGetPlayersInSegmentRateLimitExceeded,
GenericErrorCodesCloudScriptFunctionNameSizeExceeded,
GenericErrorCodesInsightsManagementTitleInEvaluationMode,
GenericErrorCodesPaidInsightsFeaturesNotEnabled,
GenericErrorCodesCloudScriptAzureFunctionsQueueRequestError,
GenericErrorCodesEvaluationModeTitleCountExceeded,
GenericErrorCodesInsightsManagementTitleNotInFlight,
Expand Down Expand Up @@ -5513,6 +5513,7 @@ namespace PlayFab
GenericErrorCodesCreateSegmentRateLimitExceeded,
GenericErrorCodesUpdateSegmentRateLimitExceeded,
GenericErrorCodesGetSegmentsRateLimitExceeded,
GenericErrorCodesAsyncExportNotInFlight,
GenericErrorCodesSnapshotNotFound,
GenericErrorCodesInventoryApiNotImplemented
};
Expand Down Expand Up @@ -7929,9 +7930,9 @@ namespace PlayFab
output = Json::Value("CloudScriptFunctionNameSizeExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesInsightsManagementTitleInEvaluationMode)
if (input == GenericErrorCodes::GenericErrorCodesPaidInsightsFeaturesNotEnabled)
{
output = Json::Value("InsightsManagementTitleInEvaluationMode");
output = Json::Value("PaidInsightsFeaturesNotEnabled");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCloudScriptAzureFunctionsQueueRequestError)
Expand Down Expand Up @@ -8624,6 +8625,11 @@ namespace PlayFab
output = Json::Value("GetSegmentsRateLimitExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesAsyncExportNotInFlight)
{
output = Json::Value("AsyncExportNotInFlight");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSnapshotNotFound)
{
output = Json::Value("SnapshotNotFound");
Expand Down Expand Up @@ -11052,9 +11058,9 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesCloudScriptFunctionNameSizeExceeded;
return;
}
if (inputStr == "InsightsManagementTitleInEvaluationMode")
if (inputStr == "PaidInsightsFeaturesNotEnabled")
{
output = GenericErrorCodes::GenericErrorCodesInsightsManagementTitleInEvaluationMode;
output = GenericErrorCodes::GenericErrorCodesPaidInsightsFeaturesNotEnabled;
return;
}
if (inputStr == "CloudScriptAzureFunctionsQueueRequestError")
Expand Down Expand Up @@ -11747,6 +11753,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesGetSegmentsRateLimitExceeded;
return;
}
if (inputStr == "AsyncExportNotInFlight")
{
output = GenericErrorCodes::GenericErrorCodesAsyncExportNotInFlight;
return;
}
if (inputStr == "SnapshotNotFound")
{
output = GenericErrorCodes::GenericErrorCodesSnapshotNotFound;
Expand Down
3 changes: 2 additions & 1 deletion code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ namespace PlayFab
PlayFabErrorEvaluationModePlayerCountExceeded = 1490,
PlayFabErrorGetPlayersInSegmentRateLimitExceeded = 1491,
PlayFabErrorCloudScriptFunctionNameSizeExceeded = 1492,
PlayFabErrorInsightsManagementTitleInEvaluationMode = 1493,
PlayFabErrorPaidInsightsFeaturesNotEnabled = 1493,
PlayFabErrorCloudScriptAzureFunctionsQueueRequestError = 1494,
PlayFabErrorEvaluationModeTitleCountExceeded = 1495,
PlayFabErrorInsightsManagementTitleNotInFlight = 1496,
Expand Down Expand Up @@ -632,6 +632,7 @@ namespace PlayFab
PlayFabErrorCreateSegmentRateLimitExceeded = 10008,
PlayFabErrorUpdateSegmentRateLimitExceeded = 10009,
PlayFabErrorGetSegmentsRateLimitExceeded = 10010,
PlayFabErrorAsyncExportNotInFlight = 10011,
PlayFabErrorSnapshotNotFound = 11000,
PlayFabErrorInventoryApiNotImplemented = 12000,
};
Expand Down
2 changes: 1 addition & 1 deletion code/include/playfab/PlayFabMultiplayerApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace PlayFab
static void JoinMatchmakingTicket(MultiplayerModels::JoinMatchmakingTicketRequest& request, const ProcessApiCallback<MultiplayerModels::JoinMatchmakingTicketResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListArchivedMultiplayerServers(MultiplayerModels::ListMultiplayerServersRequest& request, const ProcessApiCallback<MultiplayerModels::ListMultiplayerServersResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListAssetSummaries(MultiplayerModels::ListAssetSummariesRequest& request, const ProcessApiCallback<MultiplayerModels::ListAssetSummariesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListBuildAliases(MultiplayerModels::MultiplayerEmptyRequest& request, const ProcessApiCallback<MultiplayerModels::ListBuildAliasesForTitleResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListBuildAliases(MultiplayerModels::ListBuildAliasesRequest& request, const ProcessApiCallback<MultiplayerModels::ListBuildAliasesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListBuildSummariesV2(MultiplayerModels::ListBuildSummariesRequest& request, const ProcessApiCallback<MultiplayerModels::ListBuildSummariesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListCertificateSummaries(MultiplayerModels::ListCertificateSummariesRequest& request, const ProcessApiCallback<MultiplayerModels::ListCertificateSummariesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListContainerImages(MultiplayerModels::ListContainerImagesRequest& request, const ProcessApiCallback<MultiplayerModels::ListContainerImagesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down
119 changes: 72 additions & 47 deletions code/include/playfab/PlayFabMultiplayerDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -1468,25 +1468,19 @@ namespace PlayFab
std::string AliasId;
std::string AliasName;
std::list<BuildSelectionCriterion> BuildSelectionCriteria;
Int32 PageSize;
std::string SkipToken;

BuildAliasDetailsResponse() :
PlayFabResultCommon(),
AliasId(),
AliasName(),
BuildSelectionCriteria(),
PageSize(),
SkipToken()
BuildSelectionCriteria()
{}

BuildAliasDetailsResponse(const BuildAliasDetailsResponse& src) :
PlayFabResultCommon(),
AliasId(src.AliasId),
AliasName(src.AliasName),
BuildSelectionCriteria(src.BuildSelectionCriteria),
PageSize(src.PageSize),
SkipToken(src.SkipToken)
BuildSelectionCriteria(src.BuildSelectionCriteria)
{}

~BuildAliasDetailsResponse() = default;
Expand All @@ -1496,8 +1490,6 @@ namespace PlayFab
FromJsonUtilS(input["AliasId"], AliasId);
FromJsonUtilS(input["AliasName"], AliasName);
FromJsonUtilO(input["BuildSelectionCriteria"], BuildSelectionCriteria);
FromJsonUtilP(input["PageSize"], PageSize);
FromJsonUtilS(input["SkipToken"], SkipToken);
}

Json::Value ToJson() const override
Expand All @@ -1506,8 +1498,6 @@ namespace PlayFab
Json::Value each_AliasId; ToJsonUtilS(AliasId, each_AliasId); output["AliasId"] = each_AliasId;
Json::Value each_AliasName; ToJsonUtilS(AliasName, each_AliasName); output["AliasName"] = each_AliasName;
Json::Value each_BuildSelectionCriteria; ToJsonUtilO(BuildSelectionCriteria, each_BuildSelectionCriteria); output["BuildSelectionCriteria"] = each_BuildSelectionCriteria;
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;
}
};
Expand Down Expand Up @@ -3541,19 +3531,22 @@ namespace PlayFab

struct ServerDetails : public PlayFabBaseModel
{
std::string Fqdn;
std::string IPV4Address;
std::list<Port> Ports;
std::string Region;

ServerDetails() :
PlayFabBaseModel(),
Fqdn(),
IPV4Address(),
Ports(),
Region()
{}

ServerDetails(const ServerDetails& src) :
PlayFabBaseModel(),
Fqdn(src.Fqdn),
IPV4Address(src.IPV4Address),
Ports(src.Ports),
Region(src.Region)
Expand All @@ -3563,6 +3556,7 @@ namespace PlayFab

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["Fqdn"], Fqdn);
FromJsonUtilS(input["IPV4Address"], IPV4Address);
FromJsonUtilO(input["Ports"], Ports);
FromJsonUtilS(input["Region"], Region);
Expand All @@ -3571,6 +3565,7 @@ namespace PlayFab
Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_Fqdn; ToJsonUtilS(Fqdn, each_Fqdn); output["Fqdn"] = each_Fqdn;
Json::Value each_IPV4Address; ToJsonUtilS(IPV4Address, each_IPV4Address); output["IPV4Address"] = each_IPV4Address;
Json::Value each_Ports; ToJsonUtilO(Ports, each_Ports); output["Ports"] = each_Ports;
Json::Value each_Region; ToJsonUtilS(Region, each_Region); output["Region"] = each_Region;
Expand Down Expand Up @@ -4713,6 +4708,7 @@ namespace PlayFab

struct GetMultiplayerServerDetailsResponse : public PlayFabResultCommon
{
std::string BuildId;
std::list<ConnectedPlayer> ConnectedPlayers;
std::string FQDN;
std::string IPV4Address;
Expand All @@ -4726,6 +4722,7 @@ namespace PlayFab

GetMultiplayerServerDetailsResponse() :
PlayFabResultCommon(),
BuildId(),
ConnectedPlayers(),
FQDN(),
IPV4Address(),
Expand All @@ -4740,6 +4737,7 @@ namespace PlayFab

GetMultiplayerServerDetailsResponse(const GetMultiplayerServerDetailsResponse& src) :
PlayFabResultCommon(),
BuildId(src.BuildId),
ConnectedPlayers(src.ConnectedPlayers),
FQDN(src.FQDN),
IPV4Address(src.IPV4Address),
Expand All @@ -4756,6 +4754,7 @@ namespace PlayFab

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["BuildId"], BuildId);
FromJsonUtilO(input["ConnectedPlayers"], ConnectedPlayers);
FromJsonUtilS(input["FQDN"], FQDN);
FromJsonUtilS(input["IPV4Address"], IPV4Address);
Expand All @@ -4771,6 +4770,7 @@ namespace PlayFab
Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_BuildId; ToJsonUtilS(BuildId, each_BuildId); output["BuildId"] = each_BuildId;
Json::Value each_ConnectedPlayers; ToJsonUtilO(ConnectedPlayers, each_ConnectedPlayers); output["ConnectedPlayers"] = each_ConnectedPlayers;
Json::Value each_FQDN; ToJsonUtilS(FQDN, each_FQDN); output["FQDN"] = each_FQDN;
Json::Value each_IPV4Address; ToJsonUtilS(IPV4Address, each_IPV4Address); output["IPV4Address"] = each_IPV4Address;
Expand Down Expand Up @@ -5598,31 +5598,80 @@ namespace PlayFab
}
};

struct ListBuildAliasesForTitleResponse : public PlayFabResultCommon
struct ListBuildAliasesRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;
Boxed<Int32> PageSize;
std::string SkipToken;

ListBuildAliasesRequest() :
PlayFabRequestCommon(),
CustomTags(),
PageSize(),
SkipToken()
{}

ListBuildAliasesRequest(const ListBuildAliasesRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags),
PageSize(src.PageSize),
SkipToken(src.SkipToken)
{}

~ListBuildAliasesRequest() = 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 ListBuildAliasesResponse : public PlayFabResultCommon
{
std::list<BuildAliasDetailsResponse> BuildAliases;
Int32 PageSize;
std::string SkipToken;

ListBuildAliasesForTitleResponse() :
ListBuildAliasesResponse() :
PlayFabResultCommon(),
BuildAliases()
BuildAliases(),
PageSize(),
SkipToken()
{}

ListBuildAliasesForTitleResponse(const ListBuildAliasesForTitleResponse& src) :
ListBuildAliasesResponse(const ListBuildAliasesResponse& src) :
PlayFabResultCommon(),
BuildAliases(src.BuildAliases)
BuildAliases(src.BuildAliases),
PageSize(src.PageSize),
SkipToken(src.SkipToken)
{}

~ListBuildAliasesForTitleResponse() = default;
~ListBuildAliasesResponse() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilO(input["BuildAliases"], BuildAliases);
FromJsonUtilP(input["PageSize"], PageSize);
FromJsonUtilS(input["SkipToken"], SkipToken);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_BuildAliases; ToJsonUtilO(BuildAliases, each_BuildAliases); output["BuildAliases"] = each_BuildAliases;
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;
}
};
Expand Down Expand Up @@ -6567,35 +6616,6 @@ namespace PlayFab
}
};

struct MultiplayerEmptyRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;

MultiplayerEmptyRequest() :
PlayFabRequestCommon(),
CustomTags()
{}

MultiplayerEmptyRequest(const MultiplayerEmptyRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags)
{}

~MultiplayerEmptyRequest() = default;

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

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

struct RequestMultiplayerServerRequest : public PlayFabRequestCommon
{
Boxed<BuildAliasParams> pfBuildAliasParams;
Expand Down Expand Up @@ -6657,6 +6677,7 @@ namespace PlayFab

struct RequestMultiplayerServerResponse : public PlayFabResultCommon
{
std::string BuildId;
std::list<ConnectedPlayer> ConnectedPlayers;
std::string FQDN;
std::string IPV4Address;
Expand All @@ -6670,6 +6691,7 @@ namespace PlayFab

RequestMultiplayerServerResponse() :
PlayFabResultCommon(),
BuildId(),
ConnectedPlayers(),
FQDN(),
IPV4Address(),
Expand All @@ -6684,6 +6706,7 @@ namespace PlayFab

RequestMultiplayerServerResponse(const RequestMultiplayerServerResponse& src) :
PlayFabResultCommon(),
BuildId(src.BuildId),
ConnectedPlayers(src.ConnectedPlayers),
FQDN(src.FQDN),
IPV4Address(src.IPV4Address),
Expand All @@ -6700,6 +6723,7 @@ namespace PlayFab

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["BuildId"], BuildId);
FromJsonUtilO(input["ConnectedPlayers"], ConnectedPlayers);
FromJsonUtilS(input["FQDN"], FQDN);
FromJsonUtilS(input["IPV4Address"], IPV4Address);
Expand All @@ -6715,6 +6739,7 @@ namespace PlayFab
Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_BuildId; ToJsonUtilS(BuildId, each_BuildId); output["BuildId"] = each_BuildId;
Json::Value each_ConnectedPlayers; ToJsonUtilO(ConnectedPlayers, each_ConnectedPlayers); output["ConnectedPlayers"] = each_ConnectedPlayers;
Json::Value each_FQDN; ToJsonUtilS(FQDN, each_FQDN); output["FQDN"] = each_FQDN;
Json::Value each_IPV4Address; ToJsonUtilS(IPV4Address, each_IPV4Address); output["IPV4Address"] = each_IPV4Address;
Expand Down
Loading

0 comments on commit 5ae060b

Please sign in to comment.