Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#210208
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Feb 8, 2021
2 parents a5296cc + b8bda39 commit da23acc
Show file tree
Hide file tree
Showing 27 changed files with 237 additions and 31 deletions.
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item client-sdk-0.126.210125.jar -Destination ../../builds/client-sdk-0.126.210125.jar
Copy-Item client-sdk-0.127.210208.jar -Destination ../../builds/client-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp client-sdk-0.126.210125.jar ../../builds/client-sdk-0.126.210125.jar
cp client-sdk-0.127.210208.jar ../../builds/client-sdk-0.127.210208.jar
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ public static enum PlayFabErrorCode {
WasNotCreatedWithCloudRoot(1510),
LegacyMultiplayerServersDeprecated(1511),
VirtualCurrencyCurrentlyUnavailable(1512),
SteamUserNotFound(1513),
ElasticSearchOperationFailed(1514),
MatchmakingEntityInvalid(2001),
MatchmakingPlayerAttributesInvalid(2002),
MatchmakingQueueNotFound(2016),
Expand All @@ -537,6 +539,7 @@ public static enum PlayFabErrorCode {
TitleConfigNotFound(3001),
TitleConfigUpdateConflict(3002),
TitleConfigSerializationError(3003),
CatalogApiNotImplemented(4000),
CatalogEntityInvalid(4001),
CatalogTitleIdMissing(4002),
CatalogPlayerIdMissing(4003),
Expand Down Expand Up @@ -628,7 +631,8 @@ public static enum PlayFabErrorCode {
CreateSegmentRateLimitExceeded(10008),
UpdateSegmentRateLimitExceeded(10009),
GetSegmentsRateLimitExceeded(10010),
SnapshotNotFound(11000);
SnapshotNotFound(11000),
InventoryApiNotImplemented(12000);

public int id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.126.210125";
public static String BuildIdentifier = "jbuild_javasdk_sdk-genericslave-2_1";
public static String SdkVersionString = "JavaSDK-0.126.210125";
public static String SdkVersion = "0.127.210208";
public static String BuildIdentifier = "jbuild_javasdk_sdk-genericslave-2_2";
public static String SdkVersionString = "JavaSDK-0.127.210208";

public static Map<String, String> RequestGetParams;
static {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabClientSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item client-sdk-0.126.210125.jar -Destination ../../builds/client-sdk-0.126.210125.jar
Copy-Item client-sdk-0.127.210208.jar -Destination ../../builds/client-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp client-sdk-0.126.210125.jar ../../builds/client-sdk-0.126.210125.jar
cp client-sdk-0.127.210208.jar ../../builds/client-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>client-sdk</artifactId>
<version>0.126.210125</version>
<version>0.127.210208</version>
<name>PlayFab Client API</name>
<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>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ public static enum PlayFabErrorCode {
WasNotCreatedWithCloudRoot(1510),
LegacyMultiplayerServersDeprecated(1511),
VirtualCurrencyCurrentlyUnavailable(1512),
SteamUserNotFound(1513),
ElasticSearchOperationFailed(1514),
MatchmakingEntityInvalid(2001),
MatchmakingPlayerAttributesInvalid(2002),
MatchmakingQueueNotFound(2016),
Expand All @@ -537,6 +539,7 @@ public static enum PlayFabErrorCode {
TitleConfigNotFound(3001),
TitleConfigUpdateConflict(3002),
TitleConfigSerializationError(3003),
CatalogApiNotImplemented(4000),
CatalogEntityInvalid(4001),
CatalogTitleIdMissing(4002),
CatalogPlayerIdMissing(4003),
Expand Down Expand Up @@ -628,7 +631,8 @@ public static enum PlayFabErrorCode {
CreateSegmentRateLimitExceeded(10008),
UpdateSegmentRateLimitExceeded(10009),
GetSegmentsRateLimitExceeded(10010),
SnapshotNotFound(11000);
SnapshotNotFound(11000),
InventoryApiNotImplemented(12000);

public int id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.126.210125";
public static String BuildIdentifier = "jbuild_javasdk_sdk-genericslave-2_1";
public static String SdkVersionString = "JavaSDK-0.126.210125";
public static String SdkVersion = "0.127.210208";
public static String BuildIdentifier = "jbuild_javasdk_sdk-genericslave-2_2";
public static String SdkVersionString = "JavaSDK-0.127.210208";

public static Map<String, String> RequestGetParams;
static {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item combo-sdk-0.126.210125.jar -Destination ../../builds/combo-sdk-0.126.210125.jar
Copy-Item combo-sdk-0.127.210208.jar -Destination ../../builds/combo-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion PlayFabSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp combo-sdk-0.126.210125.jar ../../builds/combo-sdk-0.126.210125.jar
cp combo-sdk-0.127.210208.jar ../../builds/combo-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion PlayFabSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>combo-sdk</artifactId>
<version>0.126.210125</version>
<version>0.127.210208</version>
<name>PlayFab Combo API</name>
<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>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
6 changes: 5 additions & 1 deletion PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,8 @@ public static enum GenericErrorCodes {
WasNotCreatedWithCloudRoot,
LegacyMultiplayerServersDeprecated,
VirtualCurrencyCurrentlyUnavailable,
SteamUserNotFound,
ElasticSearchOperationFailed,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand All @@ -1929,6 +1931,7 @@ public static enum GenericErrorCodes {
TitleConfigNotFound,
TitleConfigUpdateConflict,
TitleConfigSerializationError,
CatalogApiNotImplemented,
CatalogEntityInvalid,
CatalogTitleIdMissing,
CatalogPlayerIdMissing,
Expand Down Expand Up @@ -2020,7 +2023,8 @@ public static enum GenericErrorCodes {
CreateSegmentRateLimitExceeded,
UpdateSegmentRateLimitExceeded,
GetSegmentsRateLimitExceeded,
SnapshotNotFound
SnapshotNotFound,
InventoryApiNotImplemented
}

public static class GetActionsOnPlayersInSegmentTaskInstanceResult {
Expand Down
6 changes: 5 additions & 1 deletion PlayFabSDK/src/main/java/com/playfab/PlayFabErrors.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ public static enum PlayFabErrorCode {
WasNotCreatedWithCloudRoot(1510),
LegacyMultiplayerServersDeprecated(1511),
VirtualCurrencyCurrentlyUnavailable(1512),
SteamUserNotFound(1513),
ElasticSearchOperationFailed(1514),
MatchmakingEntityInvalid(2001),
MatchmakingPlayerAttributesInvalid(2002),
MatchmakingQueueNotFound(2016),
Expand All @@ -537,6 +539,7 @@ public static enum PlayFabErrorCode {
TitleConfigNotFound(3001),
TitleConfigUpdateConflict(3002),
TitleConfigSerializationError(3003),
CatalogApiNotImplemented(4000),
CatalogEntityInvalid(4001),
CatalogTitleIdMissing(4002),
CatalogPlayerIdMissing(4003),
Expand Down Expand Up @@ -628,7 +631,8 @@ public static enum PlayFabErrorCode {
CreateSegmentRateLimitExceeded(10008),
UpdateSegmentRateLimitExceeded(10009),
GetSegmentsRateLimitExceeded(10010),
SnapshotNotFound(11000);
SnapshotNotFound(11000),
InventoryApiNotImplemented(12000);

public int id;

Expand Down
67 changes: 67 additions & 0 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabServerAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -4744,6 +4744,73 @@ private static PlayFabResult<ServerLoginResult> privateLoginWithServerCustomIdAs
return pfResult;
}

/**
* Signs the user in using an Steam ID, returning a session identifier that can subsequently be used for API calls which
* require an authenticated user
* @param request LoginWithSteamIdRequest
* @return Async Task will return ServerLoginResult
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<ServerLoginResult>> LoginWithSteamIdAsync(final LoginWithSteamIdRequest request) {
return new FutureTask(new Callable<PlayFabResult<ServerLoginResult>>() {
public PlayFabResult<ServerLoginResult> call() throws Exception {
return privateLoginWithSteamIdAsync(request);
}
});
}

/**
* Signs the user in using an Steam ID, returning a session identifier that can subsequently be used for API calls which
* require an authenticated user
* @param request LoginWithSteamIdRequest
* @return ServerLoginResult
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<ServerLoginResult> LoginWithSteamId(final LoginWithSteamIdRequest request) {
FutureTask<PlayFabResult<ServerLoginResult>> task = new FutureTask(new Callable<PlayFabResult<ServerLoginResult>>() {
public PlayFabResult<ServerLoginResult> call() throws Exception {
return privateLoginWithSteamIdAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
PlayFabResult<ServerLoginResult> exceptionResult = new PlayFabResult<ServerLoginResult>();
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null);
return exceptionResult;
}
}

/**
* Signs the user in using an Steam ID, returning a session identifier that can subsequently be used for API calls which
* require an authenticated user
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<ServerLoginResult> privateLoginWithSteamIdAsync(final LoginWithSteamIdRequest request) throws Exception {
if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Server/LoginWithSteamId"), request, "X-SecretKey", PlayFabSettings.DeveloperSecretKey);
task.run();
Object httpResult = task.get();
if (httpResult instanceof PlayFabError) {
PlayFabError error = (PlayFabError)httpResult;
if (PlayFabSettings.GlobalErrorHandler != null)
PlayFabSettings.GlobalErrorHandler.callback(error);
PlayFabResult result = new PlayFabResult<ServerLoginResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

PlayFabJsonSuccess<ServerLoginResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<ServerLoginResult>>(){}.getType());
ServerLoginResult result = resultData.data;

PlayFabResult<ServerLoginResult> pfResult = new PlayFabResult<ServerLoginResult>();
pfResult.Result = result;
return pfResult;
}

/**
* Signs the user in using a Xbox Live Token from an external server backend, returning a session identifier that can
* subsequently be used for API calls which require an authenticated user
Expand Down
26 changes: 25 additions & 1 deletion PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,8 @@ public static enum GenericErrorCodes {
WasNotCreatedWithCloudRoot,
LegacyMultiplayerServersDeprecated,
VirtualCurrencyCurrentlyUnavailable,
SteamUserNotFound,
ElasticSearchOperationFailed,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand All @@ -1631,6 +1633,7 @@ public static enum GenericErrorCodes {
TitleConfigNotFound,
TitleConfigUpdateConflict,
TitleConfigSerializationError,
CatalogApiNotImplemented,
CatalogEntityInvalid,
CatalogTitleIdMissing,
CatalogPlayerIdMissing,
Expand Down Expand Up @@ -1722,7 +1725,8 @@ public static enum GenericErrorCodes {
CreateSegmentRateLimitExceeded,
UpdateSegmentRateLimitExceeded,
GetSegmentsRateLimitExceeded,
SnapshotNotFound
SnapshotNotFound,
InventoryApiNotImplemented
}

public static class GenericPlayFabIdPair {
Expand Down Expand Up @@ -3023,6 +3027,26 @@ public static class LoginWithServerCustomIdRequest {

}

/**
* If this is the first time a user has signed in with the Steam ID and CreateAccount is set to true, a new PlayFab account
* will be created and linked to the Steam account. In this case, no email or username will be associated with the PlayFab
* account. Otherwise, if no PlayFab account is linked to the Steam account, an error indicating this will be returned, so
* that the title can guide the user through creation of a PlayFab account. Steam users that are not logged into the Steam
* Client app will only have their Steam username synced, other data, such as currency and country will not be available
* until they login while the Client is open.
*/
public static class LoginWithSteamIdRequest {
/** Automatically create a PlayFab account if one is not currently linked to this ID. */
public Boolean CreateAccount;
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/** Flags for which pieces of info to return for the user. */
public GetPlayerCombinedInfoRequestParams InfoRequestParameters;
/** Unique Steam identifier for a user */
public String SteamId;

}

/**
* If this is the first time a user has signed in with the Xbox ID and CreateAccount is set to true, a new PlayFab account
* will be created and linked to the Xbox Live account. In this case, no email or username will be associated with the
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.126.210125";
public static String BuildIdentifier = "jbuild_javasdk_sdk-genericslave-2_1";
public static String SdkVersionString = "JavaSDK-0.126.210125";
public static String SdkVersion = "0.127.210208";
public static String BuildIdentifier = "jbuild_javasdk_sdk-genericslave-2_2";
public static String SdkVersionString = "JavaSDK-0.127.210208";

public static Map<String, String> RequestGetParams;
static {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabServerSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item server-sdk-0.126.210125.jar -Destination ../../builds/server-sdk-0.126.210125.jar
Copy-Item server-sdk-0.127.210208.jar -Destination ../../builds/server-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion PlayFabServerSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp server-sdk-0.126.210125.jar ../../builds/server-sdk-0.126.210125.jar
cp server-sdk-0.127.210208.jar ../../builds/server-sdk-0.127.210208.jar
2 changes: 1 addition & 1 deletion PlayFabServerSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>server-sdk</artifactId>
<version>0.126.210125</version>
<version>0.127.210208</version>
<name>PlayFab Server API</name>
<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>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,8 @@ public static enum GenericErrorCodes {
WasNotCreatedWithCloudRoot,
LegacyMultiplayerServersDeprecated,
VirtualCurrencyCurrentlyUnavailable,
SteamUserNotFound,
ElasticSearchOperationFailed,
MatchmakingEntityInvalid,
MatchmakingPlayerAttributesInvalid,
MatchmakingQueueNotFound,
Expand All @@ -1929,6 +1931,7 @@ public static enum GenericErrorCodes {
TitleConfigNotFound,
TitleConfigUpdateConflict,
TitleConfigSerializationError,
CatalogApiNotImplemented,
CatalogEntityInvalid,
CatalogTitleIdMissing,
CatalogPlayerIdMissing,
Expand Down Expand Up @@ -2020,7 +2023,8 @@ public static enum GenericErrorCodes {
CreateSegmentRateLimitExceeded,
UpdateSegmentRateLimitExceeded,
GetSegmentsRateLimitExceeded,
SnapshotNotFound
SnapshotNotFound,
InventoryApiNotImplemented
}

public static class GetActionsOnPlayersInSegmentTaskInstanceResult {
Expand Down
Loading

0 comments on commit da23acc

Please sign in to comment.