Skip to content

Commit 19662f2

Browse files
https://api.playfab.com/releaseNotes/#190828
1 parent 1cfd295 commit 19662f2

36 files changed

+557
-19
lines changed

AndroidStudioExample/app/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item client-sdk-0.95.190821.jar -Destination ../../builds/client-sdk-0.95.190821.jar
8+
Copy-Item client-sdk-0.96.190828.jar -Destination ../../builds/client-sdk-0.96.190828.jar

AndroidStudioExample/app/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp client-sdk-0.95.190821.jar ../../builds/client-sdk-0.95.190821.jar
10+
cp client-sdk-0.96.190828.jar ../../builds/client-sdk-0.96.190828.jar

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabErrors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ public static enum PlayFabErrorCode {
455455
QueryRateLimitExceeded(1452),
456456
EntityAPIKeyCreationDisabledForEntity(1453),
457457
ForbiddenByEntityPolicy(1454),
458+
UpdateInventoryRateLimitExceeded(1455),
458459
StudioCreationRateLimited(1456),
459460
StudioCreationInProgress(1457),
460461
DuplicateStudioName(1458),

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerAPI.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,66 @@ private static PlayFabResult<ListQosServersResponse> privateListQosServersAsync(
19971997
return pfResult;
19981998
}
19991999

2000+
/**
2001+
* Lists quality of service servers.
2002+
* @param request ListQosServersForTitleRequest
2003+
* @return Async Task will return ListQosServersForTitleResponse
2004+
*/
2005+
@SuppressWarnings("unchecked")
2006+
public static FutureTask<PlayFabResult<ListQosServersForTitleResponse>> ListQosServersForTitleAsync(final ListQosServersForTitleRequest request) {
2007+
return new FutureTask(new Callable<PlayFabResult<ListQosServersForTitleResponse>>() {
2008+
public PlayFabResult<ListQosServersForTitleResponse> call() throws Exception {
2009+
return privateListQosServersForTitleAsync(request);
2010+
}
2011+
});
2012+
}
2013+
2014+
/**
2015+
* Lists quality of service servers.
2016+
* @param request ListQosServersForTitleRequest
2017+
* @return ListQosServersForTitleResponse
2018+
*/
2019+
@SuppressWarnings("unchecked")
2020+
public static PlayFabResult<ListQosServersForTitleResponse> ListQosServersForTitle(final ListQosServersForTitleRequest request) {
2021+
FutureTask<PlayFabResult<ListQosServersForTitleResponse>> task = new FutureTask(new Callable<PlayFabResult<ListQosServersForTitleResponse>>() {
2022+
public PlayFabResult<ListQosServersForTitleResponse> call() throws Exception {
2023+
return privateListQosServersForTitleAsync(request);
2024+
}
2025+
});
2026+
try {
2027+
task.run();
2028+
return task.get();
2029+
} catch(Exception e) {
2030+
return null;
2031+
}
2032+
}
2033+
2034+
/** Lists quality of service servers. */
2035+
@SuppressWarnings("unchecked")
2036+
private static PlayFabResult<ListQosServersForTitleResponse> privateListQosServersForTitleAsync(final ListQosServersForTitleRequest request) throws Exception {
2037+
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");
2038+
2039+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListQosServersForTitle"), request, "X-EntityToken", PlayFabSettings.EntityToken);
2040+
task.run();
2041+
Object httpResult = task.get();
2042+
if (httpResult instanceof PlayFabError) {
2043+
PlayFabError error = (PlayFabError)httpResult;
2044+
if (PlayFabSettings.GlobalErrorHandler != null)
2045+
PlayFabSettings.GlobalErrorHandler.callback(error);
2046+
PlayFabResult result = new PlayFabResult<ListQosServersForTitleResponse>();
2047+
result.Error = error;
2048+
return result;
2049+
}
2050+
String resultRawJson = (String) httpResult;
2051+
2052+
PlayFabJsonSuccess<ListQosServersForTitleResponse> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<ListQosServersForTitleResponse>>(){}.getType());
2053+
ListQosServersForTitleResponse result = resultData.data;
2054+
2055+
PlayFabResult<ListQosServersForTitleResponse> pfResult = new PlayFabResult<ListQosServersForTitleResponse>();
2056+
pfResult.Result = result;
2057+
return pfResult;
2058+
}
2059+
20002060
/**
20012061
* Lists virtual machines for a title.
20022062
* @param request ListVirtualMachineSummariesRequest

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabMultiplayerModels.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ public static class CreateBuildWithManagedContainerRequest {
294294
public ArrayList<AssetReferenceParams> GameAssetReferences;
295295
/** The game certificates for the build. */
296296
public ArrayList<GameCertificateReferenceParams> GameCertificateReferences;
297+
/** The instrumentation configuration for the build. */
298+
public InstrumentationConfiguration InstrumentationConfiguration;
297299
/**
298300
* Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through
299301
* Game Server SDK (GSDK).
@@ -325,6 +327,8 @@ public static class CreateBuildWithManagedContainerResponse {
325327
public ArrayList<AssetReference> GameAssetReferences;
326328
/** The game certificates for the build. */
327329
public ArrayList<GameCertificateReference> GameCertificateReferences;
330+
/** The instrumentation configuration for this build. */
331+
public InstrumentationConfiguration InstrumentationConfiguration;
328332
/** The metadata of the build. */
329333
public Map<String,String> Metadata;
330334
/** The number of multiplayer servers to host on a single VM of the build. */
@@ -549,6 +553,8 @@ public static class GetBuildResponse {
549553
public ArrayList<AssetReference> GameAssetReferences;
550554
/** The game certificates for the build. */
551555
public ArrayList<GameCertificateReference> GameCertificateReferences;
556+
/** The instrumentation configuration of the build. */
557+
public InstrumentationConfiguration InstrumentationConfiguration;
552558
/**
553559
* Metadata of the build. The keys are case insensitive. The build metadata is made available to the server through Game
554560
* Server SDK (GSDK).
@@ -776,6 +782,16 @@ public static class GetTitleMultiplayerServersQuotasResponse {
776782

777783
}
778784

785+
public static class InstrumentationConfiguration {
786+
/**
787+
* The list of processes to be monitored on a VM for this build. Providing processes will turn on performance metrics
788+
* collection for this build. Process names should not include extensions. If the game server process is: GameServer.exe;
789+
* then, ProcessesToMonitor = [ GameServer ]
790+
*/
791+
public ArrayList<String> ProcessesToMonitor;
792+
793+
}
794+
779795
/**
780796
* Add the player to a matchmaking ticket and specify all of its matchmaking attributes. Players can join a ticket if and
781797
* only if their EntityKeys are already listed in the ticket's Members list. The matchmaking service automatically starts
@@ -943,6 +959,21 @@ public static class ListPartyQosServersResponse {
943959

944960
}
945961

962+
/** Returns a list of quality of service servers for a title. */
963+
public static class ListQosServersForTitleRequest {
964+
965+
}
966+
967+
public static class ListQosServersForTitleResponse {
968+
/** The page size on the response. */
969+
public Integer PageSize;
970+
/** The list of QoS servers. */
971+
public ArrayList<QosServer> QosServers;
972+
/** The skip token for the paged response. */
973+
public String SkipToken;
974+
975+
}
976+
946977
/** Returns a list of quality of service servers. */
947978
public static class ListQosServersRequest {
948979

AndroidStudioExample/app/src/main/java/com/playfab/PlayFabSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import com.playfab.PlayFabErrors.ErrorCallback;
1010

1111
public class PlayFabSettings {
12-
public static String SdkVersion = "0.95.190821";
12+
public static String SdkVersion = "0.96.190828";
1313
public static String BuildIdentifier = "jbuild_javasdk__sdk-genericslave-1_1";
14-
public static String SdkVersionString = "JavaSDK-0.95.190821";
14+
public static String SdkVersionString = "JavaSDK-0.96.190828";
1515

1616
public static Map<String, String> RequestGetParams;
1717
static {

PlayFabClientSDK/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item client-sdk-0.95.190821.jar -Destination ../../builds/client-sdk-0.95.190821.jar
8+
Copy-Item client-sdk-0.96.190828.jar -Destination ../../builds/client-sdk-0.96.190828.jar

PlayFabClientSDK/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp client-sdk-0.95.190821.jar ../../builds/client-sdk-0.95.190821.jar
10+
cp client-sdk-0.96.190828.jar ../../builds/client-sdk-0.96.190828.jar

PlayFabClientSDK/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- GAV & Meta -->
1515
<groupId>com.playfab</groupId>
1616
<artifactId>client-sdk</artifactId>
17-
<version>0.95.190821</version>
17+
<version>0.96.190828</version>
1818
<name>PlayFab Client API</name>
1919
<description>PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. </description>
2020
<url>http://api.playfab.com/</url>

PlayFabClientSDK/src/main/java/com/playfab/PlayFabErrors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ public static enum PlayFabErrorCode {
455455
QueryRateLimitExceeded(1452),
456456
EntityAPIKeyCreationDisabledForEntity(1453),
457457
ForbiddenByEntityPolicy(1454),
458+
UpdateInventoryRateLimitExceeded(1455),
458459
StudioCreationRateLimited(1456),
459460
StudioCreationInProgress(1457),
460461
DuplicateStudioName(1458),

PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerAPI.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,6 +1997,66 @@ private static PlayFabResult<ListQosServersResponse> privateListQosServersAsync(
19971997
return pfResult;
19981998
}
19991999

2000+
/**
2001+
* Lists quality of service servers.
2002+
* @param request ListQosServersForTitleRequest
2003+
* @return Async Task will return ListQosServersForTitleResponse
2004+
*/
2005+
@SuppressWarnings("unchecked")
2006+
public static FutureTask<PlayFabResult<ListQosServersForTitleResponse>> ListQosServersForTitleAsync(final ListQosServersForTitleRequest request) {
2007+
return new FutureTask(new Callable<PlayFabResult<ListQosServersForTitleResponse>>() {
2008+
public PlayFabResult<ListQosServersForTitleResponse> call() throws Exception {
2009+
return privateListQosServersForTitleAsync(request);
2010+
}
2011+
});
2012+
}
2013+
2014+
/**
2015+
* Lists quality of service servers.
2016+
* @param request ListQosServersForTitleRequest
2017+
* @return ListQosServersForTitleResponse
2018+
*/
2019+
@SuppressWarnings("unchecked")
2020+
public static PlayFabResult<ListQosServersForTitleResponse> ListQosServersForTitle(final ListQosServersForTitleRequest request) {
2021+
FutureTask<PlayFabResult<ListQosServersForTitleResponse>> task = new FutureTask(new Callable<PlayFabResult<ListQosServersForTitleResponse>>() {
2022+
public PlayFabResult<ListQosServersForTitleResponse> call() throws Exception {
2023+
return privateListQosServersForTitleAsync(request);
2024+
}
2025+
});
2026+
try {
2027+
task.run();
2028+
return task.get();
2029+
} catch(Exception e) {
2030+
return null;
2031+
}
2032+
}
2033+
2034+
/** Lists quality of service servers. */
2035+
@SuppressWarnings("unchecked")
2036+
private static PlayFabResult<ListQosServersForTitleResponse> privateListQosServersForTitleAsync(final ListQosServersForTitleRequest request) throws Exception {
2037+
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");
2038+
2039+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/MultiplayerServer/ListQosServersForTitle"), request, "X-EntityToken", PlayFabSettings.EntityToken);
2040+
task.run();
2041+
Object httpResult = task.get();
2042+
if (httpResult instanceof PlayFabError) {
2043+
PlayFabError error = (PlayFabError)httpResult;
2044+
if (PlayFabSettings.GlobalErrorHandler != null)
2045+
PlayFabSettings.GlobalErrorHandler.callback(error);
2046+
PlayFabResult result = new PlayFabResult<ListQosServersForTitleResponse>();
2047+
result.Error = error;
2048+
return result;
2049+
}
2050+
String resultRawJson = (String) httpResult;
2051+
2052+
PlayFabJsonSuccess<ListQosServersForTitleResponse> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<ListQosServersForTitleResponse>>(){}.getType());
2053+
ListQosServersForTitleResponse result = resultData.data;
2054+
2055+
PlayFabResult<ListQosServersForTitleResponse> pfResult = new PlayFabResult<ListQosServersForTitleResponse>();
2056+
pfResult.Result = result;
2057+
return pfResult;
2058+
}
2059+
20002060
/**
20012061
* Lists virtual machines for a title.
20022062
* @param request ListVirtualMachineSummariesRequest

PlayFabClientSDK/src/main/java/com/playfab/PlayFabMultiplayerModels.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ public static class CreateBuildWithManagedContainerRequest {
294294
public ArrayList<AssetReferenceParams> GameAssetReferences;
295295
/** The game certificates for the build. */
296296
public ArrayList<GameCertificateReferenceParams> GameCertificateReferences;
297+
/** The instrumentation configuration for the build. */
298+
public InstrumentationConfiguration InstrumentationConfiguration;
297299
/**
298300
* Metadata to tag the build. The keys are case insensitive. The build metadata is made available to the server through
299301
* Game Server SDK (GSDK).
@@ -325,6 +327,8 @@ public static class CreateBuildWithManagedContainerResponse {
325327
public ArrayList<AssetReference> GameAssetReferences;
326328
/** The game certificates for the build. */
327329
public ArrayList<GameCertificateReference> GameCertificateReferences;
330+
/** The instrumentation configuration for this build. */
331+
public InstrumentationConfiguration InstrumentationConfiguration;
328332
/** The metadata of the build. */
329333
public Map<String,String> Metadata;
330334
/** The number of multiplayer servers to host on a single VM of the build. */
@@ -549,6 +553,8 @@ public static class GetBuildResponse {
549553
public ArrayList<AssetReference> GameAssetReferences;
550554
/** The game certificates for the build. */
551555
public ArrayList<GameCertificateReference> GameCertificateReferences;
556+
/** The instrumentation configuration of the build. */
557+
public InstrumentationConfiguration InstrumentationConfiguration;
552558
/**
553559
* Metadata of the build. The keys are case insensitive. The build metadata is made available to the server through Game
554560
* Server SDK (GSDK).
@@ -776,6 +782,16 @@ public static class GetTitleMultiplayerServersQuotasResponse {
776782

777783
}
778784

785+
public static class InstrumentationConfiguration {
786+
/**
787+
* The list of processes to be monitored on a VM for this build. Providing processes will turn on performance metrics
788+
* collection for this build. Process names should not include extensions. If the game server process is: GameServer.exe;
789+
* then, ProcessesToMonitor = [ GameServer ]
790+
*/
791+
public ArrayList<String> ProcessesToMonitor;
792+
793+
}
794+
779795
/**
780796
* Add the player to a matchmaking ticket and specify all of its matchmaking attributes. Players can join a ticket if and
781797
* only if their EntityKeys are already listed in the ticket's Members list. The matchmaking service automatically starts
@@ -943,6 +959,21 @@ public static class ListPartyQosServersResponse {
943959

944960
}
945961

962+
/** Returns a list of quality of service servers for a title. */
963+
public static class ListQosServersForTitleRequest {
964+
965+
}
966+
967+
public static class ListQosServersForTitleResponse {
968+
/** The page size on the response. */
969+
public Integer PageSize;
970+
/** The list of QoS servers. */
971+
public ArrayList<QosServer> QosServers;
972+
/** The skip token for the paged response. */
973+
public String SkipToken;
974+
975+
}
976+
946977
/** Returns a list of quality of service servers. */
947978
public static class ListQosServersRequest {
948979

PlayFabClientSDK/src/main/java/com/playfab/PlayFabSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import com.playfab.PlayFabErrors.ErrorCallback;
99

1010
public class PlayFabSettings {
11-
public static String SdkVersion = "0.95.190821";
11+
public static String SdkVersion = "0.96.190828";
1212
public static String BuildIdentifier = "jbuild_javasdk__sdk-genericslave-1_1";
13-
public static String SdkVersionString = "JavaSDK-0.95.190821";
13+
public static String SdkVersionString = "JavaSDK-0.96.190828";
1414

1515
public static Map<String, String> RequestGetParams;
1616
static {

PlayFabSDK/packageMe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
55
popd
66

77
cd target
8-
Copy-Item combo-sdk-0.95.190821.jar -Destination ../../builds/combo-sdk-0.95.190821.jar
8+
Copy-Item combo-sdk-0.96.190828.jar -Destination ../../builds/combo-sdk-0.96.190828.jar

PlayFabSDK/packageMe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ mkdir -p ./builds
77
popd
88

99
cd target
10-
cp combo-sdk-0.95.190821.jar ../../builds/combo-sdk-0.95.190821.jar
10+
cp combo-sdk-0.96.190828.jar ../../builds/combo-sdk-0.96.190828.jar

PlayFabSDK/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- GAV & Meta -->
1515
<groupId>com.playfab</groupId>
1616
<artifactId>combo-sdk</artifactId>
17-
<version>0.95.190821</version>
17+
<version>0.96.190828</version>
1818
<name>PlayFab Combo API</name>
1919
<description>PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. </description>
2020
<url>http://api.playfab.com/</url>

PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,7 @@ public static enum GenericErrorCodes {
16861686
QueryRateLimitExceeded,
16871687
EntityAPIKeyCreationDisabledForEntity,
16881688
ForbiddenByEntityPolicy,
1689+
UpdateInventoryRateLimitExceeded,
16891690
StudioCreationRateLimited,
16901691
StudioCreationInProgress,
16911692
DuplicateStudioName,

PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ public static enum PlayFabErrorCode {
455455
QueryRateLimitExceeded(1452),
456456
EntityAPIKeyCreationDisabledForEntity(1453),
457457
ForbiddenByEntityPolicy(1454),
458+
UpdateInventoryRateLimitExceeded(1455),
458459
StudioCreationRateLimited(1456),
459460
StudioCreationInProgress(1457),
460461
DuplicateStudioName(1458),

0 commit comments

Comments
 (0)