Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#210208
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Feb 8, 2021
2 parents 1296365 + 895dcec commit cde0c03
Show file tree
Hide file tree
Showing 11 changed files with 250 additions and 11 deletions.
46 changes: 45 additions & 1 deletion code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5394,6 +5394,8 @@ namespace PlayFab
GenericErrorCodesWasNotCreatedWithCloudRoot,
GenericErrorCodesLegacyMultiplayerServersDeprecated,
GenericErrorCodesVirtualCurrencyCurrentlyUnavailable,
GenericErrorCodesSteamUserNotFound,
GenericErrorCodesElasticSearchOperationFailed,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand All @@ -5418,6 +5420,7 @@ namespace PlayFab
GenericErrorCodesTitleConfigNotFound,
GenericErrorCodesTitleConfigUpdateConflict,
GenericErrorCodesTitleConfigSerializationError,
GenericErrorCodesCatalogApiNotImplemented,
GenericErrorCodesCatalogEntityInvalid,
GenericErrorCodesCatalogTitleIdMissing,
GenericErrorCodesCatalogPlayerIdMissing,
Expand Down Expand Up @@ -5509,7 +5512,8 @@ namespace PlayFab
GenericErrorCodesCreateSegmentRateLimitExceeded,
GenericErrorCodesUpdateSegmentRateLimitExceeded,
GenericErrorCodesGetSegmentsRateLimitExceeded,
GenericErrorCodesSnapshotNotFound
GenericErrorCodesSnapshotNotFound,
GenericErrorCodesInventoryApiNotImplemented
};

