Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#221107
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Nov 8, 2022
2 parents 9a49b8a + 3594fc2 commit 6cc9250
Show file tree
Hide file tree
Showing 12 changed files with 324 additions and 77 deletions.
21 changes: 21 additions & 0 deletions PlayFabSDK/UnittestRunner/UUnitTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ private static TestTitleData GetTestTitleData(string[] args)
{
TestTitleData testInputs = null;
string filename = null;
int fileIndex = 0;
for (var i = 0; i < args.Length; i++)
if (args[i] == "-testInputsFile" && (i + 1) < args.Length)
{
filename = args[i + 1];
fileIndex = i + 2;
}
if (string.IsNullOrEmpty(filename))
filename = Environment.GetEnvironmentVariable("PF_TEST_TITLE_DATA_JSON");
if (File.Exists(filename))
Expand All @@ -96,6 +100,23 @@ private static TestTitleData GetTestTitleData(string[] args)
WriteConsoleColor("Loading testSettings file failed: " + filename, ConsoleColor.Red);
WriteConsoleColor("From: " + Directory.GetCurrentDirectory(), ConsoleColor.Red);
}
for (var i = fileIndex; i < args.Length; i++)
{
if (args[i] == "-testInputsString" && (i + 2) < args.Length)
{
try
{
testInputs.developerSecretKey = args[i + 1];
testInputs.aliasId = args[i + 2];
return testInputs;
}
catch (Exception e)
{
WriteConsoleColor("Parsing testSettings string failed: " + e.Message, ConsoleColor.Red);
return null;
}
}
}
return testInputs;
}

Expand Down
86 changes: 64 additions & 22 deletions PlayFabSDK/source/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,27 @@ public class ExecuteCloudScriptResult : PlayFabResultCommon

}

public enum ExternalFriendSources
{
None,
Steam,
Facebook,
SteamOrFacebook,
Xbox,
SteamOrXbox,
FacebookOrXbox,
SteamOrFacebookOrXbox,
Psn,
SteamOrPsn,
FacebookOrPsn,
SteamOrFacebookOrPsn,
XboxOrPsn,
SteamOrXboxOrPsn,
FacebookOrXboxOrPsn,
SteamOrFacebookOrXboxOrPsn,
All
}

