Skip to content

Commit b04563a

Browse files
PlayFab SDK TeamPlayFab SDK Team
authored andcommitted
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#250912
2 parents dcd35c1 + 129c2d7 commit b04563a

36 files changed

+549
-37
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.243.250815.jar -Destination ../../builds/client-sdk-0.243.250815.jar
8+
Copy-Item client-sdk-0.244.250912.jar -Destination ../../builds/client-sdk-0.244.250912.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.243.250815.jar ../../builds/client-sdk-0.243.250815.jar
10+
cp client-sdk-0.244.250912.jar ../../builds/client-sdk-0.244.250912.jar

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,8 @@ public static enum PlayFabErrorCode {
606606
ResourceNotModified(1606),
607607
StudioCreationLimitExceeded(1607),
608608
StudioDeletionInitiated(1608),
609+
ProductDisabledForTitle(1609),
610+
PreconditionFailed(1610),
609611
MatchmakingEntityInvalid(2001),
610612
MatchmakingPlayerAttributesInvalid(2002),
611613
MatchmakingQueueNotFound(2016),
@@ -738,6 +740,7 @@ public static enum PlayFabErrorCode {
738740
AsyncExportNotFound(10012),
739741
AsyncExportRateLimitExceeded(10013),
740742
AnalyticsSegmentCountOverLimit(10014),
743+
GetPlayersInSegmentDeprecated(10015),
741744
SnapshotNotFound(11000),
742745
InventoryApiNotImplemented(12000),
743746
InventoryCollectionDeletionDisallowed(12001),
@@ -935,7 +938,13 @@ public static enum PlayFabErrorCode {
935938
InvalidEntityTypeForAggregation(23006),
936939
MultiLevelAggregationNotAllowed(23007),
937940
AggregationTypeNotAllowedForLinkedStat(23008),
938-
StoreMetricsRequestInvalidInput(23501);
941+
OperationDeniedDueToDefinitionPolicy(23009),
942+
StatisticUpdateNotAllowedWhileLinked(23010),
943+
UnsupportedEntityType(23011),
944+
EntityTypeSpecifiedRequiresAggregationSource(23012),
945+
PlayFabErrorEventNotSupportedForEntityType(23013),
946+
StoreMetricsRequestInvalidInput(23501),
947+
StoreMetricsErrorRetrievingMetrics(23502);
939948

940949
public int id;
941950

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,68 @@ private static PlayFabResult<ListStatisticDefinitionsResponse> privateListStatis
11291129
return pfResult;
11301130
}
11311131

1132+
/**
1133+
* Unlinks an aggregation source from a statistic definition.
1134+
* @param request UnlinkAggregationSourceFromStatisticRequest
1135+
* @return Async Task will return EmptyResponse
1136+
*/
1137+
@SuppressWarnings("unchecked")
1138+
public static FutureTask<PlayFabResult<EmptyResponse>> UnlinkAggregationSourceFromStatisticAsync(final UnlinkAggregationSourceFromStatisticRequest request) {
1139+
return new FutureTask(new Callable<PlayFabResult<EmptyResponse>>() {
1140+
public PlayFabResult<EmptyResponse> call() throws Exception {
1141+
return privateUnlinkAggregationSourceFromStatisticAsync(request);
1142+
}
1143+
});
1144+
}
1145+
1146+
/**
1147+
* Unlinks an aggregation source from a statistic definition.
1148+
* @param request UnlinkAggregationSourceFromStatisticRequest
1149+
* @return EmptyResponse
1150+
*/
1151+
@SuppressWarnings("unchecked")
1152+
public static PlayFabResult<EmptyResponse> UnlinkAggregationSourceFromStatistic(final UnlinkAggregationSourceFromStatisticRequest request) {
1153+
FutureTask<PlayFabResult<EmptyResponse>> task = new FutureTask(new Callable<PlayFabResult<EmptyResponse>>() {
1154+
public PlayFabResult<EmptyResponse> call() throws Exception {
1155+
return privateUnlinkAggregationSourceFromStatisticAsync(request);
1156+
}
1157+
});
1158+
try {
1159+
task.run();
1160+
return task.get();
1161+
} catch(Exception e) {
1162+
PlayFabResult<EmptyResponse> exceptionResult = new PlayFabResult<EmptyResponse>();
1163+
exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
1164+
return exceptionResult;
1165+
}
1166+
}
1167+
1168+
/** Unlinks an aggregation source from a statistic definition. */
1169+
@SuppressWarnings("unchecked")
1170+
private static PlayFabResult<EmptyResponse> privateUnlinkAggregationSourceFromStatisticAsync(final UnlinkAggregationSourceFromStatisticRequest request) throws Exception {
1171+
if (PlayFabSettings.EntityToken == null) throw new Exception ("Must call GetEntityToken before you can use the Entity API");
1172+
1173+
FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Statistic/UnlinkAggregationSourceFromStatistic"), request, "X-EntityToken", PlayFabSettings.EntityToken);
1174+
task.run();
1175+
Object httpResult = task.get();
1176+
if (httpResult instanceof PlayFabError) {
1177+
PlayFabError error = (PlayFabError)httpResult;
1178+
if (PlayFabSettings.GlobalErrorHandler != null)
1179+
PlayFabSettings.GlobalErrorHandler.callback(error);
1180+
PlayFabResult result = new PlayFabResult<EmptyResponse>();
1181+
result.Error = error;
1182+
return result;
1183+
}
1184+
String resultRawJson = (String) httpResult;
1185+
1186+
PlayFabJsonSuccess<EmptyResponse> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<EmptyResponse>>(){}.getType());
1187+
EmptyResponse result = resultData.data;
1188+
1189+
PlayFabResult<EmptyResponse> pfResult = new PlayFabResult<EmptyResponse>();
1190+
pfResult.Result = result;
1191+
return pfResult;
1192+
}
1193+
11321194
/**
11331195
* Unlinks a leaderboard definition from it's linked statistic definition.
11341196
* @param request UnlinkLeaderboardFromStatisticRequest

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,16 @@ public static class StatisticUpdate {
590590

591591
}
592592

593+
public static class UnlinkAggregationSourceFromStatisticRequest {
594+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
595+
public Map<String,String> CustomTags;
596+
/** The name of the statistic to unlink. */
597+
public String Name;
598+
/** The name of the aggregation source statistic to unlink. */
599+
public String SourceStatisticName;
600+
601+
}
602+
593603
public static class UnlinkLeaderboardFromStatisticRequest {
594604
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
595605
public Map<String,String> CustomTags;

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

Lines changed: 3 additions & 3 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.243.250815";
13-
public static String BuildIdentifier = "adobuild_javasdk_116";
14-
public static String SdkVersionString = "JavaSDK-0.243.250815";
12+
public static String SdkVersion = "0.244.250912";
13+
public static String BuildIdentifier = "adobuild_javasdk_117";
14+
public static String SdkVersionString = "JavaSDK-0.244.250912";
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.243.250815.jar -Destination ../../builds/client-sdk-0.243.250815.jar
8+
Copy-Item client-sdk-0.244.250912.jar -Destination ../../builds/client-sdk-0.244.250912.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.243.250815.jar ../../builds/client-sdk-0.243.250815.jar
10+
cp client-sdk-0.244.250912.jar ../../builds/client-sdk-0.244.250912.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.243.250815</version>
17+
<version>0.244.250912</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>https://docs.microsoft.com/gaming/playfab/</url>

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,8 @@ public static enum PlayFabErrorCode {
606606
ResourceNotModified(1606),
607607
StudioCreationLimitExceeded(1607),
608608
StudioDeletionInitiated(1608),
609+
ProductDisabledForTitle(1609),
610+
PreconditionFailed(1610),
609611
MatchmakingEntityInvalid(2001),
610612
MatchmakingPlayerAttributesInvalid(2002),
611613
MatchmakingQueueNotFound(2016),
@@ -738,6 +740,7 @@ public static enum PlayFabErrorCode {
738740
AsyncExportNotFound(10012),
739741
AsyncExportRateLimitExceeded(10013),
740742
AnalyticsSegmentCountOverLimit(10014),
743+
GetPlayersInSegmentDeprecated(10015),
741744
SnapshotNotFound(11000),
742745
InventoryApiNotImplemented(12000),
743746
InventoryCollectionDeletionDisallowed(12001),
@@ -935,7 +938,13 @@ public static enum PlayFabErrorCode {
935938
InvalidEntityTypeForAggregation(23006),
936939
MultiLevelAggregationNotAllowed(23007),
937940
AggregationTypeNotAllowedForLinkedStat(23008),
938-
StoreMetricsRequestInvalidInput(23501);
941+
OperationDeniedDueToDefinitionPolicy(23009),
942+
StatisticUpdateNotAllowedWhileLinked(23010),
943+
UnsupportedEntityType(23011),
944+
EntityTypeSpecifiedRequiresAggregationSource(23012),
945+
PlayFabErrorEventNotSupportedForEntityType(23013),
946+
StoreMetricsRequestInvalidInput(23501),
947+
StoreMetricsErrorRetrievingMetrics(23502);
939948

940949
public int id;
941950

0 commit comments

Comments
 (0)