inline void ToJsonEnum(const GenericErrorCodes input, Json::Value& output)
Expand Down Expand Up @@ -8024,6 +8028,16 @@ namespace PlayFab
output = Json::Value("VirtualCurrencyCurrentlyUnavailable");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSteamUserNotFound)
{
output = Json::Value("SteamUserNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesElasticSearchOperationFailed)
{
output = Json::Value("ElasticSearchOperationFailed");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -8144,6 +8158,11 @@ namespace PlayFab
output = Json::Value("TitleConfigSerializationError");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCatalogApiNotImplemented)
{
output = Json::Value("CatalogApiNotImplemented");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCatalogEntityInvalid)
{
output = Json::Value("CatalogEntityInvalid");
Expand Down Expand Up @@ -8604,6 +8623,11 @@ namespace PlayFab
output = Json::Value("SnapshotNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesInventoryApiNotImplemented)
{
output = Json::Value("InventoryApiNotImplemented");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, GenericErrorCodes& output)
{
Expand Down Expand Up @@ -11122,6 +11146,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesVirtualCurrencyCurrentlyUnavailable;
return;
}
if (inputStr == "SteamUserNotFound")
{
output = GenericErrorCodes::GenericErrorCodesSteamUserNotFound;
return;
}
if (inputStr == "ElasticSearchOperationFailed")
{
output = GenericErrorCodes::GenericErrorCodesElasticSearchOperationFailed;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down Expand Up @@ -11242,6 +11276,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesTitleConfigSerializationError;
return;
}
if (inputStr == "CatalogApiNotImplemented")
{
output = GenericErrorCodes::GenericErrorCodesCatalogApiNotImplemented;
return;
}
if (inputStr == "CatalogEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesCatalogEntityInvalid;
Expand Down Expand Up @@ -11702,6 +11741,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesSnapshotNotFound;
return;
}
if (inputStr == "InventoryApiNotImplemented")
{
output = GenericErrorCodes::GenericErrorCodesInventoryApiNotImplemented;
return;
}
}

enum class LoginIdentityProvider
Expand Down
4 changes: 4 additions & 0 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ namespace PlayFab
PlayFabErrorWasNotCreatedWithCloudRoot = 1510,
PlayFabErrorLegacyMultiplayerServersDeprecated = 1511,
PlayFabErrorVirtualCurrencyCurrentlyUnavailable = 1512,
PlayFabErrorSteamUserNotFound = 1513,
PlayFabErrorElasticSearchOperationFailed = 1514,
PlayFabErrorMatchmakingEntityInvalid = 2001,
PlayFabErrorMatchmakingPlayerAttributesInvalid = 2002,
PlayFabErrorMatchmakingQueueNotFound = 2016,
Expand All @@ -537,6 +539,7 @@ namespace PlayFab
PlayFabErrorTitleConfigNotFound = 3001,
PlayFabErrorTitleConfigUpdateConflict = 3002,
PlayFabErrorTitleConfigSerializationError = 3003,
PlayFabErrorCatalogApiNotImplemented = 4000,
PlayFabErrorCatalogEntityInvalid = 4001,
PlayFabErrorCatalogTitleIdMissing = 4002,
PlayFabErrorCatalogPlayerIdMissing = 4003,
Expand Down Expand Up @@ -629,6 +632,7 @@ namespace PlayFab
PlayFabErrorUpdateSegmentRateLimitExceeded = 10009,
PlayFabErrorGetSegmentsRateLimitExceeded = 10010,
PlayFabErrorSnapshotNotFound = 11000,
PlayFabErrorInventoryApiNotImplemented = 12000,
};

/// <summary>
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabServerApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ namespace PlayFab
static void LinkServerCustomId(ServerModels::LinkServerCustomIdRequest& request, const ProcessApiCallback<ServerModels::LinkServerCustomIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LinkXboxAccount(ServerModels::LinkXboxAccountRequest& request, const ProcessApiCallback<ServerModels::LinkXboxAccountResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LoginWithServerCustomId(ServerModels::LoginWithServerCustomIdRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LoginWithSteamId(ServerModels::LoginWithSteamIdRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LoginWithXbox(ServerModels::LoginWithXboxRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LoginWithXboxId(ServerModels::LoginWithXboxIdRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ModifyItemUses(ServerModels::ModifyItemUsesRequest& request, const ProcessApiCallback<ServerModels::ModifyItemUsesResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -241,6 +242,7 @@ namespace PlayFab
static void OnLinkServerCustomIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLinkXboxAccountResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLoginWithServerCustomIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLoginWithSteamIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLoginWithXboxResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLoginWithXboxIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnModifyItemUsesResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
90 changes: 89 additions & 1 deletion code/include/playfab/PlayFabServerDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5296,6 +5296,8 @@ namespace PlayFab
GenericErrorCodesWasNotCreatedWithCloudRoot,
GenericErrorCodesLegacyMultiplayerServersDeprecated,
GenericErrorCodesVirtualCurrencyCurrentlyUnavailable,
GenericErrorCodesSteamUserNotFound,
GenericErrorCodesElasticSearchOperationFailed,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand All @@ -5320,6 +5322,7 @@ namespace PlayFab
GenericErrorCodesTitleConfigNotFound,
GenericErrorCodesTitleConfigUpdateConflict,
GenericErrorCodesTitleConfigSerializationError,
GenericErrorCodesCatalogApiNotImplemented,
GenericErrorCodesCatalogEntityInvalid,
GenericErrorCodesCatalogTitleIdMissing,
GenericErrorCodesCatalogPlayerIdMissing,
Expand Down Expand Up @@ -5411,7 +5414,8 @@ namespace PlayFab
GenericErrorCodesCreateSegmentRateLimitExceeded,
GenericErrorCodesUpdateSegmentRateLimitExceeded,
GenericErrorCodesGetSegmentsRateLimitExceeded,
GenericErrorCodesSnapshotNotFound
GenericErrorCodesSnapshotNotFound,
GenericErrorCodesInventoryApiNotImplemented
};

inline void ToJsonEnum(const GenericErrorCodes input, Json::Value& output)
Expand Down Expand Up @@ -7926,6 +7930,16 @@ namespace PlayFab
output = Json::Value("VirtualCurrencyCurrentlyUnavailable");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSteamUserNotFound)
{
output = Json::Value("SteamUserNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesElasticSearchOperationFailed)
{
output = Json::Value("ElasticSearchOperationFailed");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -8046,6 +8060,11 @@ namespace PlayFab
output = Json::Value("TitleConfigSerializationError");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCatalogApiNotImplemented)
{
output = Json::Value("CatalogApiNotImplemented");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesCatalogEntityInvalid)
{
output = Json::Value("CatalogEntityInvalid");
Expand Down Expand Up @@ -8506,6 +8525,11 @@ namespace PlayFab
output = Json::Value("SnapshotNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesInventoryApiNotImplemented)
{
output = Json::Value("InventoryApiNotImplemented");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, GenericErrorCodes& output)
{
Expand Down Expand Up @@ -11024,6 +11048,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesVirtualCurrencyCurrentlyUnavailable;
return;
}
if (inputStr == "SteamUserNotFound")
{
output = GenericErrorCodes::GenericErrorCodesSteamUserNotFound;
return;
}
if (inputStr == "ElasticSearchOperationFailed")
{
output = GenericErrorCodes::GenericErrorCodesElasticSearchOperationFailed;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down Expand Up @@ -11144,6 +11178,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesTitleConfigSerializationError;
return;
}
if (inputStr == "CatalogApiNotImplemented")
{
output = GenericErrorCodes::GenericErrorCodesCatalogApiNotImplemented;
return;
}
if (inputStr == "CatalogEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesCatalogEntityInvalid;
Expand Down Expand Up @@ -11604,6 +11643,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesSnapshotNotFound;
return;
}
if (inputStr == "InventoryApiNotImplemented")
{
output = GenericErrorCodes::GenericErrorCodesInventoryApiNotImplemented;
return;
}
}

enum class LoginIdentityProvider
Expand Down Expand Up @@ -21089,6 +21133,50 @@ namespace PlayFab
}
};

struct LoginWithSteamIdRequest : public PlayFabRequestCommon
{
Boxed<bool> CreateAccount;
std::map<std::string, std::string> CustomTags;
Boxed<GetPlayerCombinedInfoRequestParams> InfoRequestParameters;
std::string SteamId;

LoginWithSteamIdRequest() :
PlayFabRequestCommon(),
CreateAccount(),
CustomTags(),
InfoRequestParameters(),
SteamId()
{}

LoginWithSteamIdRequest(const LoginWithSteamIdRequest& src) :
PlayFabRequestCommon(),
CreateAccount(src.CreateAccount),
CustomTags(src.CustomTags),
InfoRequestParameters(src.InfoRequestParameters),
SteamId(src.SteamId)
{}

~LoginWithSteamIdRequest() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CreateAccount; ToJsonUtilP(CreateAccount, each_CreateAccount); output["CreateAccount"] = each_CreateAccount;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_InfoRequestParameters; ToJsonUtilO(InfoRequestParameters, each_InfoRequestParameters); output["InfoRequestParameters"] = each_InfoRequestParameters;
Json::Value each_SteamId; ToJsonUtilS(SteamId, each_SteamId); output["SteamId"] = each_SteamId;
return output;
}
};

struct LoginWithXboxIdRequest : public PlayFabRequestCommon
{
Boxed<bool> CreateAccount;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabServerInstanceApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ namespace PlayFab
void LinkServerCustomId(ServerModels::LinkServerCustomIdRequest& request, const ProcessApiCallback<ServerModels::LinkServerCustomIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void LinkXboxAccount(ServerModels::LinkXboxAccountRequest& request, const ProcessApiCallback<ServerModels::LinkXboxAccountResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void LoginWithServerCustomId(ServerModels::LoginWithServerCustomIdRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void LoginWithSteamId(ServerModels::LoginWithSteamIdRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void LoginWithXbox(ServerModels::LoginWithXboxRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void LoginWithXboxId(ServerModels::LoginWithXboxIdRequest& request, const ProcessApiCallback<ServerModels::ServerLoginResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void ModifyItemUses(ServerModels::ModifyItemUsesRequest& request, const ProcessApiCallback<ServerModels::ModifyItemUsesResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -255,6 +256,7 @@ namespace PlayFab
void OnLinkServerCustomIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnLinkXboxAccountResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnLoginWithServerCustomIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnLoginWithSteamIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnLoginWithXboxResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnLoginWithXboxIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnModifyItemUsesResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
Loading

0 comments on commit cde0c03

Please sign in to comment.