Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240913
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Sep 16, 2024
2 parents f871b82 + c222a20 commit 71e298d
Show file tree
Hide file tree
Showing 40 changed files with 250 additions and 166 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.200.240816"; } }
namespace PlayFab.PfEditor { public static partial class PlayFabEditorHelper { public static string EDEX_VERSION = "2.202.240913"; } }
12 changes: 12 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Addon/PlayFabAddonModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ public class CreateOrUpdateGoogleRequest : PlayFabRequestCommon
/// </summary>
public string OAuthClientSecret;
/// <summary>
/// Authorized Redirect Uri obtained through the Google Developer Console. This currently defaults to
/// https://oauth.playfab.com/oauth2/google. If you are authenticating players via browser, please update this to your own
/// domain.
/// </summary>
public string OAuthCustomRedirectUri;
/// <summary>
/// Needed to enable pending purchase handling and subscription processing.
/// </summary>
public string ServiceAccountKey;
Expand Down Expand Up @@ -616,6 +622,12 @@ public class GetGoogleResponse : PlayFabResultCommon
/// Required if using Google Authentication.
/// </summary>
public string OAuthClientID;
/// <summary>
/// Authorized Redirect Uri obtained through the Google Developer Console. This currently defaults to
/// https://oauth.playfab.com/oauth2/google. If you are authenticating players via browser, please update this to your own
/// domain.
/// </summary>
public string OauthCustomRedirectUri;
}

[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ public enum GenericErrorCodes
MultipleLinkedStatisticsNotAllowed,
DuplicateLinkedStatisticColumnNameFound,
AggregationTypeNotAllowedForMultiColumnStatistic,
MaxQueryableVerionsValueNotAllowedForTier,
MaxQueryableVersionsValueNotAllowedForTier,
StatisticDefinitionHasNullOrEmptyVersionConfiguration,
StatisticColumnLengthMismatch,
MatchmakingEntityInvalid,
Expand Down Expand Up @@ -4333,7 +4333,8 @@ public enum LoginIdentityProvider
Apple,
NintendoSwitchAccount,
GooglePlayGames,
XboxMobileStore
XboxMobileStore,
King
}

[Serializable]
Expand Down Expand Up @@ -7560,7 +7561,8 @@ public enum UserOrigination
Apple,
NintendoSwitchAccount,
GooglePlayGames,
XboxMobileStore
XboxMobileStore,
King
}

[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ public enum LoginIdentityProvider
Apple,
NintendoSwitchAccount,
GooglePlayGames,
XboxMobileStore
XboxMobileStore,
King
}

/// <summary>
Expand Down
19 changes: 11 additions & 8 deletions ExampleMacProject/Assets/PlayFabSDK/Client/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1450,28 +1450,29 @@ public class FacebookPlayFabIdPair : PlayFabBaseModel
public class FriendInfo : PlayFabBaseModel
{
/// <summary>
/// Available Facebook information (if the user and PlayFab friend are also connected in Facebook).
/// Available Facebook information (if the user and connected Facebook friend both have PlayFab Accounts in the same title).
/// </summary>
public UserFacebookInfo FacebookInfo;
/// <summary>
/// PlayFab unique identifier for this friend.
/// </summary>
public string FriendPlayFabId;
/// <summary>
/// Available Game Center information (if the user and PlayFab friend are also connected in Game Center).
/// Available Game Center information (if the user and connected Game Center friend both have PlayFab Accounts in the same
/// title).
/// </summary>
public UserGameCenterInfo GameCenterInfo;
/// <summary>
/// The profile of the user, if requested.
/// </summary>
public PlayerProfileModel Profile;
/// <summary>
/// Available PlayStation :tm: Network information, if the user and PlayFab friend are both connected to PlayStation :tm:
/// Network.
/// Available PlayStation :tm: Network information, if the user connected PlayStation :tm Network friend both have PlayFab
/// Accounts in the same title.
/// </summary>
public UserPsnInfo PSNInfo;
/// <summary>
/// Available Steam information (if the user and PlayFab friend are also connected in Steam).
/// Available Steam information (if the user and connected Steam friend both have PlayFab Accounts in the same title).
/// </summary>
public UserSteamInfo SteamInfo;
/// <summary>
Expand All @@ -1487,7 +1488,7 @@ public class FriendInfo : PlayFabBaseModel
/// </summary>
public string Username;
/// <summary>
/// Available Xbox information, if the user and PlayFab friend are both connected to Xbox Live.
/// Available Xbox information, (if the user and connected Xbox Live friend both have PlayFab Accounts in the same title).
/// </summary>
public UserXboxInfo XboxInfo;
}
Expand Down Expand Up @@ -3824,7 +3825,8 @@ public enum LoginIdentityProvider
Apple,
NintendoSwitchAccount,
GooglePlayGames,
XboxMobileStore
XboxMobileStore,
King
}

