Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#230818
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Aug 21, 2023
2 parents 7295248 + cb644ed commit 6c0c449
Show file tree
Hide file tree
Showing 12 changed files with 338 additions and 22 deletions.
115 changes: 113 additions & 2 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ namespace PlayFab
ContinentCodeEU,
ContinentCodeNA,
ContinentCodeOC,
ContinentCodeSA
ContinentCodeSA,
ContinentCodeUnknown
};

inline void ToJsonEnum(const ContinentCode input, Json::Value& output)
Expand Down Expand Up @@ -194,6 +195,11 @@ namespace PlayFab
output = Json::Value("SA");
return;
}
if (input == ContinentCode::ContinentCodeUnknown)
{
output = Json::Value("Unknown");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, ContinentCode& output)
{
Expand Down Expand Up @@ -237,6 +243,11 @@ namespace PlayFab
output = ContinentCode::ContinentCodeSA;
return;
}
if (inputStr == "Unknown")
{
output = ContinentCode::ContinentCodeUnknown;
return;
}
}

enum class CountryCode
Expand Down Expand Up @@ -489,7 +500,8 @@ namespace PlayFab
CountryCodeEH,
CountryCodeYE,
CountryCodeZM,
CountryCodeZW
CountryCodeZW,
CountryCodeUnknown
};

inline void ToJsonEnum(const CountryCode input, Json::Value& output)
Expand Down Expand Up @@ -1739,6 +1751,11 @@ namespace PlayFab
output = Json::Value("ZW");
return;
}
if (input == CountryCode::CountryCodeUnknown)
{
output = Json::Value("Unknown");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, CountryCode& output)
{
Expand Down Expand Up @@ -2992,6 +3009,11 @@ namespace PlayFab
output = CountryCode::CountryCodeZW;
return;
}
if (inputStr == "Unknown")
{
output = CountryCode::CountryCodeUnknown;
return;
}
}

