Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240315
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Mar 18, 2024
1 parent e4bea75 commit 38850ef
Show file tree
Hide file tree
Showing 10 changed files with 130 additions and 15 deletions.
37 changes: 37 additions & 0 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5462,6 +5462,8 @@ namespace PlayFab
GenericErrorCodesLeaderboardNameConflict,
GenericErrorCodesLinkedStatisticColumnMismatch,
GenericErrorCodesNoLinkedStatisticToLeaderboard,
GenericErrorCodesStatDefinitionAlreadyLinkedToLeaderboard,
GenericErrorCodesLinkingStatsNotAllowedForEntityType,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand Down Expand Up @@ -8477,6 +8479,16 @@ namespace PlayFab
output = Json::Value("NoLinkedStatisticToLeaderboard");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesStatDefinitionAlreadyLinkedToLeaderboard)
{
output = Json::Value("StatDefinitionAlreadyLinkedToLeaderboard");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesLinkingStatsNotAllowedForEntityType)
{
output = Json::Value("LinkingStatsNotAllowedForEntityType");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -12360,6 +12372,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesNoLinkedStatisticToLeaderboard;
return;
}
if (inputStr == "StatDefinitionAlreadyLinkedToLeaderboard")
{
output = GenericErrorCodes::GenericErrorCodesStatDefinitionAlreadyLinkedToLeaderboard;
return;
}
if (inputStr == "LinkingStatsNotAllowedForEntityType")
{
output = GenericErrorCodes::GenericErrorCodesLinkingStatsNotAllowedForEntityType;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down Expand Up @@ -21114,6 +21136,7 @@ namespace PlayFab
std::string BanId;
Boxed<time_t> Created;
Boxed<time_t> Expires;
Boxed<bool> IncludeMicrosoftFamily;
std::string IPAddress;
std::string PlayFabId;
std::string Reason;
Expand All @@ -21124,6 +21147,7 @@ namespace PlayFab
BanId(),
Created(),
Expires(),
IncludeMicrosoftFamily(),
IPAddress(),
PlayFabId(),
Reason()
Expand All @@ -21135,6 +21159,7 @@ namespace PlayFab
BanId(src.BanId),
Created(src.Created),
Expires(src.Expires),
IncludeMicrosoftFamily(src.IncludeMicrosoftFamily),
IPAddress(src.IPAddress),
PlayFabId(src.PlayFabId),
Reason(src.Reason)
Expand All @@ -21148,6 +21173,7 @@ namespace PlayFab
FromJsonUtilS(input["BanId"], BanId);
FromJsonUtilT(input["Created"], Created);
FromJsonUtilT(input["Expires"], Expires);
FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily);
FromJsonUtilS(input["IPAddress"], IPAddress);
FromJsonUtilS(input["PlayFabId"], PlayFabId);
FromJsonUtilS(input["Reason"], Reason);
Expand All @@ -21160,6 +21186,7 @@ namespace PlayFab
Json::Value each_BanId; ToJsonUtilS(BanId, each_BanId); output["BanId"] = each_BanId;
Json::Value each_Created; ToJsonUtilT(Created, each_Created); output["Created"] = each_Created;
Json::Value each_Expires; ToJsonUtilT(Expires, each_Expires); output["Expires"] = each_Expires;
Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily;
Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress;
Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId;
Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason;
Expand Down Expand Up @@ -21204,13 +21231,15 @@ namespace PlayFab
struct BanRequest : public PlayFabRequestCommon
{
Boxed<Uint32> DurationInHours;
Boxed<bool> IncludeMicrosoftFamily;
std::string IPAddress;
std::string PlayFabId;
std::string Reason;

BanRequest() :
PlayFabRequestCommon(),
DurationInHours(),
IncludeMicrosoftFamily(),
IPAddress(),
PlayFabId(),
Reason()
Expand All @@ -21219,6 +21248,7 @@ namespace PlayFab
BanRequest(const BanRequest& src) :
PlayFabRequestCommon(),
DurationInHours(src.DurationInHours),
IncludeMicrosoftFamily(src.IncludeMicrosoftFamily),
IPAddress(src.IPAddress),
PlayFabId(src.PlayFabId),
Reason(src.Reason)
Expand All @@ -21229,6 +21259,7 @@ namespace PlayFab
void FromJson(const Json::Value& input) override
{
FromJsonUtilP(input["DurationInHours"], DurationInHours);
FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily);
FromJsonUtilS(input["IPAddress"], IPAddress);
FromJsonUtilS(input["PlayFabId"], PlayFabId);
FromJsonUtilS(input["Reason"], Reason);
Expand All @@ -21238,6 +21269,7 @@ namespace PlayFab
{
Json::Value output;
Json::Value each_DurationInHours; ToJsonUtilP(DurationInHours, each_DurationInHours); output["DurationInHours"] = each_DurationInHours;
Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily;
Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress;
Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId;
Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason;
Expand Down Expand Up @@ -31139,6 +31171,7 @@ namespace PlayFab
Boxed<bool> Active;
std::string BanId;
Boxed<time_t> Expires;
Boxed<bool> IncludeMicrosoftFamily;
std::string IPAddress;
Boxed<bool> Permanent;
std::string Reason;
Expand All @@ -31148,6 +31181,7 @@ namespace PlayFab
Active(),
BanId(),
Expires(),
IncludeMicrosoftFamily(),
IPAddress(),
Permanent(),
Reason()
Expand All @@ -31158,6 +31192,7 @@ namespace PlayFab
Active(src.Active),
BanId(src.BanId),
Expires(src.Expires),
IncludeMicrosoftFamily(src.IncludeMicrosoftFamily),
IPAddress(src.IPAddress),
Permanent(src.Permanent),
Reason(src.Reason)
Expand All @@ -31170,6 +31205,7 @@ namespace PlayFab
FromJsonUtilP(input["Active"], Active);
FromJsonUtilS(input["BanId"], BanId);
FromJsonUtilT(input["Expires"], Expires);
FromJsonUtilP(input["IncludeMicrosoftFamily"], IncludeMicrosoftFamily);
FromJsonUtilS(input["IPAddress"], IPAddress);
FromJsonUtilP(input["Permanent"], Permanent);
FromJsonUtilS(input["Reason"], Reason);
Expand All @@ -31181,6 +31217,7 @@ namespace PlayFab
Json::Value each_Active; ToJsonUtilP(Active, each_Active); output["Active"] = each_Active;
Json::Value each_BanId; ToJsonUtilS(BanId, each_BanId); output["BanId"] = each_BanId;
Json::Value each_Expires; ToJsonUtilT(Expires, each_Expires); output["Expires"] = each_Expires;
Json::Value each_IncludeMicrosoftFamily; ToJsonUtilP(IncludeMicrosoftFamily, each_IncludeMicrosoftFamily); output["IncludeMicrosoftFamily"] = each_IncludeMicrosoftFamily;
Json::Value each_IPAddress; ToJsonUtilS(IPAddress, each_IPAddress); output["IPAddress"] = each_IPAddress;
Json::Value each_Permanent; ToJsonUtilP(Permanent, each_Permanent); output["Permanent"] = each_Permanent;
Json::Value each_Reason; ToJsonUtilS(Reason, each_Reason); output["Reason"] = each_Reason;
Expand Down
43 changes: 41 additions & 2 deletions code/include/playfab/PlayFabEconomyDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -4183,6 +4183,35 @@ namespace PlayFab
}
};

