Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#241122
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Nov 25, 2024
2 parents 165519a + 7626c32 commit 7dedde4
Show file tree
Hide file tree
Showing 30 changed files with 310 additions and 8 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.205.241108"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.206.241122"; } }
Original file line number Diff line number Diff line change
Expand Up @@ -2649,6 +2649,8 @@ public enum GenericErrorCodes
StatisticColumnLengthMismatch,
InvalidExternalEntityId,
UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier,
TransactionAlreadyApplied,
ReportDataNotRetrievedSuccessfully,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down Expand Up @@ -2928,6 +2930,8 @@ public enum GenericErrorCodes
GameSaveFileNotUploaded,
GameSaveBadRequest,
GameSaveOperationNotAllowed,
GameSaveDataStorageQuotaExceeded,
GameSaveNewerManifestExists,
StateShareForbidden,
StateShareTitleNotInFlight,
StateShareStateNotFound,
Expand Down
14 changes: 14 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,20 @@ public static void GetPlayFabIDsFromSteamIDs(GetPlayFabIDsFromSteamIDsRequest re
PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromSteamIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
/// names.
/// </summary>
public static void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest request, Action<GetPlayFabIDsFromSteamNamesResult> 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/GetPlayFabIDsFromSteamNames", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
/// the user accounts, available as "_id" from the Twitch API methods (ex:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,18 @@ public void GetPlayFabIDsFromSteamIDs(GetPlayFabIDsFromSteamIDsRequest request,
PlayFabHttp.MakeApiCall("/Client/GetPlayFabIDsFromSteamIDs", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
/// names.
/// </summary>
public void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest request, Action<GetPlayFabIDsFromSteamNamesResult> 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/GetPlayFabIDsFromSteamNames", request, AuthType.LoginSession, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
/// the user accounts, available as "_id" from the Twitch API methods (ex:
Expand Down
36 changes: 36 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2713,6 +2713,29 @@ public class GetPlayFabIDsFromSteamIDsResult : PlayFabResultCommon
public List<SteamPlayFabIdPair> Data;
}

[Serializable]
public class GetPlayFabIDsFromSteamNamesRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Steam identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000 in
/// length.
/// </summary>
public List<string> SteamNames;
}

/// <summary>
/// For Steam identifiers which have not been linked to PlayFab accounts, or if the user has not logged in recently, null
/// will be returned.
/// </summary>
[Serializable]
public class GetPlayFabIDsFromSteamNamesResult : PlayFabResultCommon
{
/// <summary>
/// Mapping of Steam identifiers to PlayFab identifiers.
/// </summary>
public List<SteamNamePlayFabIdPair> Data;
}

[Serializable]
public class GetPlayFabIDsFromTwitchIDsRequest : PlayFabRequestCommon
{
Expand Down Expand Up @@ -5915,6 +5938,19 @@ public class StatisticValue : PlayFabBaseModel
public uint Version;
}

[Serializable]
public class SteamNamePlayFabIdPair : PlayFabBaseModel
{
/// <summary>
/// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier.
/// </summary>
public string PlayFabId;
/// <summary>
/// Unique Steam identifier for a user, also known as Steam persona name.
/// </summary>
public string SteamName;
}

[Serializable]
public class SteamPlayFabIdPair : PlayFabBaseModel
{
Expand Down
2 changes: 2 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<GetPlayFabIDsFromPSNOnlineIDsResult> OnGetPlayFabIDsFromPSNOnlineIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromSteamIDsRequest> OnGetPlayFabIDsFromSteamIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromSteamIDsResult> OnGetPlayFabIDsFromSteamIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromSteamNamesRequest> OnGetPlayFabIDsFromSteamNamesRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromSteamNamesResult> OnGetPlayFabIDsFromSteamNamesResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromTwitchIDsRequest> OnGetPlayFabIDsFromTwitchIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromTwitchIDsResult> OnGetPlayFabIDsFromTwitchIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromXboxLiveIDsRequest> OnGetPlayFabIDsFromXboxLiveIDsRequestEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ public enum AzureRegion
CentralIndia,
UaeNorth,
UkSouth,
SwedenCentral
SwedenCentral,
CanadaCentral,
MexicoCentral
}

