Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#200121
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Jan 21, 2020
1 parent a54dea0 commit fe6dee3
Show file tree
Hide file tree
Showing 89 changed files with 1,722 additions and 432 deletions.
4 changes: 0 additions & 4 deletions build/Windows/TestClientApp.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="$(TestSourceDir)\TestApp\TestAppPch.h">
Expand Down
4 changes: 0 additions & 4 deletions build/Windows/TestServerApp.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="$(TestSourceDir)\TestApp\TestAppPch.h">
Expand Down
9 changes: 6 additions & 3 deletions code/include/playfab/PlayFabAdminApi.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#pragma once

#ifdef ENABLE_PLAYFABADMIN_API
#if defined(ENABLE_PLAYFABADMIN_API)

#include <playfab/PlayFabCallRequestContainer.h>
#include <playfab/PlayFabAdminDataModels.h>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Admin APIs
/// </summary>
Expand Down Expand Up @@ -249,4 +252,4 @@ namespace PlayFab
};
}

#endif // #ifdef ENABLE_PLAYFABADMIN_API
#endif // #if defined(ENABLE_PLAYFABADMIN_API)
13 changes: 12 additions & 1 deletion code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#ifdef ENABLE_PLAYFABADMIN_API
#if defined(ENABLE_PLAYFABADMIN_API)

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
Expand Down Expand Up @@ -5377,6 +5377,7 @@ namespace PlayFab
GenericErrorCodesInsightsManagementTitleInEvaluationMode,
GenericErrorCodesCloudScriptAzureFunctionsQueueRequestError,
GenericErrorCodesEvaluationModeTitleCountExceeded,
GenericErrorCodesInsightsManagementTitleNotInFlight,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand Down Expand Up @@ -7879,6 +7880,11 @@ namespace PlayFab
output = Json::Value("EvaluationModeTitleCountExceeded");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesInsightsManagementTitleNotInFlight)
{
output = Json::Value("InsightsManagementTitleNotInFlight");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -10677,6 +10683,11 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesEvaluationModeTitleCountExceeded;
return;
}
if (inputStr == "InsightsManagementTitleNotInFlight")
{
output = GenericErrorCodes::GenericErrorCodesInsightsManagementTitleNotInFlight;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down
11 changes: 7 additions & 4 deletions code/include/playfab/PlayFabAdminInstanceApi.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#pragma once

#ifdef ENABLE_PLAYFABADMIN_API
#if defined(ENABLE_PLAYFABADMIN_API)

#include <playfab/PlayFabCallRequestContainer.h>
#include <playfab/PlayFabApiSettings.h>
#include <playfab/PlayFabAdminDataModels.h>
#include <memory>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;
class PlayFabApiSettings;
class PlayFabAuthenticationContext;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Admin APIs
/// </summary>
Expand Down
9 changes: 6 additions & 3 deletions code/include/playfab/PlayFabAuthenticationApi.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#pragma once

#ifndef DISABLE_PLAYFABENTITY_API
#if !defined(DISABLE_PLAYFABENTITY_API)

#include <playfab/PlayFabCallRequestContainer.h>
#include <playfab/PlayFabAuthenticationDataModels.h>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Authentication APIs
/// </summary>
Expand All @@ -33,4 +36,4 @@ namespace PlayFab
};
}

#endif // #ifndef DISABLE_PLAYFABENTITY_API
#endif // #if !defined(DISABLE_PLAYFABENTITY_API)
4 changes: 3 additions & 1 deletion code/include/playfab/PlayFabAuthenticationContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace PlayFab
/// </summary>
class PlayFabAuthenticationContext
{
#ifndef DISABLE_PLAYFABCLIENT_API
#if !defined(DISABLE_PLAYFABCLIENT_API)
public: // Client-only variables should only be visible when appropriate
#else
private: // But, static library memory size and alloc issues mean it always needs to exist
Expand All @@ -36,5 +36,7 @@ namespace PlayFab

void HandlePlayFabLogin(const std::string& _playFabId, const std::string& _clientSessionTicket, const std::string& _entityId, const std::string& _entityType, const std::string& _entityToken);
void ForgetAllCredentials();
bool IsClientLoggedIn();
bool IsEntityLoggedIn();
};
}
2 changes: 1 addition & 1 deletion code/include/playfab/PlayFabAuthenticationDataModels.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#ifndef DISABLE_PLAYFABENTITY_API
#if !defined(DISABLE_PLAYFABENTITY_API)

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
Expand Down
11 changes: 7 additions & 4 deletions code/include/playfab/PlayFabAuthenticationInstanceApi.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#pragma once

