Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240514
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed May 14, 2024
2 parents 16f207f + 11a0b63 commit f3738ce
Show file tree
Hide file tree
Showing 13 changed files with 255 additions and 19 deletions.
28 changes: 25 additions & 3 deletions PlayFabSDK/source/PlayFabMultiplayerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public enum AzureVmFamily
NCasT4_v3,
Ddv4,
Ddsv4,
HBv3
HBv3,
Ddv5,
Ddsv5
}

public enum AzureVmSize
Expand Down Expand Up @@ -193,7 +195,17 @@ public enum AzureVmSize
Standard_HB120_32rs_v3,
Standard_HB120_64rs_v3,
Standard_HB120_96rs_v3,
Standard_HB120rs_v3
Standard_HB120rs_v3,
Standard_D2d_v5,
Standard_D4d_v5,
Standard_D8d_v5,
Standard_D16d_v5,
Standard_D32d_v5,
Standard_D2ds_v5,
Standard_D4ds_v5,
Standard_D8ds_v5,
Standard_D16ds_v5,
Standard_D32ds_v5
}

public class BuildAliasDetailsResponse : PlayFabResultCommon
Expand Down Expand Up @@ -1096,7 +1108,7 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
public string GameWorkingDirectory ;

/// <summary>
/// The instrumentation configuration for the build.
/// The instrumentation configuration for the Build. Used only if it is a Windows Build.
/// </summary>
public InstrumentationConfiguration InstrumentationConfiguration ;

Expand All @@ -1106,6 +1118,11 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
/// </summary>
public bool? IsOSPreview ;

/// <summary>
/// The Linux instrumentation configuration for the Build. Used only if it is a Linux Build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration ;

/// <summary>
/// Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through
/// Game Server SDK (GSDK).Constraints: Maximum number of keys: 30, Maximum key length: 50, Maximum value length: 100
Expand Down Expand Up @@ -1215,6 +1232,11 @@ public class CreateBuildWithProcessBasedServerResponse : PlayFabResultCommon
/// </summary>
public bool? IsOSPreview ;

/// <summary>
/// The Linux instrumentation configuration for this build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration ;

/// <summary>
/// The metadata of the build.
/// </summary>
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.180.240426</Version>
<Version>1.181.240514</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#240426</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240514</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
28 changes: 28 additions & 0 deletions PlayFabSDK/source/PlayFabServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,34 @@ public static async Task<PlayFabResult<LinkXboxAccountResult>> LinkXboxAccountAs
return new PlayFabResult<LinkXboxAccountResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public static async Task<PlayFabResult<ServerLoginResult>> LoginWithPSNAsync(LoginWithPSNRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestContext = request?.AuthenticationContext ?? PlayFabSettings.staticPlayer;
var requestSettings = PlayFabSettings.staticSettings;
if (requestSettings.DeveloperSecretKey == null) throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "DeveloperSecretKey must be set in your local or global settings to call this method");


var httpResult = await PlayFabHttp.DoPost("/Server/LoginWithPSN", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<ServerLoginResult> { Error = error, CustomData = customData };
}

var resultRawJson = (string)httpResult;
var resultData = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer).DeserializeObject<PlayFabJsonSuccess<ServerLoginResult>>(resultRawJson);
var result = resultData.data;

return new PlayFabResult<ServerLoginResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
27 changes: 27 additions & 0 deletions PlayFabSDK/source/PlayFabServerInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,33 @@ public async Task<PlayFabResult<LinkXboxAccountResult>> LinkXboxAccountAsync(Lin
return new PlayFabResult<LinkXboxAccountResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public async Task<PlayFabResult<ServerLoginResult>> LoginWithPSNAsync(LoginWithPSNRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestContext = request?.AuthenticationContext ?? authenticationContext;
var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;
if (requestSettings.DeveloperSecretKey == null) throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "DeveloperSecretKey must be set in your local or global settings to call this method");

var httpResult = await PlayFabHttp.DoPost("/Server/LoginWithPSN", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders, requestSettings);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<ServerLoginResult> { Error = error, CustomData = customData };
}