public enum AzureVmFamily
Expand Down
2 changes: 2 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<GetPlayFabIDsFromPSNOnlineIDsResult> OnServerGetPlayFabIDsFromPSNOnlineIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromSteamIDsRequest> OnServerGetPlayFabIDsFromSteamIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromSteamIDsResult> OnServerGetPlayFabIDsFromSteamIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromSteamNamesRequest> OnServerGetPlayFabIDsFromSteamNamesRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromSteamNamesResult> OnServerGetPlayFabIDsFromSteamNamesResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromTwitchIDsRequest> OnServerGetPlayFabIDsFromTwitchIDsRequestEvent;
public event PlayFabResultEvent<GetPlayFabIDsFromTwitchIDsResult> OnServerGetPlayFabIDsFromTwitchIDsResultEvent;
public event PlayFabRequestEvent<GetPlayFabIDsFromXboxLiveIDsRequest> OnServerGetPlayFabIDsFromXboxLiveIDsRequestEvent;
Expand Down
14 changes: 14 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,20 @@ public static void GetPlayFabIDsFromSteamIDs(GetPlayFabIDsFromSteamIDsRequest re
PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
/// names.
/// </summary>
public static void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest request, Action<GetPlayFabIDsFromSteamNamesResult> 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); }


PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamNames", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
/// the user accounts, available as "_id" from the Twitch API methods (ex:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,18 @@ public void GetPlayFabIDsFromSteamIDs(GetPlayFabIDsFromSteamIDsRequest request,
PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamIDs", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
/// names.
/// </summary>
public void GetPlayFabIDsFromSteamNames(GetPlayFabIDsFromSteamNamesRequest request, Action<GetPlayFabIDsFromSteamNamesResult> 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 (string.IsNullOrEmpty(callSettings.DeveloperSecretKey)) { throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "Must set DeveloperSecretKey in settings to call this method"); }
PlayFabHttp.MakeApiCall("/Server/GetPlayFabIDsFromSteamNames", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
/// the user accounts, available as "_id" from the Twitch API methods (ex:
Expand Down
39 changes: 39 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Server/PlayFabServerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2018,6 +2018,8 @@ public enum GenericErrorCodes
StatisticColumnLengthMismatch,
InvalidExternalEntityId,
UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier,
TransactionAlreadyApplied,
ReportDataNotRetrievedSuccessfully,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down Expand Up @@ -2297,6 +2299,8 @@ public enum GenericErrorCodes
GameSaveFileNotUploaded,
GameSaveBadRequest,
GameSaveOperationNotAllowed,
GameSaveDataStorageQuotaExceeded,
GameSaveNewerManifestExists,
StateShareForbidden,
StateShareTitleNotInFlight,
StateShareStateNotFound,
Expand Down Expand Up @@ -3358,6 +3362,28 @@ public class GetPlayFabIDsFromSteamIDsResult : PlayFabResultCommon
public List<SteamPlayFabIdPair> Data;
}

[Serializable]
public class GetPlayFabIDsFromSteamNamesRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Steam identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000 in
/// length.
/// </summary>
public List<string> SteamNames;
}

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

[Serializable]
public class GetPlayFabIDsFromTwitchIDsRequest : PlayFabRequestCommon
{
Expand Down Expand Up @@ -6009,6 +6035,19 @@ public class StatisticValue : PlayFabBaseModel
public uint Version;
}

[Serializable]
public class SteamNamePlayFabIdPair : PlayFabBaseModel
{
/// <summary>
/// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier.
/// </summary>
public string PlayFabId;
/// <summary>
/// Unique Steam identifier for a user, also known as Steam persona name.
/// </summary>
public string SteamName;
}

[Serializable]
public class SteamPlayFabIdPair : PlayFabBaseModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ public enum PlayFabErrorCode
StatisticColumnLengthMismatch = 1593,
InvalidExternalEntityId = 1594,
UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier = 1595,
TransactionAlreadyApplied = 1596,
ReportDataNotRetrievedSuccessfully = 1597,
MatchmakingEntityInvalid = 2001,
MatchmakingPlayerAttributesInvalid = 2002,
MatchmakingQueueNotFound = 2016,
Expand Down Expand Up @@ -874,6 +876,8 @@ public enum PlayFabErrorCode
GameSaveFileNotUploaded = 20308,
GameSaveBadRequest = 20309,
GameSaveOperationNotAllowed = 20310,
GameSaveDataStorageQuotaExceeded = 20311,
GameSaveNewerManifestExists = 20312,
StateShareForbidden = 21000,
StateShareTitleNotInFlight = 21001,
StateShareStateNotFound = 21002,
Expand Down
Loading

0 comments on commit 7dedde4

Please sign in to comment.