public class FacebookInstantGamesPlayFabIdPair
{
/// <summary>
Expand Down Expand Up @@ -2031,12 +2052,6 @@ public class GetCharacterInventoryResult : PlayFabResultCommon

public class GetCharacterLeaderboardRequest : PlayFabRequestCommon
{
/// <summary>
/// Optional character type on which to filter the leaderboard entries.
/// </summary>
[Obsolete("No longer available", true)]
public string CharacterType ;

/// <summary>
/// Maximum number of entries to retrieve. Default 10, maximum 100.
/// </summary>
Expand Down Expand Up @@ -2123,14 +2138,21 @@ public class GetFriendLeaderboardAroundPlayerRequest : PlayFabRequestCommon
/// </summary>
public Dictionary<string,string> CustomTags ;

/// <summary>
/// Indicates which other platforms' friends should be included in the response.
/// </summary>
public ExternalFriendSources? ExternalPlatformFriends ;

/// <summary>
/// Indicates whether Facebook friends should be included in the response. Default is true.
/// </summary>
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? IncludeFacebookFriends ;

/// <summary>
/// Indicates whether Steam service friends should be included in the response. Default is true.
/// </summary>
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? IncludeSteamFriends ;

/// <summary>
Expand Down Expand Up @@ -2199,14 +2221,21 @@ public class GetFriendLeaderboardRequest : PlayFabRequestCommon
/// </summary>
public Dictionary<string,string> CustomTags ;

/// <summary>
/// Indicates which other platforms' friends should be included in the response.
/// </summary>
public ExternalFriendSources? ExternalPlatformFriends ;

/// <summary>
/// Indicates whether Facebook friends should be included in the response. Default is true.
/// </summary>
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? IncludeFacebookFriends ;

/// <summary>
/// Indicates whether Steam service friends should be included in the response. Default is true.
/// </summary>
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? IncludeSteamFriends ;

/// <summary>
Expand Down Expand Up @@ -2250,14 +2279,21 @@ public class GetFriendsListRequest : PlayFabRequestCommon
/// </summary>
public Dictionary<string,string> CustomTags ;

/// <summary>
/// Indicates which other platforms' friends should be included in the response.
/// </summary>
public ExternalFriendSources? ExternalPlatformFriends ;

/// <summary>
/// Indicates whether Facebook friends should be included in the response. Default is true.
/// </summary>
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? IncludeFacebookFriends ;

/// <summary>
/// Indicates whether Steam service friends should be included in the response. Default is true.
/// </summary>
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? IncludeSteamFriends ;

/// <summary>
Expand Down Expand Up @@ -2296,12 +2332,6 @@ public class GetLeaderboardAroundCharacterRequest : PlayFabRequestCommon
/// </summary>
public string CharacterId ;

/// <summary>
/// Optional character type on which to filter the leaderboard entries.
/// </summary>
[Obsolete("No longer available", true)]
public string CharacterType ;

/// <summary>
/// Maximum number of entries to retrieve. Default 10, maximum 100.
/// </summary>
Expand Down Expand Up @@ -2866,7 +2896,8 @@ public class GetPlayerTradesResponse : PlayFabResultCommon
public class GetPlayFabIDsFromFacebookIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Facebook identifiers for which the title needs to get PlayFab identifiers.
/// Array of unique Facebook identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000
/// in length.
/// </summary>
public List<string> FacebookIDs ;

Expand All @@ -2887,7 +2918,8 @@ public class GetPlayFabIDsFromFacebookIDsResult : PlayFabResultCommon
public class GetPlayFabIDsFromFacebookInstantGamesIdsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Facebook Instant Games identifiers for which the title needs to get PlayFab identifiers.
/// Array of unique Facebook Instant Games identifiers for which the title needs to get PlayFab identifiers. The array
/// cannot exceed 25 in length.
/// </summary>
public List<string> FacebookInstantGamesIds ;

Expand All @@ -2909,6 +2941,7 @@ public class GetPlayFabIDsFromGameCenterIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Game Center identifiers (the Player Identifier) for which the title needs to get PlayFab identifiers.
/// The array cannot exceed 2,000 in length.
/// </summary>
public List<string> GameCenterIDs ;

Expand Down Expand Up @@ -2951,7 +2984,8 @@ public class GetPlayFabIDsFromGenericIDsResult : PlayFabResultCommon
public class GetPlayFabIDsFromGoogleIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Google identifiers (Google+ user IDs) for which the title needs to get PlayFab identifiers.
/// Array of unique Google identifiers (Google+ user IDs) for which the title needs to get PlayFab identifiers. The array
/// cannot exceed 2,000 in length.
/// </summary>
public List<string> GoogleIDs ;

Expand All @@ -2973,6 +3007,7 @@ public class GetPlayFabIDsFromGooglePlayGamesPlayerIDsRequest : PlayFabRequestCo
{
/// <summary>
/// Array of unique Google Play Games identifiers (Google+ user IDs) for which the title needs to get PlayFab identifiers.
/// The array cannot exceed 2,000 in length.
/// </summary>
public List<string> GooglePlayGamesPlayerIDs ;

Expand All @@ -2993,7 +3028,8 @@ public class GetPlayFabIDsFromGooglePlayGamesPlayerIDsResult : PlayFabResultComm
public class GetPlayFabIDsFromKongregateIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Kongregate identifiers (Kongregate's user_id) for which the title needs to get PlayFab identifiers.
/// Array of unique Kongregate identifiers (Kongregate's user_id) for which the title needs to get PlayFab identifiers. The
/// array cannot exceed 2,000 in length.
/// </summary>
public List<string> KongregateIDs ;

Expand All @@ -3014,7 +3050,8 @@ public class GetPlayFabIDsFromKongregateIDsResult : PlayFabResultCommon
public class GetPlayFabIDsFromNintendoServiceAccountIdsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Nintendo Switch Account identifiers for which the title needs to get PlayFab identifiers.
/// Array of unique Nintendo Switch Account identifiers for which the title needs to get PlayFab identifiers. The array
/// cannot exceed 2,000 in length.
/// </summary>
public List<string> NintendoAccountIds ;

Expand All @@ -3035,7 +3072,8 @@ public class GetPlayFabIDsFromNintendoServiceAccountIdsResult : PlayFabResultCom
public class GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Nintendo Switch Device identifiers for which the title needs to get PlayFab identifiers.
/// Array of unique Nintendo Switch Device identifiers for which the title needs to get PlayFab identifiers. The array
/// cannot exceed 2,000 in length.
/// </summary>
public List<string> NintendoSwitchDeviceIds ;

Expand All @@ -3061,7 +3099,8 @@ public class GetPlayFabIDsFromPSNAccountIDsRequest : PlayFabRequestCommon
public int? IssuerId ;

/// <summary>
/// Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers.
/// Array of unique PlayStation :tm: Network identifiers for which the title needs to get PlayFab identifiers. The array
/// cannot exceed 2,000 in length.
/// </summary>
public List<string> PSNAccountIDs ;

Expand All @@ -3082,7 +3121,8 @@ public class GetPlayFabIDsFromPSNAccountIDsResult : PlayFabResultCommon
public class GetPlayFabIDsFromSteamIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Steam identifiers (Steam profile IDs) for which the title needs to get PlayFab identifiers.
/// Array of unique Steam identifiers (Steam profile IDs) for which the title needs to get PlayFab identifiers. The array
/// cannot exceed 2,000 in length.
/// </summary>
public List<string> SteamStringIDs ;

Expand All @@ -3103,7 +3143,8 @@ public class GetPlayFabIDsFromSteamIDsResult : PlayFabResultCommon
public class GetPlayFabIDsFromTwitchIDsRequest : PlayFabRequestCommon
{
/// <summary>
/// Array of unique Twitch identifiers (Twitch's _id) for which the title needs to get PlayFab identifiers.
/// Array of unique Twitch identifiers (Twitch's _id) for which the title needs to get PlayFab identifiers. The array cannot
/// exceed 2,000 in length.
/// </summary>
public List<string> TwitchIds ;

Expand All @@ -3129,7 +3170,8 @@ public class GetPlayFabIDsFromXboxLiveIDsRequest : PlayFabRequestCommon
public string Sandbox ;

/// <summary>
/// Array of unique Xbox Live account identifiers for which the title needs to get PlayFab identifiers.
/// Array of unique Xbox Live account identifiers for which the title needs to get PlayFab identifiers. The array cannot
/// exceed 2,000 in length.
/// </summary>
public List<string> XboxLiveAccountIDs ;

Expand Down
32 changes: 30 additions & 2 deletions PlayFabSDK/source/PlayFabMultiplayerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,27 @@ public class EntityKey

}

public enum ExternalFriendSources
{
None,
Steam,
Facebook,
SteamOrFacebook,
Xbox,
SteamOrXbox,
FacebookOrXbox,
SteamOrFacebookOrXbox,
Psn,
SteamOrPsn,
FacebookOrPsn,
SteamOrFacebookOrPsn,
XboxOrPsn,
SteamOrXboxOrPsn,
FacebookOrXboxOrPsn,
SteamOrFacebookOrXboxOrPsn,
All
}

/// <summary>
/// Request to find friends lobbies. Only a client can find friend lobbies.
/// </summary>
Expand All @@ -1930,12 +1951,19 @@ public class FindFriendLobbiesRequest : PlayFabRequestCommon
/// <summary>
/// Controls whether this query should link to friends made on the Facebook network. Defaults to false
/// </summary>
public bool ExcludeFacebookFriends ;
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? ExcludeFacebookFriends ;

/// <summary>
/// Controls whether this query should link to friends made on the Steam network. Defaults to false
/// </summary>
public bool ExcludeSteamFriends ;
[Obsolete("Use 'ExternalPlatformFriends' instead", false)]
public bool? ExcludeSteamFriends ;

/// <summary>
/// Indicates which other platforms' friends this query should link to.
/// </summary>
public ExternalFriendSources? ExternalPlatformFriends ;

/// <summary>
/// OData style string that contains one or more filters. Only the following operators are supported: "and" (logical and),
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSDK/source/PlayFabSDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<FileAlignment>512</FileAlignment>

<PackageId>PlayFabAllSDK</PackageId>
<Version>1.140.221024</Version>
<Version>1.141.221107</Version>
<Title>PlayFab CSharp Sdk</Title>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
Expand All @@ -21,7 +21,7 @@
<Company>PlayFab</Company>
<Product>PlayFabSDK</Product>
<PackageTags>PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native</PackageTags>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#221024</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#221107</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
Loading

0 comments on commit 6cc9250

Please sign in to comment.