var resultRawJson = (string)httpResult;
var resultData = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer).DeserializeObject<PlayFabJsonSuccess<ServerLoginResult>>(resultRawJson);
var result = resultData.data;

return new PlayFabResult<ServerLoginResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
41 changes: 41 additions & 0 deletions PlayFabSDK/source/PlayFabServerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4728,6 +4728,47 @@ public enum LoginIdentityProvider
GooglePlayGames
}

/// <summary>
/// If this is the first time a user has signed in with the PlayStation :tm: Network account and CreateAccount is set to
/// true, a new PlayFab account will be created and linked to the PlayStation :tm: Network account. In this case, no email
/// or username will be associated with the PlayFab account. Otherwise, if no PlayFab account is linked to the PlayStation
/// :tm: Network account, an error indicating this will be returned, so that the title can guide the user through creation
/// of a PlayFab account.
/// </summary>
public class LoginWithPSNRequest : PlayFabRequestCommon
{
/// <summary>
/// Auth code provided by the PlayStation :tm: Network OAuth provider.
/// </summary>
public string AuthCode ;

/// <summary>
/// Automatically create a PlayFab account if one is not currently linked to this ID.
/// </summary>
public bool? CreateAccount ;

/// <summary>
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
/// </summary>
public Dictionary<string,string> CustomTags ;

/// <summary>
/// Flags for which pieces of info to return for the user.
/// </summary>
public GetPlayerCombinedInfoRequestParams InfoRequestParameters ;

/// <summary>
/// Id of the PlayStation :tm: Network issuer environment. If null, defaults to production environment.
/// </summary>
public int? IssuerId ;

/// <summary>
/// Redirect URI supplied to PlayStation :tm: Network when requesting an auth code
/// </summary>
public string RedirectUri ;

}