enum class Currency
Expand Down Expand Up @@ -5673,6 +5695,11 @@ namespace PlayFab
GenericErrorCodesAllowNonUniquePlayerDisplayNamesDisableNotAllowed,
GenericErrorCodesPartitionedEventInvalid,
GenericErrorCodesPartitionedEventCountOverLimit,
GenericErrorCodesManageEventNamespaceInvalid,
GenericErrorCodesManageEventNameInvalid,
GenericErrorCodesManagedEventNotFound,
GenericErrorCodesManageEventsInvalidRatio,
GenericErrorCodesManagedEventInvalid,
GenericErrorCodesPlayerCustomPropertiesPropertyNameTooLong,
GenericErrorCodesPlayerCustomPropertiesPropertyNameIsInvalid,
GenericErrorCodesPlayerCustomPropertiesStringPropertyValueTooLong,
Expand Down Expand Up @@ -9292,6 +9319,31 @@ namespace PlayFab
output = Json::Value("PartitionedEventCountOverLimit");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesManageEventNamespaceInvalid)
{
output = Json::Value("ManageEventNamespaceInvalid");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesManageEventNameInvalid)
{
output = Json::Value("ManageEventNameInvalid");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesManagedEventNotFound)
{
output = Json::Value("ManagedEventNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesManageEventsInvalidRatio)
{
output = Json::Value("ManageEventsInvalidRatio");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesManagedEventInvalid)
{
output = Json::Value("ManagedEventInvalid");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesPlayerCustomPropertiesPropertyNameTooLong)
{
output = Json::Value("PlayerCustomPropertiesPropertyNameTooLong");
Expand Down Expand Up @@ -12955,6 +13007,31 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesPartitionedEventCountOverLimit;
return;
}
if (inputStr == "ManageEventNamespaceInvalid")
{
output = GenericErrorCodes::GenericErrorCodesManageEventNamespaceInvalid;
return;
}
if (inputStr == "ManageEventNameInvalid")
{
output = GenericErrorCodes::GenericErrorCodesManageEventNameInvalid;
return;
}
if (inputStr == "ManagedEventNotFound")
{
output = GenericErrorCodes::GenericErrorCodesManagedEventNotFound;
return;
}
if (inputStr == "ManageEventsInvalidRatio")
{
output = GenericErrorCodes::GenericErrorCodesManageEventsInvalidRatio;
return;
}
if (inputStr == "ManagedEventInvalid")
{
output = GenericErrorCodes::GenericErrorCodesManagedEventInvalid;
return;
}
if (inputStr == "PlayerCustomPropertiesPropertyNameTooLong")
{
output = GenericErrorCodes::GenericErrorCodesPlayerCustomPropertiesPropertyNameTooLong;
Expand Down Expand Up @@ -28416,6 +28493,35 @@ namespace PlayFab
}
};

struct UserServerCustomIdInfo : public PlayFabBaseModel
{
std::string CustomId;

UserServerCustomIdInfo() :
PlayFabBaseModel(),
CustomId()
{}

UserServerCustomIdInfo(const UserServerCustomIdInfo& src) :
PlayFabBaseModel(),
CustomId(src.CustomId)
{}

~UserServerCustomIdInfo() = default;

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

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

struct UserSteamInfo : public PlayFabBaseModel
{
Boxed<TitleActivationStatus> SteamActivationStatus;
Expand Down Expand Up @@ -28616,6 +28722,7 @@ namespace PlayFab
std::string PlayFabId;
Boxed<UserPrivateAccountInfo> PrivateInfo;
Boxed<UserPsnInfo> PsnInfo;
Boxed<UserServerCustomIdInfo> ServerCustomIdInfo;
Boxed<UserSteamInfo> SteamInfo;
Boxed<UserTitleInfo> TitleInfo;
Boxed<UserTwitchInfo> TwitchInfo;
Expand All @@ -28641,6 +28748,7 @@ namespace PlayFab
PlayFabId(),
PrivateInfo(),
PsnInfo(),
ServerCustomIdInfo(),
SteamInfo(),
TitleInfo(),
TwitchInfo(),
Expand All @@ -28667,6 +28775,7 @@ namespace PlayFab
PlayFabId(src.PlayFabId),
PrivateInfo(src.PrivateInfo),
PsnInfo(src.PsnInfo),
ServerCustomIdInfo(src.ServerCustomIdInfo),
SteamInfo(src.SteamInfo),
TitleInfo(src.TitleInfo),
TwitchInfo(src.TwitchInfo),
Expand Down Expand Up @@ -28695,6 +28804,7 @@ namespace PlayFab
FromJsonUtilS(input["PlayFabId"], PlayFabId);
FromJsonUtilO(input["PrivateInfo"], PrivateInfo);
FromJsonUtilO(input["PsnInfo"], PsnInfo);
FromJsonUtilO(input["ServerCustomIdInfo"], ServerCustomIdInfo);
FromJsonUtilO(input["SteamInfo"], SteamInfo);
FromJsonUtilO(input["TitleInfo"], TitleInfo);
FromJsonUtilO(input["TwitchInfo"], TwitchInfo);
Expand Down Expand Up @@ -28722,6 +28832,7 @@ namespace PlayFab
Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId;
Json::Value each_PrivateInfo; ToJsonUtilO(PrivateInfo, each_PrivateInfo); output["PrivateInfo"] = each_PrivateInfo;
Json::Value each_PsnInfo; ToJsonUtilO(PsnInfo, each_PsnInfo); output["PsnInfo"] = each_PsnInfo;
Json::Value each_ServerCustomIdInfo; ToJsonUtilO(ServerCustomIdInfo, each_ServerCustomIdInfo); output["ServerCustomIdInfo"] = each_ServerCustomIdInfo;
Json::Value each_SteamInfo; ToJsonUtilO(SteamInfo, each_SteamInfo); output["SteamInfo"] = each_SteamInfo;
Json::Value each_TitleInfo; ToJsonUtilO(TitleInfo, each_TitleInfo); output["TitleInfo"] = each_TitleInfo;
Json::Value each_TwitchInfo; ToJsonUtilO(TwitchInfo, each_TwitchInfo); output["TwitchInfo"] = each_TwitchInfo;
Expand Down
60 changes: 58 additions & 2 deletions code/include/playfab/PlayFabClientDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ namespace PlayFab
ContinentCodeEU,
ContinentCodeNA,
ContinentCodeOC,
ContinentCodeSA
ContinentCodeSA,
ContinentCodeUnknown
};

inline void ToJsonEnum(const ContinentCode input, Json::Value& output)
Expand Down Expand Up @@ -167,6 +168,11 @@ namespace PlayFab
output = Json::Value("SA");
return;
}
if (input == ContinentCode::ContinentCodeUnknown)
{
output = Json::Value("Unknown");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, ContinentCode& output)
{
Expand Down Expand Up @@ -210,6 +216,11 @@ namespace PlayFab
output = ContinentCode::ContinentCodeSA;
return;
}
if (inputStr == "Unknown")
{
output = ContinentCode::ContinentCodeUnknown;
return;
}
}

