Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#230609
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Jun 13, 2023
2 parents 85b81ee + 82ddcae commit f552b84
Show file tree
Hide file tree
Showing 21 changed files with 159 additions and 27 deletions.
1 change: 1 addition & 0 deletions PlayFabSDK/source/PlayFabAdminModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,7 @@ public enum GenericErrorCodes
MultiplayerServerBuildReferencedByMatchmakingQueue,
MultiplayerServerBuildReferencedByBuildAlias,
MultiplayerServerBuildAliasReferencedByMatchmakingQueue,
PartySerializationError,
ExperimentationExperimentStopped,
ExperimentationExperimentRunning,
ExperimentationExperimentNotFound,
Expand Down
12 changes: 12 additions & 0 deletions PlayFabSDK/source/PlayFabClientModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4179,6 +4179,12 @@ public class LinkSteamAccountRequest : PlayFabRequestCommon
/// </summary>
public string SteamTicket ;

/// <summary>
/// True if ticket was generated using ISteamUser::GetAuthTicketForWebAPI() using "AzurePlayFab" as the identity string.
/// False if the ticket was generated with ISteamUser::GetAuthSessionTicket().
/// </summary>
public bool? TicketIsServiceSpecific ;

}

public class LinkSteamAccountResult : PlayFabResultCommon
Expand Down Expand Up @@ -5197,6 +5203,12 @@ public class LoginWithSteamRequest : PlayFabRequestCommon
/// </summary>
public string SteamTicket ;

/// <summary>
/// True if ticket was generated using ISteamUser::GetAuthTicketForWebAPI() using "AzurePlayFab" as the identity string.
/// False if the ticket was generated with ISteamUser::GetAuthSessionTicket().
/// </summary>
public bool? TicketIsServiceSpecific ;

/// <summary>
/// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a
/// title has been selected.
Expand Down
5 changes: 5 additions & 0 deletions PlayFabSDK/source/PlayFabEconomyModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ public class CatalogPrice
/// </summary>
public List<CatalogPriceAmount> Amounts ;

/// <summary>
/// The per-unit amount this price can be used to purchase.
/// </summary>
public int? UnitAmount ;

/// <summary>
/// The per-unit duration this price can be used to purchase. The maximum duration is 100 years.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions PlayFabSDK/source/PlayFabErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ public enum PlayFabErrorCode
MultiplayerServerBuildReferencedByMatchmakingQueue = 6002,
MultiplayerServerBuildReferencedByBuildAlias = 6003,
MultiplayerServerBuildAliasReferencedByMatchmakingQueue = 6004,
PartySerializationError = 6005,
ExperimentationExperimentStopped = 7000,
ExperimentationExperimentRunning = 7001,
ExperimentationExperimentNotFound = 7002,
Expand Down
29 changes: 26 additions & 3 deletions PlayFabSDK/source/PlayFabEventsAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static async Task<PlayFabResult<WriteEventsResponse>> WriteEventsAsync(Wr
var result = resultData.data;

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

/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
Expand Down Expand Up @@ -88,7 +88,30 @@ public static async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEvent
var result = resultData.data;

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

/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream) using a Telemetry Key. The namespace must be 'custom' or start
/// with 'custom.'
/// </summary>
public static async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEventsAsync(WriteEventsRequest request, string telemetryKey, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var httpResult = await PlayFabHttp.DoPost("/Event/WriteTelemetryEvents", request, "X-TelemetryKey", telemetryKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<WriteEventsResponse> { Error = error, CustomData = customData };
}

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

return new PlayFabResult<WriteEventsResponse> { Result = result, CustomData = customData };
}
}
}
#endif
29 changes: 26 additions & 3 deletions PlayFabSDK/source/PlayFabEventsInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task<PlayFabResult<WriteEventsResponse>> WriteEventsAsync(WriteEven
var result = resultData.data;

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

/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
Expand All @@ -104,8 +104,31 @@ public async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEventsAsync(
var result = resultData.data;

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

}
/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream) using a Telemetry Key. The namespace must be 'custom' or start
/// with 'custom.'
/// </summary>
public async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEventsAsync(WriteEventsRequest request, string telemetryKey, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;
var httpResult = await PlayFabHttp.DoPost("/Event/WriteTelemetryEvents", request, "X-TelemetryKey", telemetryKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<WriteEventsResponse> { Error = error, CustomData = customData };
}

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

return new PlayFabResult<WriteEventsResponse> { Result = result, CustomData = customData };
}
}
}
#endif
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabProfilesModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public class EntityStatisticValue
public Dictionary<string,EntityStatisticChildValue> ChildStatistics ;