public class LoginWithServerCustomIdRequest : PlayFabRequestCommon
{
/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSDK/source/PlayFabSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace PlayFab
{
public class PlayFabSettings
{
public const string SdkVersion = "1.180.240426";
public const string BuildIdentifier = "adobuild_csharpsdk_115";
public const string SdkVersionString = "CSharpSDK-1.180.240426";
public const string SdkVersion = "1.181.240514";
public const string BuildIdentifier = "adobuild_csharpsdk_116";
public const string SdkVersionString = "CSharpSDK-1.181.240514";
/// <summary> This is only for customers running a private cluster. Generally you shouldn't touch this </summary>
public static string DefaultProductionEnvironmentUrl = "playfabapi.com";

Expand Down
6 changes: 3 additions & 3 deletions Plugins/CloudScript/source/PlayFabCloudScriptPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<FileAlignment>512</FileAlignment>

<PackageId>PlayFabCloudScriptPlugin</PackageId>
<Version>1.180.240426-alpha</Version>
<Version>1.181.240514-alpha</Version>
<Title>PlayFab CSharp CloudScript Plugin</Title>
<Authors>Microsoft</Authors>
<Owners>Microsoft</Owners>
Expand All @@ -21,7 +21,7 @@
<Product>PlayFabCloudScriptPlugin</Product>
<Copyright>Copyright 2024</Copyright>
<PackageTags>PlayFab, Baas, Paas, JSON, REST, HTTP, SSL, API, cloud, liveops, game, gamedev, native</PackageTags>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240426</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240514</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand All @@ -45,7 +45,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PlayFabAllSDK" Version="1.180.240426" />
<PackageReference Include="PlayFabAllSDK" Version="1.181.240514" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public enum AzureVmFamily
NCasT4_v3,
Ddv4,
Ddsv4,
HBv3
HBv3,
Ddv5,
Ddsv5
}

public enum AzureVmSize
Expand Down Expand Up @@ -193,7 +195,17 @@ public enum AzureVmSize
Standard_HB120_32rs_v3,
Standard_HB120_64rs_v3,
Standard_HB120_96rs_v3,
Standard_HB120rs_v3
Standard_HB120rs_v3,
Standard_D2d_v5,
Standard_D4d_v5,
Standard_D8d_v5,
Standard_D16d_v5,
Standard_D32d_v5,
Standard_D2ds_v5,
Standard_D4ds_v5,
Standard_D8ds_v5,
Standard_D16ds_v5,
Standard_D32ds_v5
}

public class BuildAliasDetailsResponse : PlayFabResultCommon
Expand Down Expand Up @@ -1096,7 +1108,7 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
public string GameWorkingDirectory ;

/// <summary>
/// The instrumentation configuration for the build.
/// The instrumentation configuration for the Build. Used only if it is a Windows Build.
/// </summary>
public InstrumentationConfiguration InstrumentationConfiguration ;

Expand All @@ -1106,6 +1118,11 @@ public class CreateBuildWithProcessBasedServerRequest : PlayFabRequestCommon
/// </summary>
public bool? IsOSPreview ;

/// <summary>
/// The Linux instrumentation configuration for the Build. Used only if it is a Linux Build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration ;

/// <summary>
/// Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through
/// Game Server SDK (GSDK).Constraints: Maximum number of keys: 30, Maximum key length: 50, Maximum value length: 100
Expand Down Expand Up @@ -1215,6 +1232,11 @@ public class CreateBuildWithProcessBasedServerResponse : PlayFabResultCommon
/// </summary>
public bool? IsOSPreview ;

/// <summary>
/// The Linux instrumentation configuration for this build.
/// </summary>
public LinuxInstrumentationConfiguration LinuxInstrumentationConfiguration ;

/// <summary>
/// The metadata of the build.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<FileAlignment>512</FileAlignment>

<PackageId>PlayFabAllSDK</PackageId>
<Version>1.180.240426</Version>
<Version>1.181.240514</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#240426</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#240514</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
28 changes: 28 additions & 0 deletions XamarinTestRunner/XamarinTestRunner/PlayFabSDK/PlayFabServerAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,34 @@ public static async Task<PlayFabResult<LinkXboxAccountResult>> LinkXboxAccountAs
return new PlayFabResult<LinkXboxAccountResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public static async Task<PlayFabResult<ServerLoginResult>> LoginWithPSNAsync(LoginWithPSNRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestContext = request?.AuthenticationContext ?? PlayFabSettings.staticPlayer;
var requestSettings = PlayFabSettings.staticSettings;
if (requestSettings.DeveloperSecretKey == null) throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "DeveloperSecretKey must be set in your local or global settings to call this method");


var httpResult = await PlayFabHttp.DoPost("/Server/LoginWithPSN", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<ServerLoginResult> { Error = error, CustomData = customData };
}

var resultRawJson = (string)httpResult;
var resultData = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer).DeserializeObject<PlayFabJsonSuccess<ServerLoginResult>>(resultRawJson);
var result = resultData.data;

return new PlayFabResult<ServerLoginResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,33 @@ public async Task<PlayFabResult<LinkXboxAccountResult>> LinkXboxAccountAsync(Lin
return new PlayFabResult<LinkXboxAccountResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Signs the user in using a PlayStation :tm: Network authentication code, returning a session identifier that can
/// subsequently be used for API calls which require an authenticated user
/// </summary>
public async Task<PlayFabResult<ServerLoginResult>> LoginWithPSNAsync(LoginWithPSNRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestContext = request?.AuthenticationContext ?? authenticationContext;
var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;
if (requestSettings.DeveloperSecretKey == null) throw new PlayFabException(PlayFabExceptionCode.DeveloperKeyNotSet, "DeveloperSecretKey must be set in your local or global settings to call this method");

var httpResult = await PlayFabHttp.DoPost("/Server/LoginWithPSN", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders, requestSettings);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<ServerLoginResult> { Error = error, CustomData = customData };
}

var resultRawJson = (string)httpResult;
var resultData = PluginManager.GetPlugin<ISerializerPlugin>(PluginContract.PlayFab_Serializer).DeserializeObject<PlayFabJsonSuccess<ServerLoginResult>>(resultRawJson);
var result = resultData.data;

return new PlayFabResult<ServerLoginResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Securely login a game client from an external server backend using a custom identifier for that player. Server Custom ID
/// and Client Custom ID are mutually exclusive and cannot be used to retrieve the same player account.
Expand Down
Loading

0 comments on commit f3738ce

Please sign in to comment.