Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#220815
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Aug 15, 2022
2 parents 559626d + 5ea2acb commit 8a14ea7
Show file tree
Hide file tree
Showing 24 changed files with 438 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.144.220804"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.145.220815"; } }
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,7 @@ public enum GenericErrorCodes
AutomationRuleAlreadyExists,
AutomationRuleLimitExceeded,
InvalidGooglePlayGamesServerAuthCode,
StorageAccountNotFound,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down
42 changes: 42 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,21 @@ public static void GetPlayFabIDsFromGoogleIDs(GetPlayFabIDsFromGoogleIDsRequest
PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromGoogleIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Google Play Games identifiers. The Google Play Games
/// identifiers are the IDs for the user accounts, available as "playerId" in the Google Play Games Services - Players API
/// calls.
/// </summary>
public static void GetPlayFabIDsFromGooglePlayGamesPlayerIDs(GetPlayFabIDsFromGooglePlayGamesPlayerIDsRequest request, Action<GetPlayFabIDsFromGooglePlayGamesPlayerIDsResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
var callSettings = PlayFabSettings.staticSettings;
if (!context.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");


PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromGooglePlayGamesPlayerIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the
/// IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex:
Expand Down Expand Up @@ -1140,6 +1155,20 @@ public static void LinkGoogleAccount(LinkGoogleAccountRequest request, Action<Li
PlayFabHttp.MakeApiCall("/Client/LinkGoogleAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Links the currently signed-in user account to their Google Play Games account, using their Google Play Games account
/// credentials
/// </summary>
public static void LinkGooglePlayGamesServicesAccount(LinkGooglePlayGamesServicesAccountRequest request, Action<LinkGooglePlayGamesServicesAccountResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
var callSettings = PlayFabSettings.staticSettings;
if (!context.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");


PlayFabHttp.MakeApiCall("/Client/LinkGooglePlayGamesServicesAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Links the vendor-specific iOS device identifier to the user's PlayFab account
/// </summary>
Expand Down Expand Up @@ -1919,6 +1948,19 @@ public static void UnlinkGoogleAccount(UnlinkGoogleAccountRequest request, Actio
PlayFabHttp.MakeApiCall("/Client/UnlinkGoogleAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Unlinks the related Google Play Games account from the user's PlayFab account.
/// </summary>
public static void UnlinkGooglePlayGamesServicesAccount(UnlinkGooglePlayGamesServicesAccountRequest request, Action<UnlinkGooglePlayGamesServicesAccountResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
var callSettings = PlayFabSettings.staticSettings;
if (!context.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");


PlayFabHttp.MakeApiCall("/Client/UnlinkGooglePlayGamesServicesAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Unlinks the related iOS device identifier from the user's PlayFab account
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,19 @@ public void GetPlayFabIDsFromGoogleIDs(GetPlayFabIDsFromGoogleIDsRequest request
PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromGoogleIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Google Play Games identifiers. The Google Play Games
/// identifiers are the IDs for the user accounts, available as "playerId" in the Google Play Games Services - Players API
/// calls.
/// </summary>
public void GetPlayFabIDsFromGooglePlayGamesPlayerIDs(GetPlayFabIDsFromGooglePlayGamesPlayerIDsRequest request, Action<GetPlayFabIDsFromGooglePlayGamesPlayerIDsResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
if (!context.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromGooglePlayGamesPlayerIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the
/// IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex:
Expand Down Expand Up @@ -1006,6 +1019,18 @@ public void LinkGoogleAccount(LinkGoogleAccountRequest request, Action<LinkGoogl
PlayFabHttp.MakeApiCall("/Client/LinkGoogleAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Links the currently signed-in user account to their Google Play Games account, using their Google Play Games account
/// credentials
/// </summary>
public void LinkGooglePlayGamesServicesAccount(LinkGooglePlayGamesServicesAccountRequest request, Action<LinkGooglePlayGamesServicesAccountResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
if (!context.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
PlayFabHttp.MakeApiCall("/Client/LinkGooglePlayGamesServicesAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Links the vendor-specific iOS device identifier to the user's PlayFab account
/// </summary>
Expand Down Expand Up @@ -1671,6 +1696,17 @@ public void UnlinkGoogleAccount(UnlinkGoogleAccountRequest request, Action<Unlin
PlayFabHttp.MakeApiCall("/Client/UnlinkGoogleAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Unlinks the related Google Play Games account from the user's PlayFab account.
/// </summary>
public void UnlinkGooglePlayGamesServicesAccount(UnlinkGooglePlayGamesServicesAccountRequest request, Action<UnlinkGooglePlayGamesServicesAccountResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
{
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
if (!context.IsClientLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
PlayFabHttp.MakeApiCall("/Client/UnlinkGooglePlayGamesServicesAccount", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Unlinks the related iOS device identifier from the user's PlayFab account
/// </summary>
Expand Down
80 changes: 77 additions & 3 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2238,9 +2238,7 @@ public class GetLeaderboardRequest : PlayFabRequestCommon
}

/// <summary>
/// Note that the Position of the user in the results is for the overall leaderboard. If Facebook friends are included, make
/// sure the access token from previous LoginWithFacebook call is still valid and not expired. If Xbox Live friends are
/// included, make sure the access token from the previous LoginWithXbox call is still valid and not expired.
/// Note: the user's Position is relative to the overall leaderboard.
/// </summary>
[Serializable]
public class GetLeaderboardResult : PlayFabResultCommon
Expand Down Expand Up @@ -2722,6 +2720,27 @@ public class GetPlayFabIDsFromGoogleIDsResult : PlayFabResultCommon
public List<GooglePlayFabIdPair> Data;
}

[Serializable]
public class GetPlayFabIDsFromGooglePlayGamesPlayerIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Google Play Games identifiers (Google+ user IDs) for which the title needs to get PlayFab identifiers.
/// </summary>
public List<string> GooglePlayGamesPlayerIDs;
}

/// <summary>
/// For Google Play Games identifiers which have not been linked to PlayFab accounts, null will be returned.
/// </summary>
[Serializable]
public class GetPlayFabIDsFromGooglePlayGamesPlayerIDsResult : PlayFabResultCommon
{
/// <summary>
/// Mapping of Google Play Games identifiers to PlayFab identifiers.
/// </summary>
public List<GooglePlayGamesPlayFabIdPair> Data;
}

[Serializable]
public class GetPlayFabIDsFromKongregateIDsRequest : PlayFabRequestCommon
{
Expand Down Expand Up @@ -3239,6 +3258,19 @@ public class GooglePlayFabIdPair : PlayFabBaseModel
public string PlayFabId;
}

[Serializable]
public class GooglePlayGamesPlayFabIdPair : PlayFabBaseModel
{
/// <summary>
/// Unique Google Play Games identifier for a user.
/// </summary>
public string GooglePlayGamesPlayerId;
/// <summary>
/// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Google Play Games identifier.
/// </summary>
public string PlayFabId;
}

/// <summary>
/// Grants a character to the user of the type specified by the item ID. The user must already have an instance of this item
/// in their inventory in order to allow character creation. This item can come from a purchase or grant, which must be done
Expand Down Expand Up @@ -3603,6 +3635,34 @@ public class LinkGoogleAccountResult : PlayFabResultCommon
{
}

/// <summary>
/// Google Play Games sign-in is accomplished by obtaining a Google OAuth 2.0 credential using the Google Play Games sign-in
/// for Android APIs on the device and passing it to this API.
/// </summary>
[Serializable]
public class LinkGooglePlayGamesServicesAccountRequest : PlayFabRequestCommon
{
/// <summary>
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
/// </summary>
public Dictionary<string,string> CustomTags;
/// <summary>
/// If another user is already linked to the account, unlink the other user and re-link. If the current user is already
/// linked, link both accounts
/// </summary>
public bool? ForceLink;
/// <summary>
/// OAuth 2.0 server authentication code obtained on the client by calling the requestServerSideAccess()
/// (https://developers.google.com/games/services/android/signin) Google Play Games client API.
/// </summary>
public string ServerAuthCode;
}

[Serializable]
public class LinkGooglePlayGamesServicesAccountResult : PlayFabResultCommon
{
}

[Serializable]
public class LinkIOSDeviceIDRequest : PlayFabRequestCommon
{
Expand Down Expand Up @@ -6466,6 +6526,20 @@ public class UnlinkGoogleAccountResult : PlayFabResultCommon
{
}

[Serializable]
public class UnlinkGooglePlayGamesServicesAccountRequest : PlayFabRequestCommon
{
/// <summary>
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
/// </summary>
public Dictionary<string,string> CustomTags;
}

[Serializable]
public class UnlinkGooglePlayGamesServicesAccountResult : PlayFabResultCommon
{
}

[Serializable]
public class UnlinkIOSDeviceIDRequest : PlayFabRequestCommon
{
Expand Down
6 changes: 6 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<GetPlayFabIDsFromGenericIDsResult> OnGetPlayFabIDsFromGenericIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromGoogleIDsRequest> OnGetPlayFabIDsFromGoogleIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromGoogleIDsResult> OnGetPlayFabIDsFromGoogleIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromGooglePlayGamesPlayerIDsRequest> OnGetPlayFabIDsFromGooglePlayGamesPlayerIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromGooglePlayGamesPlayerIDsResult> OnGetPlayFabIDsFromGooglePlayGamesPlayerIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromKongregateIDsRequest> OnGetPlayFabIDsFromKongregateIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromKongregateIDsResult> OnGetPlayFabIDsFromKongregateIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromNintendoServiceAccountIdsRequest> OnGetPlayFabIDsFromNintendoServiceAccountIdsRequestEvent;
Expand Down Expand Up @@ -167,6 +169,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<LinkGameCenterAccountResult> OnLinkGameCenterAccountResultEvent;
public event PlayFabRequestEvent<LinkGoogleAccountRequest> OnLinkGoogleAccountRequestEvent;
public event PlayFabResultEvent<LinkGoogleAccountResult> OnLinkGoogleAccountResultEvent;
public event PlayFabRequestEvent<LinkGooglePlayGamesServicesAccountRequest> OnLinkGooglePlayGamesServicesAccountRequestEvent;
public event PlayFabResultEvent<LinkGooglePlayGamesServicesAccountResult> OnLinkGooglePlayGamesServicesAccountResultEvent;
public event PlayFabRequestEvent<LinkIOSDeviceIDRequest> OnLinkIOSDeviceIDRequestEvent;
public event PlayFabResultEvent<LinkIOSDeviceIDResult> OnLinkIOSDeviceIDResultEvent;
public event PlayFabRequestEvent<LinkKongregateAccountRequest> OnLinkKongregateRequestEvent;
Expand Down Expand Up @@ -262,6 +266,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<UnlinkGameCenterAccountResult> OnUnlinkGameCenterAccountResultEvent;
public event PlayFabRequestEvent<UnlinkGoogleAccountRequest> OnUnlinkGoogleAccountRequestEvent;
public event PlayFabResultEvent<UnlinkGoogleAccountResult> OnUnlinkGoogleAccountResultEvent;
public event PlayFabRequestEvent<UnlinkGooglePlayGamesServicesAccountRequest> OnUnlinkGooglePlayGamesServicesAccountRequestEvent;
public event PlayFabResultEvent<UnlinkGooglePlayGamesServicesAccountResult> OnUnlinkGooglePlayGamesServicesAccountResultEvent;
public event PlayFabRequestEvent<UnlinkIOSDeviceIDRequest> OnUnlinkIOSDeviceIDRequestEvent;
public event PlayFabResultEvent<UnlinkIOSDeviceIDResult> OnUnlinkIOSDeviceIDResultEvent;
public event PlayFabRequestEvent<UnlinkKongregateAccountRequest> OnUnlinkKongregateRequestEvent;
Expand Down
Loading

0 comments on commit 8a14ea7

Please sign in to comment.