Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#230403
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Apr 3, 2023
2 parents 5ff9939 + d441db4 commit dc57889
Show file tree
Hide file tree
Showing 19 changed files with 553 additions and 12 deletions.
11 changes: 11 additions & 0 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5629,6 +5629,7 @@ namespace PlayFab
GenericErrorCodesAsyncExportNotInFlight,
GenericErrorCodesAsyncExportNotFound,
GenericErrorCodesAsyncExportRateLimitExceeded,
GenericErrorCodesAnalyticsSegmentCountOverLimit,
GenericErrorCodesSnapshotNotFound,
GenericErrorCodesInventoryApiNotImplemented,
GenericErrorCodesLobbyDoesNotExist,
Expand Down Expand Up @@ -9057,6 +9058,11 @@ namespace PlayFab
output = Json::Value("AsyncExportRateLimitExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesAnalyticsSegmentCountOverLimit)
{
output = Json::Value("AnalyticsSegmentCountOverLimit");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesSnapshotNotFound)
{
output = Json::Value("SnapshotNotFound");
Expand Down Expand Up @@ -12645,6 +12651,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesAsyncExportRateLimitExceeded;
return;
}
if (inputStr == "AnalyticsSegmentCountOverLimit")
{
output = GenericErrorCodes::GenericErrorCodesAnalyticsSegmentCountOverLimit;
return;
}
if (inputStr == "SnapshotNotFound")
{
output = GenericErrorCodes::GenericErrorCodesSnapshotNotFound;
Expand Down
10 changes: 10 additions & 0 deletions code/include/playfab/PlayFabEconomyDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -3248,19 +3248,22 @@ namespace PlayFab
struct AddInventoryItemsOperation : public PlayFabBaseModel
{
Boxed<Int32> Amount;
Boxed<double> DurationInSeconds;
Boxed<InventoryItemReference> Item;
Boxed<InitialValues> NewStackValues;

AddInventoryItemsOperation() :
PlayFabBaseModel(),
Amount(),
DurationInSeconds(),
Item(),
NewStackValues()
{}

AddInventoryItemsOperation(const AddInventoryItemsOperation& src) :
PlayFabBaseModel(),
Amount(src.Amount),
DurationInSeconds(src.DurationInSeconds),
Item(src.Item),
NewStackValues(src.NewStackValues)
{}
Expand All @@ -3270,6 +3273,7 @@ namespace PlayFab
void FromJson(const Json::Value& input) override
{
FromJsonUtilP(input["Amount"], Amount);
FromJsonUtilP(input["DurationInSeconds"], DurationInSeconds);
FromJsonUtilO(input["Item"], Item);
FromJsonUtilO(input["NewStackValues"], NewStackValues);
}
Expand All @@ -3278,6 +3282,7 @@ namespace PlayFab
{
Json::Value output;
Json::Value each_Amount; ToJsonUtilP(Amount, each_Amount); output["Amount"] = each_Amount;
Json::Value each_DurationInSeconds; ToJsonUtilP(DurationInSeconds, each_DurationInSeconds); output["DurationInSeconds"] = each_DurationInSeconds;
Json::Value each_Item; ToJsonUtilO(Item, each_Item); output["Item"] = each_Item;
Json::Value each_NewStackValues; ToJsonUtilO(NewStackValues, each_NewStackValues); output["NewStackValues"] = each_NewStackValues;
return output;
Expand Down Expand Up @@ -7683,6 +7688,7 @@ namespace PlayFab
std::string CollectionId;
std::map<std::string, std::string> CustomTags;
Boxed<EntityKey> Entity;
std::string RedirectUri;
std::string ServiceLabel;

RedeemPlayStationStoreInventoryItemsRequest() :
Expand All @@ -7691,6 +7697,7 @@ namespace PlayFab
CollectionId(),
CustomTags(),
Entity(),
RedirectUri(),
ServiceLabel()
{}

Expand All @@ -7700,6 +7707,7 @@ namespace PlayFab
CollectionId(src.CollectionId),
CustomTags(src.CustomTags),
Entity(src.Entity),
RedirectUri(src.RedirectUri),
ServiceLabel(src.ServiceLabel)
{}

Expand All @@ -7711,6 +7719,7 @@ namespace PlayFab
FromJsonUtilS(input["CollectionId"], CollectionId);
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilO(input["Entity"], Entity);
FromJsonUtilS(input["RedirectUri"], RedirectUri);
FromJsonUtilS(input["ServiceLabel"], ServiceLabel);
}

Expand All @@ -7721,6 +7730,7 @@ namespace PlayFab
Json::Value each_CollectionId; ToJsonUtilS(CollectionId, each_CollectionId); output["CollectionId"] = each_CollectionId;
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_RedirectUri; ToJsonUtilS(RedirectUri, each_RedirectUri); output["RedirectUri"] = each_RedirectUri;
Json::Value each_ServiceLabel; ToJsonUtilS(ServiceLabel, each_ServiceLabel); output["ServiceLabel"] = each_ServiceLabel;
return output;
}
Expand Down
1 change: 1 addition & 0 deletions code/include/playfab/PlayFabError.h
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ namespace PlayFab
PlayFabErrorAsyncExportNotInFlight = 10011,
PlayFabErrorAsyncExportNotFound = 10012,
PlayFabErrorAsyncExportRateLimitExceeded = 10013,
PlayFabErrorAnalyticsSegmentCountOverLimit = 10014,
PlayFabErrorSnapshotNotFound = 11000,
PlayFabErrorInventoryApiNotImplemented = 12000,
PlayFabErrorLobbyDoesNotExist = 13000,
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabProfilesApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace PlayFab
static void GetProfile(ProfilesModels::GetEntityProfileRequest& request, const ProcessApiCallback<ProfilesModels::GetEntityProfileResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetProfiles(ProfilesModels::GetEntityProfilesRequest& request, const ProcessApiCallback<ProfilesModels::GetEntityProfilesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetTitlePlayersFromMasterPlayerAccountIds(ProfilesModels::GetTitlePlayersFromMasterPlayerAccountIdsRequest& request, const ProcessApiCallback<ProfilesModels::GetTitlePlayersFromMasterPlayerAccountIdsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void GetTitlePlayersFromXboxLiveIDs(ProfilesModels::GetTitlePlayersFromXboxLiveIDsRequest& request, const ProcessApiCallback<ProfilesModels::GetTitlePlayersFromProviderIDsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void SetGlobalPolicy(ProfilesModels::SetGlobalPolicyRequest& request, const ProcessApiCallback<ProfilesModels::SetGlobalPolicyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void SetProfileLanguage(ProfilesModels::SetProfileLanguageRequest& request, const ProcessApiCallback<ProfilesModels::SetProfileLanguageResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void SetProfilePolicy(ProfilesModels::SetEntityProfilePolicyRequest& request, const ProcessApiCallback<ProfilesModels::SetEntityProfilePolicyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand All @@ -46,6 +47,7 @@ namespace PlayFab
static void OnGetProfileResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetProfilesResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetTitlePlayersFromMasterPlayerAccountIdsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnGetTitlePlayersFromXboxLiveIDsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnSetGlobalPolicyResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnSetProfileLanguageResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnSetProfilePolicyResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
73 changes: 73 additions & 0 deletions code/include/playfab/PlayFabProfilesDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,79 @@ namespace PlayFab
}
};

struct GetTitlePlayersFromProviderIDsResponse : public PlayFabResultCommon
{
std::map<std::string, EntityLineage> TitlePlayerAccounts;

GetTitlePlayersFromProviderIDsResponse() :
PlayFabResultCommon(),
TitlePlayerAccounts()
{}

GetTitlePlayersFromProviderIDsResponse(const GetTitlePlayersFromProviderIDsResponse& src) :
PlayFabResultCommon(),
TitlePlayerAccounts(src.TitlePlayerAccounts)
{}

~GetTitlePlayersFromProviderIDsResponse() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_TitlePlayerAccounts; ToJsonUtilO(TitlePlayerAccounts, each_TitlePlayerAccounts); output["TitlePlayerAccounts"] = each_TitlePlayerAccounts;
return output;
}
};

struct GetTitlePlayersFromXboxLiveIDsRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;
std::string Sandbox;
std::string TitleId;
std::list<std::string> XboxLiveIds;

GetTitlePlayersFromXboxLiveIDsRequest() :
PlayFabRequestCommon(),
CustomTags(),
Sandbox(),
TitleId(),
XboxLiveIds()
{}

GetTitlePlayersFromXboxLiveIDsRequest(const GetTitlePlayersFromXboxLiveIDsRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags),
Sandbox(src.Sandbox),
TitleId(src.TitleId),
XboxLiveIds(src.XboxLiveIds)
{}

~GetTitlePlayersFromXboxLiveIDsRequest() = default;

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

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_Sandbox; ToJsonUtilS(Sandbox, each_Sandbox); output["Sandbox"] = each_Sandbox;
Json::Value each_TitleId; ToJsonUtilS(TitleId, each_TitleId); output["TitleId"] = each_TitleId;
Json::Value each_XboxLiveIds; ToJsonUtilS(XboxLiveIds, each_XboxLiveIds); output["XboxLiveIds"] = each_XboxLiveIds;
return output;
}
};

struct SetEntityProfilePolicyRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabProfilesInstanceApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace PlayFab
void GetProfile(ProfilesModels::GetEntityProfileRequest& request, const ProcessApiCallback<ProfilesModels::GetEntityProfileResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void GetProfiles(ProfilesModels::GetEntityProfilesRequest& request, const ProcessApiCallback<ProfilesModels::GetEntityProfilesResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void GetTitlePlayersFromMasterPlayerAccountIds(ProfilesModels::GetTitlePlayersFromMasterPlayerAccountIdsRequest& request, const ProcessApiCallback<ProfilesModels::GetTitlePlayersFromMasterPlayerAccountIdsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void GetTitlePlayersFromXboxLiveIDs(ProfilesModels::GetTitlePlayersFromXboxLiveIDsRequest& request, const ProcessApiCallback<ProfilesModels::GetTitlePlayersFromProviderIDsResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void SetGlobalPolicy(ProfilesModels::SetGlobalPolicyRequest& request, const ProcessApiCallback<ProfilesModels::SetGlobalPolicyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void SetProfileLanguage(ProfilesModels::SetProfileLanguageRequest& request, const ProcessApiCallback<ProfilesModels::SetProfileLanguageResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void SetProfilePolicy(ProfilesModels::SetEntityProfilePolicyRequest& request, const ProcessApiCallback<ProfilesModels::SetEntityProfilePolicyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand All @@ -58,6 +59,7 @@ namespace PlayFab
void OnGetProfileResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnGetProfilesResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnGetTitlePlayersFromMasterPlayerAccountIdsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnGetTitlePlayersFromXboxLiveIDsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnSetGlobalPolicyResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnSetProfileLanguageResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnSetProfilePolicyResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
4 changes: 4 additions & 0 deletions code/include/playfab/PlayFabServerApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ namespace PlayFab
static void LinkNintendoSwitchDeviceId(ServerModels::LinkNintendoSwitchDeviceIdRequest& request, const ProcessApiCallback<ServerModels::LinkNintendoSwitchDeviceIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LinkPSNAccount(ServerModels::LinkPSNAccountRequest& request, const ProcessApiCallback<ServerModels::LinkPSNAccountResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LinkServerCustomId(ServerModels::LinkServerCustomIdRequest& request, const ProcessApiCallback<ServerModels::LinkServerCustomIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void LinkSteamId(ServerModels::LinkSteamIdRequest& request, const ProcessApiCallback<ServerModels::LinkSteamIdResult> 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);
Expand Down Expand Up @@ -147,6 +148,7 @@ namespace PlayFab
static void UnlinkNintendoSwitchDeviceId(ServerModels::UnlinkNintendoSwitchDeviceIdRequest& request, const ProcessApiCallback<ServerModels::UnlinkNintendoSwitchDeviceIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnlinkPSNAccount(ServerModels::UnlinkPSNAccountRequest& request, const ProcessApiCallback<ServerModels::UnlinkPSNAccountResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnlinkServerCustomId(ServerModels::UnlinkServerCustomIdRequest& request, const ProcessApiCallback<ServerModels::UnlinkServerCustomIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnlinkSteamId(ServerModels::UnlinkSteamIdRequest& request, const ProcessApiCallback<ServerModels::UnlinkSteamIdResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnlinkXboxAccount(ServerModels::UnlinkXboxAccountRequest& request, const ProcessApiCallback<ServerModels::UnlinkXboxAccountResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnlockContainerInstance(ServerModels::UnlockContainerInstanceRequest& request, const ProcessApiCallback<ServerModels::UnlockContainerItemResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnlockContainerItem(ServerModels::UnlockContainerItemRequest& request, const ProcessApiCallback<ServerModels::UnlockContainerItemResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -250,6 +252,7 @@ namespace PlayFab
static void OnLinkNintendoSwitchDeviceIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLinkPSNAccountResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLinkServerCustomIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnLinkSteamIdResult(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);
Expand Down Expand Up @@ -292,6 +295,7 @@ namespace PlayFab
static void OnUnlinkNintendoSwitchDeviceIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnlinkPSNAccountResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnlinkServerCustomIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnlinkSteamIdResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnlinkXboxAccountResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnlockContainerInstanceResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnlockContainerItemResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
Loading

0 comments on commit dc57889

Please sign in to comment.