Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#230915
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Sep 19, 2023
1 parent 3f26cd2 commit 1b33673
Show file tree
Hide file tree
Showing 27 changed files with 265 additions and 3,309 deletions.
84 changes: 0 additions & 84 deletions PlayFabSDK/source/PlayFabAdminAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,62 +1068,6 @@ public static async Task<PlayFabResult<GetDataReportResult>> GetDataReportAsync(
return new PlayFabResult<GetDataReportResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Retrieves the details for a specific completed session, including links to standard out and standard error logs
/// </summary>
[Obsolete("Use 'MultiplayerServer/GetMultiplayerSessionLogsBySessionId' instead", true)]
public static async Task<PlayFabResult<GetMatchmakerGameInfoResult>> GetMatchmakerGameInfoAsync(GetMatchmakerGameInfoRequest 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("/Admin/GetMatchmakerGameInfo", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<GetMatchmakerGameInfoResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// Retrieves the details of defined game modes for the specified game server executable
/// </summary>
[Obsolete("No longer available", true)]
public static async Task<PlayFabResult<GetMatchmakerGameModesResult>> GetMatchmakerGameModesAsync(GetMatchmakerGameModesRequest 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("/Admin/GetMatchmakerGameModes", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<GetMatchmakerGameModesResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// Get the list of titles that the player has played
/// </summary>
Expand Down Expand Up @@ -2029,34 +1973,6 @@ public static async Task<PlayFabResult<ListVirtualCurrencyTypesResult>> ListVirt
return new PlayFabResult<ListVirtualCurrencyTypesResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Updates the build details for the specified game server executable
/// </summary>
[Obsolete("No longer available", true)]
public static async Task<PlayFabResult<ModifyServerBuildResult>> ModifyServerBuildAsync(ModifyServerBuildRequest 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("/Admin/ModifyServerBuild", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<ModifyServerBuildResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
/// version 2._ Attempts to process an order refund through the original real money payment provider.
Expand Down
81 changes: 0 additions & 81 deletions PlayFabSDK/source/PlayFabAdminInstanceAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,60 +1051,6 @@ public async Task<PlayFabResult<GetDataReportResult>> GetDataReportAsync(GetData
return new PlayFabResult<GetDataReportResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Retrieves the details for a specific completed session, including links to standard out and standard error logs
/// </summary>
[Obsolete("Use 'MultiplayerServer/GetMultiplayerSessionLogsBySessionId' instead", true)]
public async Task<PlayFabResult<GetMatchmakerGameInfoResult>> GetMatchmakerGameInfoAsync(GetMatchmakerGameInfoRequest 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("/Admin/GetMatchmakerGameInfo", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders, requestSettings);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<GetMatchmakerGameInfoResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// Retrieves the details of defined game modes for the specified game server executable
/// </summary>
[Obsolete("No longer available", true)]
public async Task<PlayFabResult<GetMatchmakerGameModesResult>> GetMatchmakerGameModesAsync(GetMatchmakerGameModesRequest 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("/Admin/GetMatchmakerGameModes", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders, requestSettings);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<GetMatchmakerGameModesResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// Get the list of titles that the player has played
/// </summary>
Expand Down Expand Up @@ -1977,33 +1923,6 @@ public async Task<PlayFabResult<ListVirtualCurrencyTypesResult>> ListVirtualCurr
return new PlayFabResult<ListVirtualCurrencyTypesResult> { Result = result, CustomData = customData };
}

/// <summary>
/// Updates the build details for the specified game server executable
/// </summary>
[Obsolete("No longer available", true)]
public async Task<PlayFabResult<ModifyServerBuildResult>> ModifyServerBuildAsync(ModifyServerBuildRequest 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("/Admin/ModifyServerBuild", request, "X-SecretKey", requestSettings.DeveloperSecretKey, extraHeaders, requestSettings);
if (httpResult is PlayFabError)
{
var error = (PlayFabError)httpResult;
PlayFabSettings.GlobalErrorHandler?.Invoke(error);
return new PlayFabResult<ModifyServerBuildResult> { Error = error, CustomData = customData };
}

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

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

/// <summary>
/// _NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for
/// version 2._ Attempts to process an order refund through the original real money payment provider.
Expand Down
Loading

0 comments on commit 1b33673

Please sign in to comment.