Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#220704
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Jul 4, 2022
2 parents 1879a0b + 4d69863 commit 87d3e8a
Show file tree
Hide file tree
Showing 29 changed files with 158 additions and 351 deletions.
2 changes: 1 addition & 1 deletion PlayFabSDK/UnittestRunner/UnittestRunner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net45</TargetFrameworks>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>UnittestRunner</RootNamespace>
<AssemblyName>UnittestRunner</AssemblyName>
<FileAlignment>512</FileAlignment>
Expand Down
109 changes: 40 additions & 69 deletions PlayFabSDK/WindowsFormsApp1/UnittestFormRunner.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{172A151B-FD46-478D-B690-0636E8212D39}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>WindowsFormsApp1</RootNamespace>
<AssemblyName>WindowsFormsApp1</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>WindowsFormsApp1</RootNamespace>
<AssemblyName>WindowsFormsApp1</AssemblyName>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
Expand All @@ -23,6 +19,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
Expand All @@ -32,58 +29,32 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\source\PlayFabSDK.csproj">
<Project>{cca89497-1426-4f0b-8a11-7e5fb965fb4b}</Project>
<Name>PlayFabSDK</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

<ItemGroup>
<EmbeddedResource Update="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Update="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\source\PlayFabSDK.csproj">
</ProjectReference>
</ItemGroup>
</Project>
26 changes: 0 additions & 26 deletions PlayFabSDK/source/PlayFabAdminAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2612,32 +2612,6 @@ public static async Task<PlayFabResult<SetTitleDataResult>> SetTitleInternalData
return new PlayFabResult<SetTitleDataResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Set and delete key-value pairs in a title internal data override instance.
/// </summary>
public static async Task<PlayFabResult<SetTitleDataAndOverridesResult>> SetTitleInternalDataAndOverridesAsync(SetTitleDataAndOverridesRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestContext = request?.AuthenticationContext ?? PlayFabSettings.staticPlayer;
var requestSettings = PlayFabSettings.staticSettings;


var httpResult = await PlayFabHttp.DoPost("/Admin/SetTitleInternalDataAndOverrides", request, null, null, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<SetTitleDataAndOverridesResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// Sets the Amazon Resource Name (ARN) for iOS and Android push notifications. Documentation on the exact restrictions can
/// be found at: http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html. Currently, Amazon device
Expand Down
25 changes: 0 additions & 25 deletions PlayFabSDK/source/PlayFabAdminInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2538,31 +2538,6 @@ public async Task<PlayFabResult<SetTitleDataResult>> SetTitleInternalDataAsync(S
return new PlayFabResult<SetTitleDataResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Set and delete key-value pairs in a title internal data override instance.
/// </summary>
public async Task<PlayFabResult<SetTitleDataAndOverridesResult>> SetTitleInternalDataAndOverridesAsync(SetTitleDataAndOverridesRequest request, object customData = null, Dictionary<string, string> extraHeaders = null)
{
await new PlayFabUtil.SynchronizationContextRemover();

var requestContext = request?.AuthenticationContext ?? authenticationContext;
var requestSettings = apiSettings ?? PlayFabSettings.staticSettings;

var httpResult = await PlayFabHttp.DoPost("/Admin/SetTitleInternalDataAndOverrides", request, null, null, extraHeaders, requestSettings);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<SetTitleDataAndOverridesResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// Sets the Amazon Resource Name (ARN) for iOS and Android push notifications. Documentation on the exact restrictions can
/// be found at: http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformApplication.html. Currently, Amazon device
Expand Down
16 changes: 5 additions & 11 deletions PlayFabSDK/source/PlayFabAdminModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2531,6 +2531,10 @@ public enum GenericErrorCodes
PhotonApplicationIdAlreadyInUse,
CloudScriptUnableToDeleteProductionRevision,
CustomIdNotFound,
AutomationInvalidInput,
AutomationInvalidRuleName,
AutomationRuleAlreadyExists,
AutomationRuleLimitExceeded,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand Down Expand Up @@ -2598,6 +2602,7 @@ public enum GenericErrorCodes
ExportCannotParseQuery,
ExportControlCommandsNotAllowed,
ExportQueryMissingTableReference,
ExportInsightsV1Deprecated,
ExplorerBasicInvalidQueryName,
ExplorerBasicInvalidQueryDescription,
ExplorerBasicInvalidQueryConditions,
Expand Down Expand Up @@ -6442,11 +6447,6 @@ public class SetTitleDataAndOverridesRequest : PlayFabRequestCommon
/// </summary>
public string OverrideLabel ;

/// <summary>
/// Title Id
/// </summary>
public string TitleId ;

}

public class SetTitleDataAndOverridesResult : PlayFabResultCommon
Expand All @@ -6473,12 +6473,6 @@ public class SetTitleDataRequest : PlayFabRequestCommon
/// </summary>
public string Key ;

/// <summary>
/// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a
/// title has been selected.
/// </summary>
public string TitleId ;

/// <summary>
/// new value to set. Set to null to remove a value
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabApiSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class PlayFabApiSettings
/// <summary> The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this </summary>
public string VerticalName = null;

#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API
#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API || ENABLE_PLAYFAB_SECRETKEY
/// <summary> You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website) </summary>
public string DeveloperSecretKey = null;
#endif
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabAuthenticationAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static async Task<PlayFabResult<GetEntityTokenResponse>> GetEntityTokenAs
if (requestContext.ClientSessionTicket != null) { authKey = "X-Authorization"; authValue = requestContext.ClientSessionTicket; }
#endif

#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API
#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API || ENABLE_PLAYFAB_SECRETKEY
if (requestSettings.DeveloperSecretKey != null) { authKey = "X-SecretKey"; authValue = requestSettings.DeveloperSecretKey; }
#endif

Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/source/PlayFabAuthenticationInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public async Task<PlayFabResult<GetEntityTokenResponse>> GetEntityTokenAsync(Get
if (requestContext.ClientSessionTicket != null) { authKey = "X-Authorization"; authValue = requestContext.ClientSessionTicket; }
#endif

#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API
#if ENABLE_PLAYFABSERVER_API || ENABLE_PLAYFABADMIN_API || ENABLE_PLAYFAB_SECRETKEY
if (requestSettings.DeveloperSecretKey != null) { authKey = "X-SecretKey"; authValue = requestSettings.DeveloperSecretKey; }
#endif

Expand Down
25 changes: 0 additions & 25 deletions PlayFabSDK/source/PlayFabCloudScriptModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,6 @@ public class GetFunctionRequest : PlayFabRequestCommon
/// </summary>
public string FunctionName ;

/// <summary>
/// The Id of the parent Title
/// </summary>
public string TitleId ;

}

public class GetFunctionResult : PlayFabResultCommon
Expand Down Expand Up @@ -641,11 +636,6 @@ public class ListFunctionsRequest : PlayFabRequestCommon
/// </summary>
public Dictionary<string,string> CustomTags ;

/// <summary>
/// The Id of the parent Title
/// </summary>
public string TitleId ;

}

public class ListFunctionsResult : PlayFabResultCommon
Expand Down Expand Up @@ -1081,11 +1071,6 @@ public class RegisterHttpFunctionRequest : PlayFabRequestCommon
/// </summary>
public string FunctionUrl ;

/// <summary>
/// The Id of the parent Title
/// </summary>
public string TitleId ;

}

/// <summary>
Expand Down Expand Up @@ -1114,11 +1099,6 @@ public class RegisterQueuedFunctionRequest : PlayFabRequestCommon
/// </summary>
public string QueueName ;

/// <summary>
/// The Id of the parent Title
/// </summary>
public string TitleId ;

}