[Serializable]
Expand Down Expand Up @@ -7051,7 +7053,8 @@ public enum UserOrigination
Apple,
NintendoSwitchAccount,
GooglePlayGames,
XboxMobileStore
XboxMobileStore,
King
}

[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ public enum LoginIdentityProvider
Apple,
NintendoSwitchAccount,
GooglePlayGames,
XboxMobileStore
XboxMobileStore,
King
}

[Serializable]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2408,26 +2408,26 @@ public class RedemptionFailure : PlayFabBaseModel
/// </summary>
public string FailureDetails;
/// <summary>
/// The transaction id in the external marketplace.
/// The Marketplace Alternate ID being redeemed.
/// </summary>
public string MarketplaceTransactionId;
public string MarketplaceAlternateId;
/// <summary>
/// The ID of the offer being redeemed.
/// The transaction id in the external marketplace.
/// </summary>
public string OfferId;
public string MarketplaceTransactionId;
}

[Serializable]
public class RedemptionSuccess : PlayFabBaseModel
{
/// <summary>
/// The transaction id in the external marketplace.
/// The Marketplace Alternate ID being redeemed.
/// </summary>
public string MarketplaceTransactionId;
public string MarketplaceAlternateId;
/// <summary>
/// The ID of the offer being redeemed.
/// The transaction id in the external marketplace.
/// </summary>
public string OfferId;
public string MarketplaceTransactionId;
/// <summary>
/// The timestamp for when the redeem was completed.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<GetTitlePlayersFromMasterPlayerAccountIdsResponse> OnProfilesGetTitlePlayersFromMasterPlayerAccountIdsResultEvent;
public event PlayFabRequestEvent<GetTitlePlayersFromXboxLiveIDsRequest> OnProfilesGetTitlePlayersFromXboxLiveIDsRequestEvent;
public event PlayFabResultEvent<GetTitlePlayersFromProviderIDsResponse> OnProfilesGetTitlePlayersFromXboxLiveIDsResultEvent;
public event PlayFabRequestEvent<SetDisplayNameRequest> OnProfilesSetDisplayNameRequestEvent;
public event PlayFabResultEvent<SetDisplayNameResponse> OnProfilesSetDisplayNameResultEvent;
public event PlayFabRequestEvent<SetGlobalPolicyRequest> OnProfilesSetGlobalPolicyRequestEvent;
public event PlayFabResultEvent<SetGlobalPolicyResponse> OnProfilesSetGlobalPolicyResultEvent;
public event PlayFabRequestEvent<SetProfileLanguageRequest> OnProfilesSetProfileLanguageRequestEvent;
Expand Down
13 changes: 13 additions & 0 deletions ExampleMacProject/Assets/PlayFabSDK/Profiles/PlayFabProfilesAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,19 @@ public static void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDs
PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromXboxLiveIDs", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Update the display name of the entity
/// </summary>
public static void SetDisplayName(SetDisplayNameRequest request, Action<SetDisplayNameResponse> 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.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");


PlayFabHttp.MakeApiCall("/Profile/SetDisplayName", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Sets the global title access policy
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@ public void GetTitlePlayersFromXboxLiveIDs(GetTitlePlayersFromXboxLiveIDsRequest
PlayFabHttp.MakeApiCall("/Profile/GetTitlePlayersFromXboxLiveIDs", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Update the display name of the entity
/// </summary>
public void SetDisplayName(SetDisplayNameRequest request, Action<SetDisplayNameResponse> 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.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
PlayFabHttp.MakeApiCall("/Profile/SetDisplayName", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Sets the global title access policy
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,44 @@ public enum OperationTypes
None
}

/// <summary>
/// Given an entity profile, will update its display name to the one passed in if the profile's version is equal to the
/// specified value
/// </summary>
[Serializable]
public class SetDisplayNameRequest : 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>
/// The new value to be set on Entity Profile's display name
/// </summary>
public string DisplayName;
/// <summary>
/// The optional entity to perform this action on. Defaults to the currently logged in entity.
/// </summary>
public EntityKey Entity;
/// <summary>
/// The expected version of a profile to perform this update on
/// </summary>
public int? ExpectedVersion;
}

[Serializable]
public class SetDisplayNameResponse : PlayFabResultCommon
{
/// <summary>
/// The type of operation that occured on the profile's display name
/// </summary>
public OperationTypes? OperationResult;
/// <summary>
/// The updated version of the profile after the display name update
/// </summary>
public int? VersionNumber;
}

/// <summary>
/// This will set the access policy statements on the given entity profile. This is not additive, any existing statements
/// will be replaced with the statements in this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public partial class PlayFabEvents
public event PlayFabResultEvent<GetEntityLeaderboardResponse> OnProgressionGetLeaderboardForEntitiesResultEvent;
public event PlayFabRequestEvent<GetStatisticDefinitionRequest> OnProgressionGetStatisticDefinitionRequestEvent;
public event PlayFabResultEvent<GetStatisticDefinitionResponse> OnProgressionGetStatisticDefinitionResultEvent;
public event PlayFabRequestEvent<GetStatisticDefinitionsRequest> OnProgressionGetStatisticDefinitionsRequestEvent;
public event PlayFabResultEvent<GetStatisticDefinitionsResponse> OnProgressionGetStatisticDefinitionsResultEvent;
public event PlayFabRequestEvent<GetStatisticsRequest> OnProgressionGetStatisticsRequestEvent;
public event PlayFabResultEvent<GetStatisticsResponse> OnProgressionGetStatisticsResultEvent;
public event PlayFabRequestEvent<GetStatisticsForEntitiesRequest> OnProgressionGetStatisticsForEntitiesRequestEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,6 @@ public static void GetStatisticDefinition(GetStatisticDefinitionRequest request,
PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Get all current statistic definitions information
/// </summary>
public static void GetStatisticDefinitions(GetStatisticDefinitionsRequest request, Action<GetStatisticDefinitionsResponse> 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.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");


PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
}

/// <summary>
/// Gets statistics for the specified entity.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,6 @@ public void GetStatisticDefinition(GetStatisticDefinitionRequest request, Action
PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinition", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Get all current statistic definitions information
/// </summary>
public void GetStatisticDefinitions(GetStatisticDefinitionsRequest request, Action<GetStatisticDefinitionsResponse> 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.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
PlayFabHttp.MakeApiCall("/Statistic/GetStatisticDefinitions", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
}

/// <summary>
/// Gets statistics for the specified entity.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,24 +461,6 @@ public class GetStatisticDefinitionResponse : PlayFabResultCommon
public VersionConfiguration VersionConfiguration;
}

[Serializable]
public class GetStatisticDefinitionsRequest : 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 GetStatisticDefinitionsResponse : PlayFabResultCommon
{
/// <summary>
/// List of statistic definitions for the title.
/// </summary>
public List<StatisticDefinition> StatisticDefinitions;
}

[Serializable]
public class GetStatisticsForEntitiesRequest : PlayFabRequestCommon
{
Expand Down
Loading

0 comments on commit 71e298d

Please sign in to comment.