Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#171016
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Oct 16, 2017
2 parents 3453995 + afcd8e9 commit 824e9e8
Show file tree
Hide file tree
Showing 29 changed files with 37 additions and 446 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,6 @@ public static class GameInfo {
* game session custom data
*/
public String GameServerData;
/**
* @deprecated Please use GameServerStateEnum instead.
*/
@Deprecated
public Integer GameServerState;
/**
* game specific string denoting server configuration
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.56.170925";
public static String SdkVersion = "0.57.171016";
public static String BuildIdentifier = "jbuild_javasdk_1";
public static String SdkVersionString = "JavaSDK-0.56.170925";
public static String SdkVersionString = "JavaSDK-0.57.171016";

public static String TitleId = null; // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
public static ErrorCallback GlobalErrorHandler;
Expand Down
2 changes: 1 addition & 1 deletion PlayFabClientSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<inceptionYear>2016</inceptionYear>
<groupId>com.playfab</groupId>
<artifactId>client-sdk</artifactId>
<version>0.56.170925</version>
<version>0.57.171016</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>http://api.playfab.com/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,6 @@ public static class GameInfo {
* game session custom data
*/
public String GameServerData;
/**
* @deprecated Please use GameServerStateEnum instead.
*/
@Deprecated
public Integer GameServerState;
/**
* game specific string denoting server configuration
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.56.170925";
public static String SdkVersion = "0.57.171016";
public static String BuildIdentifier = "jbuild_javasdk_1";
public static String SdkVersionString = "JavaSDK-0.56.170925";
public static String SdkVersionString = "JavaSDK-0.57.171016";

public static String TitleId = null; // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
public static ErrorCallback GlobalErrorHandler;
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<inceptionYear>2016</inceptionYear>
<groupId>com.playfab</groupId>
<artifactId>combo-sdk</artifactId>
<version>0.56.170925</version>
<version>0.57.171016</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>http://api.playfab.com/</url>
Expand Down
65 changes: 0 additions & 65 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabAdminAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -1135,71 +1135,6 @@ private static PlayFabResult<GetActionsOnPlayersInSegmentTaskInstanceResult> pri
return pfResult;
}

/**
* @deprecated Please use GetTasks instead.
* @param request GetAllActionGroupsRequest
* @return Async Task will return GetAllActionGroupsResult
*/
@Deprecated
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetAllActionGroupsResult>> GetAllActionGroupsAsync(final GetAllActionGroupsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetAllActionGroupsResult>>() {
public PlayFabResult<GetAllActionGroupsResult> call() throws Exception {
return privateGetAllActionGroupsAsync(request);
}
});
}