#ifndef DISABLE_PLAYFABENTITY_API
#if !defined(DISABLE_PLAYFABENTITY_API)

#include <playfab/PlayFabCallRequestContainer.h>
#include <playfab/PlayFabApiSettings.h>
#include <playfab/PlayFabAuthenticationDataModels.h>
#include <memory>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;
class PlayFabApiSettings;
class PlayFabAuthenticationContext;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Authentication APIs
/// </summary>
Expand Down
10 changes: 4 additions & 6 deletions code/include/playfab/PlayFabBaseModel.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#pragma once

#include <assert.h>
#include <functional>
#include <list>
#include <map>
#include <memory>

#include <playfab/PlayFabPlatformMacros.h>
#include <playfab/PlayFabPlatformTypes.h>
#include <playfab/PlayFabJsonHeaders.h>
#include <playfab/PlayFabPlatformTypes.h>
#include <playfab/PlayFabPlatformUtils.h>

#include <assert.h>
#include <functional>
#include <list>

namespace PlayFab
{
class PlayFabAuthenticationContext;
Expand Down
3 changes: 2 additions & 1 deletion code/include/playfab/PlayFabCallRequestContainer.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#pragma once

#include <playfab/PlayFabApiSettings.h>
#include <playfab/PlayFabError.h>
#include <playfab/PlayFabCallRequestContainerBase.h>

namespace PlayFab
{
class PlayFabApiSettings;

/// <summary>
/// Internal PlayFabHttp container for each API call
/// </summary>
Expand Down
3 changes: 0 additions & 3 deletions code/include/playfab/PlayFabCallRequestContainerBase.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once

#include <unordered_map>
#include <memory>

namespace PlayFab
{
class CallRequestContainerBase;
Expand Down
9 changes: 6 additions & 3 deletions code/include/playfab/PlayFabClientApi.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#pragma once

#ifndef DISABLE_PLAYFABCLIENT_API
#if !defined(DISABLE_PLAYFABCLIENT_API)

#include <playfab/PlayFabCallRequestContainer.h>
#include <playfab/PlayFabClientDataModels.h>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Client APIs
/// </summary>
Expand Down Expand Up @@ -347,4 +350,4 @@ namespace PlayFab
};
}

#endif // #ifndef DISABLE_PLAYFABCLIENT_API
#endif // #if !defined(DISABLE_PLAYFABCLIENT_API)
17 changes: 1 addition & 16 deletions code/include/playfab/PlayFabClientDataModels.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#ifndef DISABLE_PLAYFABCLIENT_API
#if !defined(DISABLE_PLAYFABCLIENT_API)

#include <playfab/PlayFabBaseModel.h>
#include <playfab/PlayFabJsonHeaders.h>
Expand Down Expand Up @@ -19383,15 +19383,13 @@ namespace PlayFab
{
Json::Value Body; // Not truly arbitrary. See documentation for restrictions on format
std::string CharacterId;
std::map<std::string, std::string> EventCustomTags;
std::string EventName;
Boxed<time_t> Timestamp;

WriteClientCharacterEventRequest() :
PlayFabRequestCommon(),
Body(),
CharacterId(),
EventCustomTags(),
EventName(),
Timestamp()
{}
Expand All @@ -19400,7 +19398,6 @@ namespace PlayFab
PlayFabRequestCommon(),
Body(src.Body),
CharacterId(src.CharacterId),
EventCustomTags(src.EventCustomTags),
EventName(src.EventName),
Timestamp(src.Timestamp)
{}
Expand All @@ -19411,7 +19408,6 @@ namespace PlayFab
{
Body = input["Body"];
FromJsonUtilS(input["CharacterId"], CharacterId);
FromJsonUtilS(input["EventCustomTags"], EventCustomTags);
FromJsonUtilS(input["EventName"], EventName);
FromJsonUtilT(input["Timestamp"], Timestamp);
}
Expand All @@ -19421,7 +19417,6 @@ namespace PlayFab
Json::Value output;
output["Body"] = Body;
Json::Value each_CharacterId; ToJsonUtilS(CharacterId, each_CharacterId); output["CharacterId"] = each_CharacterId;
Json::Value each_EventCustomTags; ToJsonUtilS(EventCustomTags, each_EventCustomTags); output["EventCustomTags"] = each_EventCustomTags;
Json::Value each_EventName; ToJsonUtilS(EventName, each_EventName); output["EventName"] = each_EventName;
Json::Value each_Timestamp; ToJsonUtilT(Timestamp, each_Timestamp); output["Timestamp"] = each_Timestamp;
return output;
Expand All @@ -19431,22 +19426,19 @@ namespace PlayFab
struct WriteClientPlayerEventRequest : public PlayFabRequestCommon
{
Json::Value Body; // Not truly arbitrary. See documentation for restrictions on format
std::map<std::string, std::string> EventCustomTags;
std::string EventName;
Boxed<time_t> Timestamp;

WriteClientPlayerEventRequest() :
PlayFabRequestCommon(),
Body(),
EventCustomTags(),
EventName(),
Timestamp()
{}

WriteClientPlayerEventRequest(const WriteClientPlayerEventRequest& src) :
PlayFabRequestCommon(),
Body(src.Body),
EventCustomTags(src.EventCustomTags),
EventName(src.EventName),
Timestamp(src.Timestamp)
{}
Expand All @@ -19456,7 +19448,6 @@ namespace PlayFab
void FromJson(const Json::Value& input) override
{
Body = input["Body"];
FromJsonUtilS(input["EventCustomTags"], EventCustomTags);
FromJsonUtilS(input["EventName"], EventName);
FromJsonUtilT(input["Timestamp"], Timestamp);
}
Expand All @@ -19465,7 +19456,6 @@ namespace PlayFab
{
Json::Value output;
output["Body"] = Body;
Json::Value each_EventCustomTags; ToJsonUtilS(EventCustomTags, each_EventCustomTags); output["EventCustomTags"] = each_EventCustomTags;
Json::Value each_EventName; ToJsonUtilS(EventName, each_EventName); output["EventName"] = each_EventName;
Json::Value each_Timestamp; ToJsonUtilT(Timestamp, each_Timestamp); output["Timestamp"] = each_Timestamp;
return output;
Expand Down Expand Up @@ -19504,22 +19494,19 @@ namespace PlayFab
struct WriteTitleEventRequest : public PlayFabRequestCommon
{
Json::Value Body; // Not truly arbitrary. See documentation for restrictions on format
std::map<std::string, std::string> EventCustomTags;
std::string EventName;
Boxed<time_t> Timestamp;

WriteTitleEventRequest() :
PlayFabRequestCommon(),
Body(),
EventCustomTags(),
EventName(),
Timestamp()
{}

WriteTitleEventRequest(const WriteTitleEventRequest& src) :
PlayFabRequestCommon(),
Body(src.Body),
EventCustomTags(src.EventCustomTags),
EventName(src.EventName),
Timestamp(src.Timestamp)
{}
Expand All @@ -19529,7 +19516,6 @@ namespace PlayFab
void FromJson(const Json::Value& input) override
{
Body = input["Body"];
FromJsonUtilS(input["EventCustomTags"], EventCustomTags);
FromJsonUtilS(input["EventName"], EventName);
FromJsonUtilT(input["Timestamp"], Timestamp);
}
Expand All @@ -19538,7 +19524,6 @@ namespace PlayFab
{
Json::Value output;
output["Body"] = Body;
Json::Value each_EventCustomTags; ToJsonUtilS(EventCustomTags, each_EventCustomTags); output["EventCustomTags"] = each_EventCustomTags;
Json::Value each_EventName; ToJsonUtilS(EventName, each_EventName); output["EventName"] = each_EventName;
Json::Value each_Timestamp; ToJsonUtilT(Timestamp, each_Timestamp); output["Timestamp"] = each_Timestamp;
return output;
Expand Down
11 changes: 7 additions & 4 deletions code/include/playfab/PlayFabClientInstanceApi.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#pragma once

#ifndef DISABLE_PLAYFABCLIENT_API
#if !defined(DISABLE_PLAYFABCLIENT_API)

#include <playfab/PlayFabCallRequestContainer.h>
#include <playfab/PlayFabApiSettings.h>
#include <playfab/PlayFabClientDataModels.h>
#include <memory>
#include <playfab/PlayFabError.h>

namespace PlayFab
{
class CallRequestContainerBase;
class CallRequestContainer;
class PlayFabApiSettings;
class PlayFabAuthenticationContext;

/// <summary>
/// Main interface for PlayFab Sdk, specifically all Client APIs
/// </summary>
Expand Down
Loading

0 comments on commit fe6dee3

Please sign in to comment.