public class ScriptExecutionError
Expand Down Expand Up @@ -1238,11 +1218,6 @@ public class UnregisterFunctionRequest : PlayFabRequestCommon
/// </summary>
public string FunctionName ;

/// <summary>
/// The Id of the parent Title
/// </summary>
public string TitleId ;

}

public class ValueToDateModel
Expand Down
4 changes: 4 additions & 0 deletions PlayFabSDK/source/PlayFabEconomyModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ public class Content

}

public class ContentFeed
{
}

/// <summary>
/// The item will not be published to the public catalog until the PublishItem API is called for the item.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions PlayFabSDK/source/PlayFabErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,10 @@ public enum PlayFabErrorCode
PhotonApplicationIdAlreadyInUse = 1538,
CloudScriptUnableToDeleteProductionRevision = 1539,
CustomIdNotFound = 1540,
AutomationInvalidInput = 1541,
AutomationInvalidRuleName = 1542,
AutomationRuleAlreadyExists = 1543,
AutomationRuleLimitExceeded = 1544,
MatchmakingEntityInvalid = 2001,
MatchmakingPlayerAttributesInvalid = 2002,
MatchmakingQueueNotFound = 2016,
Expand Down Expand Up @@ -609,6 +613,7 @@ public enum PlayFabErrorCode
ExportCannotParseQuery = 5024,
ExportControlCommandsNotAllowed = 5025,
ExportQueryMissingTableReference = 5026,
ExportInsightsV1Deprecated = 5027,
ExplorerBasicInvalidQueryName = 5100,
ExplorerBasicInvalidQueryDescription = 5101,
ExplorerBasicInvalidQueryConditions = 5102,
Expand Down
Loading

0 comments on commit 87d3e8a

Please sign in to comment.