enum class CountryCode
Expand Down Expand Up @@ -462,7 +473,8 @@ namespace PlayFab
CountryCodeEH,
CountryCodeYE,
CountryCodeZM,
CountryCodeZW
CountryCodeZW,
CountryCodeUnknown
};

inline void ToJsonEnum(const CountryCode input, Json::Value& output)
Expand Down Expand Up @@ -1712,6 +1724,11 @@ namespace PlayFab
output = Json::Value("ZW");
return;
}
if (input == CountryCode::CountryCodeUnknown)
{
output = Json::Value("Unknown");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, CountryCode& output)
{
Expand Down Expand Up @@ -2965,6 +2982,11 @@ namespace PlayFab
output = CountryCode::CountryCodeZW;
return;
}
if (inputStr == "Unknown")
{
output = CountryCode::CountryCodeUnknown;
return;
}
}

enum class Currency
Expand Down Expand Up @@ -10365,6 +10387,35 @@ namespace PlayFab
}
};

struct UserServerCustomIdInfo : public PlayFabBaseModel
{
std::string CustomId;

UserServerCustomIdInfo() :
PlayFabBaseModel(),
CustomId()
{}

UserServerCustomIdInfo(const UserServerCustomIdInfo& src) :
PlayFabBaseModel(),
CustomId(src.CustomId)
{}

~UserServerCustomIdInfo() = default;

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

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

struct UserTitleInfo : public PlayFabBaseModel
{
std::string AvatarUrl;
Expand Down Expand Up @@ -10482,6 +10533,7 @@ namespace PlayFab
std::string PlayFabId;
Boxed<UserPrivateAccountInfo> PrivateInfo;
Boxed<UserPsnInfo> PsnInfo;
Boxed<UserServerCustomIdInfo> ServerCustomIdInfo;
Boxed<UserSteamInfo> SteamInfo;
Boxed<UserTitleInfo> TitleInfo;
Boxed<UserTwitchInfo> TwitchInfo;
Expand All @@ -10507,6 +10559,7 @@ namespace PlayFab
PlayFabId(),
PrivateInfo(),
PsnInfo(),
ServerCustomIdInfo(),
SteamInfo(),
TitleInfo(),
TwitchInfo(),
Expand All @@ -10533,6 +10586,7 @@ namespace PlayFab
PlayFabId(src.PlayFabId),
PrivateInfo(src.PrivateInfo),
PsnInfo(src.PsnInfo),
ServerCustomIdInfo(src.ServerCustomIdInfo),
SteamInfo(src.SteamInfo),
TitleInfo(src.TitleInfo),
TwitchInfo(src.TwitchInfo),
Expand Down Expand Up @@ -10561,6 +10615,7 @@ namespace PlayFab
FromJsonUtilS(input["PlayFabId"], PlayFabId);
FromJsonUtilO(input["PrivateInfo"], PrivateInfo);
FromJsonUtilO(input["PsnInfo"], PsnInfo);
FromJsonUtilO(input["ServerCustomIdInfo"], ServerCustomIdInfo);
FromJsonUtilO(input["SteamInfo"], SteamInfo);
FromJsonUtilO(input["TitleInfo"], TitleInfo);
FromJsonUtilO(input["TwitchInfo"], TwitchInfo);
Expand Down Expand Up @@ -10588,6 +10643,7 @@ namespace PlayFab
Json::Value each_PlayFabId; ToJsonUtilS(PlayFabId, each_PlayFabId); output["PlayFabId"] = each_PlayFabId;
Json::Value each_PrivateInfo; ToJsonUtilO(PrivateInfo, each_PrivateInfo); output["PrivateInfo"] = each_PrivateInfo;
Json::Value each_PsnInfo; ToJsonUtilO(PsnInfo, each_PsnInfo); output["PsnInfo"] = each_PsnInfo;
Json::Value each_ServerCustomIdInfo; ToJsonUtilO(ServerCustomIdInfo, each_ServerCustomIdInfo); output["ServerCustomIdInfo"] = each_ServerCustomIdInfo;
Json::Value each_SteamInfo; ToJsonUtilO(SteamInfo, each_SteamInfo); output["SteamInfo"] = each_SteamInfo;
Json::Value each_TitleInfo; ToJsonUtilO(TitleInfo, each_TitleInfo); output["TitleInfo"] = each_TitleInfo;
Json::Value each_TwitchInfo; ToJsonUtilO(TwitchInfo, each_TwitchInfo); output["TwitchInfo"] = each_TwitchInfo;
Expand Down
Loading

0 comments on commit 6c0c449

Please sign in to comment.