/**
* @deprecated Please use GetTasks instead.
* @param request GetAllActionGroupsRequest
* @return GetAllActionGroupsResult
*/
@Deprecated
@SuppressWarnings("unchecked")
public static PlayFabResult<GetAllActionGroupsResult> GetAllActionGroups(final GetAllActionGroupsRequest request) {
FutureTask<PlayFabResult<GetAllActionGroupsResult>> task = new FutureTask(new Callable<PlayFabResult<GetAllActionGroupsResult>>() {
public PlayFabResult<GetAllActionGroupsResult> call() throws Exception {
return privateGetAllActionGroupsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/**
* @deprecated Please use GetTasks instead.
*/
@Deprecated
@SuppressWarnings("unchecked")
private static PlayFabResult<GetAllActionGroupsResult> privateGetAllActionGroupsAsync(final GetAllActionGroupsRequest 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() + "/Admin/GetAllActionGroups", 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<GetAllActionGroupsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

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

/**
* Retrieves an array of player segment definitions. Results from this can be used in subsequent API calls such as GetPlayersInSegment which requires a Segment ID. While segment names can change the ID for that segment will not change.
* @param request GetAllSegmentsRequest
Expand Down
36 changes: 0 additions & 36 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -1301,22 +1301,6 @@ public static class GameModeInfo {

}

/**
* @deprecated Do not use
*/
@Deprecated
public static class GetActionGroupResult {
/**
* Action Group ID
*/
public String Id;
/**
* Action Group name
*/
public String Name;

}

public static class GetActionsOnPlayersInSegmentTaskInstanceResult {
/**
* Parameter of this task instance
Expand All @@ -1329,26 +1313,6 @@ public static class GetActionsOnPlayersInSegmentTaskInstanceResult {

}

/**
* @deprecated Do not use
*/
@Deprecated
public static class GetAllActionGroupsRequest {

}

/**
* @deprecated Do not use
*/
@Deprecated
public static class GetAllActionGroupsResult {
/**
* List of Action Groups.
*/
public ArrayList<GetActionGroupResult> ActionGroups;

}

public static class GetAllSegmentsRequest {

}
Expand Down
5 changes: 0 additions & 5 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabClientModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,6 @@ public static class GameInfo {
* game session custom data
*/
public String GameServerData;
/**
* @deprecated Please use GameServerStateEnum instead.
*/
@Deprecated
public Integer GameServerState;
/**
* game specific string denoting server configuration
*/
Expand Down
65 changes: 0 additions & 65 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabServerAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -1008,71 +1008,6 @@ private static PlayFabResult<ExecuteCloudScriptResult> privateExecuteCloudScript
return pfResult;
}

/**
* @deprecated Please use GetAllSegments instead.
* @param request GetAllActionGroupsRequest
* @return Async Task will return GetAllActionGroupsResult
*/
@Deprecated
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetAllActionGroupsResult>> GetAllActionGroupsAsync(final GetAllActionGroupsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetAllActionGroupsResult>>() {
public PlayFabResult<GetAllActionGroupsResult> call() throws Exception {
return privateGetAllActionGroupsAsync(request);
}
});
}

/**
* @deprecated Please use GetAllSegments instead.
* @param request GetAllActionGroupsRequest
* @return GetAllActionGroupsResult
*/
@Deprecated
@SuppressWarnings("unchecked")
public static PlayFabResult<GetAllActionGroupsResult> GetAllActionGroups(final GetAllActionGroupsRequest request) {
FutureTask<PlayFabResult<GetAllActionGroupsResult>> task = new FutureTask(new Callable<PlayFabResult<GetAllActionGroupsResult>>() {
public PlayFabResult<GetAllActionGroupsResult> call() throws Exception {
return privateGetAllActionGroupsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/**
* @deprecated Please use GetAllSegments instead.
*/
@Deprecated
@SuppressWarnings("unchecked")
private static PlayFabResult<GetAllActionGroupsResult> privateGetAllActionGroupsAsync(final GetAllActionGroupsRequest 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/GetAllActionGroups", 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<GetAllActionGroupsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

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

/**
* Retrieves an array of player segment definitions. Results from this can be used in subsequent API calls such as GetPlayersInSegment which requires a Segment ID. While segment names can change the ID for that segment will not change.
* @param request GetAllSegmentsRequest
Expand Down
57 changes: 13 additions & 44 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabServerModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -1201,42 +1201,6 @@ public static enum GameInstanceState {
Closed
}

/**
* @deprecated Do not use
*/
@Deprecated
public static class GetActionGroupResult {
/**
* Action Group ID
*/
public String Id;
/**
* Action Group name
*/
public String Name;

}

/**
* @deprecated Do not use
*/
@Deprecated
public static class GetAllActionGroupsRequest {

}

/**
* @deprecated Do not use
*/
@Deprecated
public static class GetAllActionGroupsResult {
/**
* List of Action Groups.
*/
public ArrayList<GetActionGroupResult> ActionGroups;

}

public static class GetAllSegmentsRequest {

}
Expand Down Expand Up @@ -3073,27 +3037,32 @@ public static class PlayerStatisticVersion {

public static class PushNotificationPackage {
/**
* Arbitrary string that will be delivered with the message. Suggested use: JSON formatted object
* Numerical badge to display on App icon (iOS only)
*/
public Integer Badge;
/**
* This must be a JSON formatted object. For use with developer-created custom Push Notification plugins
*/
public String CustomData;
/**
* Icon file to display with the message
* Icon file to display with the message (Not supported for iOS)
*/
public String Icon;
/**
* Content of the message
* Content of the message (all platforms)
*/
public String Message;
/**
* If set, represents a timestamp for when the device should display the message. Local format should be formatted as: yyyy-MM-dd HH:mm:ss or UTC timestamp formatted as yyyy-MM-ddTHH:mm:ssZ. Delivery is not delayed, scheduling is expected to be handled by the device.
* @deprecated Please use CustomData instead.
*/
@Deprecated
public String ScheduleDate;
/**
* Sound file to play with the message
* Sound file to play with the message (all platforms)
*/
public String Sound;
/**
* Title/Subject of the message
* Title/Subject of the message. Not supported for iOS
*/
public String Title;

Expand Down Expand Up @@ -3429,15 +3398,15 @@ public static class SendPushNotificationRequest {
*/
public String Message;
/**
* Defines all possible push attributes like message, title, icon, etc. Not fully supported for iOS devices.
* Defines all possible push attributes like message, title, icon, etc. Some parameters are device specific - please see the PushNotificationPackage documentation for details.
*/
public PushNotificationPackage Package;
/**
* PlayFabId of the recipient of the push notification.
*/
public String Recipient;
/**
* Subject of message to send (may not be displayed in all platforms.
* Subject of message to send (may not be displayed in all platforms)
*/
public String Subject;
/**
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.56.170925";
public static String SdkVersion = "0.57.171016";
public static String BuildIdentifier = "jbuild_javasdk_1";
public static String SdkVersionString = "JavaSDK-0.56.170925";
public static String SdkVersionString = "JavaSDK-0.57.171016";

public static String TitleId = null; // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
public static ErrorCallback GlobalErrorHandler;
Expand Down
2 changes: 1 addition & 1 deletion PlayFabServerSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<inceptionYear>2016</inceptionYear>
<groupId>com.playfab</groupId>
<artifactId>server-sdk</artifactId>
<version>0.56.170925</version>
<version>0.57.171016</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>http://api.playfab.com/</url>
Expand Down
Loading

0 comments on commit 824e9e8

Please sign in to comment.