struct Permissions : public PlayFabBaseModel
{
std::list<std::string> SegmentIds;

Permissions() :
PlayFabBaseModel(),
SegmentIds()
{}

Permissions(const Permissions& src) :
PlayFabBaseModel(),
SegmentIds(src.SegmentIds)
{}

~Permissions() = default;

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

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

struct CatalogPriceAmountOverride : public PlayFabBaseModel
{
Boxed<Int32> FixedValue;
Expand Down Expand Up @@ -4283,17 +4312,20 @@ namespace PlayFab
struct StoreDetails : public PlayFabBaseModel
{
Boxed<FilterOptions> pfFilterOptions;
Boxed<Permissions> pfPermissions;
Boxed<CatalogPriceOptionsOverride> PriceOptionsOverride;

StoreDetails() :
PlayFabBaseModel(),
pfFilterOptions(),
pfPermissions(),
PriceOptionsOverride()
{}

StoreDetails(const StoreDetails& src) :
PlayFabBaseModel(),
pfFilterOptions(src.pfFilterOptions),
pfPermissions(src.pfPermissions),
PriceOptionsOverride(src.PriceOptionsOverride)
{}

Expand All @@ -4302,13 +4334,15 @@ namespace PlayFab
void FromJson(const Json::Value& input) override
{
FromJsonUtilO(input["FilterOptions"], pfFilterOptions);
FromJsonUtilO(input["Permissions"], pfPermissions);
FromJsonUtilO(input["PriceOptionsOverride"], PriceOptionsOverride);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_pfFilterOptions; ToJsonUtilO(pfFilterOptions, each_pfFilterOptions); output["FilterOptions"] = each_pfFilterOptions;
Json::Value each_pfPermissions; ToJsonUtilO(pfPermissions, each_pfPermissions); output["Permissions"] = each_pfPermissions;
Json::Value each_PriceOptionsOverride; ToJsonUtilO(PriceOptionsOverride, each_PriceOptionsOverride); output["PriceOptionsOverride"] = each_PriceOptionsOverride;
return output;
}
Expand Down Expand Up @@ -6680,6 +6714,7 @@ namespace PlayFab
std::map<std::string, std::string> CustomTags;
Boxed<EntityKey> Entity;
std::string Filter;
std::string OrderBy;

GetTransactionHistoryRequest() :
PlayFabRequestCommon(),
Expand All @@ -6688,7 +6723,8 @@ namespace PlayFab
Count(),
CustomTags(),
Entity(),
Filter()
Filter(),
OrderBy()
{}

GetTransactionHistoryRequest(const GetTransactionHistoryRequest& src) :
Expand All @@ -6698,7 +6734,8 @@ namespace PlayFab
Count(src.Count),
CustomTags(src.CustomTags),
Entity(src.Entity),
Filter(src.Filter)
Filter(src.Filter),
OrderBy(src.OrderBy)
{}

~GetTransactionHistoryRequest() = default;
Expand All @@ -6711,6 +6748,7 @@ namespace PlayFab
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilO(input["Entity"], Entity);
FromJsonUtilS(input["Filter"], Filter);
FromJsonUtilS(input["OrderBy"], OrderBy);
}

Json::Value ToJson() const override
Expand All @@ -6722,6 +6760,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_Filter; ToJsonUtilS(Filter, each_Filter); output["Filter"] = each_Filter;
Json::Value each_OrderBy; ToJsonUtilS(OrderBy, each_OrderBy); output["OrderBy"] = each_OrderBy;
return output;
}
};
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 @@ -570,6 +570,8 @@ namespace PlayFab
PlayFabErrorLeaderboardNameConflict = 1569,
PlayFabErrorLinkedStatisticColumnMismatch = 1570,
PlayFabErrorNoLinkedStatisticToLeaderboard = 1571,
PlayFabErrorStatDefinitionAlreadyLinkedToLeaderboard = 1572,
PlayFabErrorLinkingStatsNotAllowedForEntityType = 1573,
PlayFabErrorMatchmakingEntityInvalid = 2001,
PlayFabErrorMatchmakingPlayerAttributesInvalid = 2002,
PlayFabErrorMatchmakingQueueNotFound = 2016,
Expand Down
Loading

0 comments on commit 38850ef

Please sign in to comment.