/// <summary>
/// Statistic metadata
/// Metadata associated with the Statistic.
/// </summary>
public string Metadata ;

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.154.230529</Version>
<Version>1.155.230609</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#230529</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#230609</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
1 change: 1 addition & 0 deletions PlayFabSDK/source/PlayFabServerModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,7 @@ public enum GenericErrorCodes
MultiplayerServerBuildReferencedByMatchmakingQueue,
MultiplayerServerBuildReferencedByBuildAlias,
MultiplayerServerBuildAliasReferencedByMatchmakingQueue,
PartySerializationError,
ExperimentationExperimentStopped,
ExperimentationExperimentRunning,
ExperimentationExperimentNotFound,
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.154.230529";
public const string BuildIdentifier = "adobuild_csharpsdk_114";
public const string SdkVersionString = "CSharpSDK-1.154.230529";
public const string SdkVersion = "1.155.230609";
public const string BuildIdentifier = "adobuild_csharpsdk_117";
public const string SdkVersionString = "CSharpSDK-1.155.230609";
/// <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.154.230529-alpha</Version>
<Version>1.155.230609-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 2023</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#230529</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#230609</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand All @@ -45,7 +45,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PlayFabAllSDK" Version="1.154.230529" />
<PackageReference Include="PlayFabAllSDK" Version="1.155.230609" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,7 @@ public enum GenericErrorCodes
MultiplayerServerBuildReferencedByMatchmakingQueue,
MultiplayerServerBuildReferencedByBuildAlias,
MultiplayerServerBuildAliasReferencedByMatchmakingQueue,
PartySerializationError,
ExperimentationExperimentStopped,
ExperimentationExperimentRunning,
ExperimentationExperimentNotFound,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4179,6 +4179,12 @@ public class LinkSteamAccountRequest : PlayFabRequestCommon
/// </summary>
public string SteamTicket ;

/// <summary>
/// True if ticket was generated using ISteamUser::GetAuthTicketForWebAPI() using "AzurePlayFab" as the identity string.
/// False if the ticket was generated with ISteamUser::GetAuthSessionTicket().
/// </summary>
public bool? TicketIsServiceSpecific ;

}

public class LinkSteamAccountResult : PlayFabResultCommon
Expand Down Expand Up @@ -5197,6 +5203,12 @@ public class LoginWithSteamRequest : PlayFabRequestCommon
/// </summary>
public string SteamTicket ;

/// <summary>
/// True if ticket was generated using ISteamUser::GetAuthTicketForWebAPI() using "AzurePlayFab" as the identity string.
/// False if the ticket was generated with ISteamUser::GetAuthSessionTicket().
/// </summary>
public bool? TicketIsServiceSpecific ;

/// <summary>
/// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a
/// title has been selected.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ public class CatalogPrice
/// </summary>
public List<CatalogPriceAmount> Amounts ;

/// <summary>
/// The per-unit amount this price can be used to purchase.
/// </summary>
public int? UnitAmount ;

/// <summary>
/// The per-unit duration this price can be used to purchase. The maximum duration is 100 years.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ public enum PlayFabErrorCode
MultiplayerServerBuildReferencedByMatchmakingQueue = 6002,
MultiplayerServerBuildReferencedByBuildAlias = 6003,
MultiplayerServerBuildAliasReferencedByMatchmakingQueue = 6004,
PartySerializationError = 6005,
ExperimentationExperimentStopped = 7000,
ExperimentationExperimentRunning = 7001,
ExperimentationExperimentNotFound = 7002,
Expand Down
29 changes: 26 additions & 3 deletions XamarinTestRunner/XamarinTestRunner/PlayFabSDK/PlayFabEventsAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static async Task<PlayFabResult<WriteEventsResponse>> WriteEventsAsync(Wr
var result = resultData.data;

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

/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
Expand Down Expand Up @@ -88,7 +88,30 @@ public static async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEvent
var result = resultData.data;

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

/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream) using a Telemetry Key. The namespace must be 'custom' or start
/// with 'custom.'
/// </summary>
public static async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEventsAsync(WriteEventsRequest request, string telemetryKey, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var httpResult = await PlayFabHttp.DoPost("/Event/WriteTelemetryEvents", request, "X-TelemetryKey", telemetryKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<WriteEventsResponse> { Error = error, CustomData = customData };
}

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

return new PlayFabResult<WriteEventsResponse> { Result = result, CustomData = customData };
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task<PlayFabResult<WriteEventsResponse>> WriteEventsAsync(WriteEven
var result = resultData.data;

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

/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
Expand All @@ -104,8 +104,31 @@ public async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEventsAsync(
var result = resultData.data;

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

}
/// <summary>
/// Write batches of entity based events to as Telemetry events (bypass PlayStream) using a Telemetry Key. The namespace must be 'custom' or start
/// with 'custom.'
/// </summary>
public async Task<PlayFabResult<WriteEventsResponse>> WriteTelemetryEventsAsync(WriteEventsRequest request, string telemetryKey, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;
var httpResult = await PlayFabHttp.DoPost("/Event/WriteTelemetryEvents", request, "X-TelemetryKey", telemetryKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<WriteEventsResponse> { Error = error, CustomData = customData };
}

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

return new PlayFabResult<WriteEventsResponse> { Result = result, CustomData = customData };
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public class EntityStatisticValue
public Dictionary<string,EntityStatisticChildValue> ChildStatistics ;

/// <summary>
/// Statistic metadata
/// Metadata associated with the Statistic.
/// </summary>
public string Metadata ;

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.154.230529</Version>
<Version>1.155.230609</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#230529</PackageReleaseNotes>
<PackageReleaseNotes>https://docs.microsoft.com/gaming/playfab/release-notes#230609</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>1</AssemblyVersion>
<FileVersion>1</FileVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,7 @@ public enum GenericErrorCodes
MultiplayerServerBuildReferencedByMatchmakingQueue,
MultiplayerServerBuildReferencedByBuildAlias,
MultiplayerServerBuildAliasReferencedByMatchmakingQueue,
PartySerializationError,
ExperimentationExperimentStopped,
ExperimentationExperimentRunning,
ExperimentationExperimentNotFound,
Expand Down
Loading

0 comments on commit f552b84

Please sign in to comment.