Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Automated build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins

* Automated pf-main build from Jenkins
  • Loading branch information
Paul Gilmore authored Aug 2, 2016
1 parent d3b55f7 commit d627190
Show file tree
Hide file tree
Showing 24 changed files with 3,179 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,64 @@ private static PlayFabResult<RegisterPlayFabUserResult> privateRegisterPlayFabUs
return pfResult;
}

/**
* Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as authentication credentials, as the intent is that it is easily accessible by other players.
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<AddGenericIDResult>> AddGenericIDAsync(final AddGenericIDRequest request) {
return new FutureTask(new Callable<PlayFabResult<AddGenericIDResult>>() {
public PlayFabResult<AddGenericIDResult> call() throws Exception {
return privateAddGenericIDAsync(request);
}
});
}

/**
* Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as authentication credentials, as the intent is that it is easily accessible by other players.
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<AddGenericIDResult> AddGenericID(final AddGenericIDRequest request) {
FutureTask<PlayFabResult<AddGenericIDResult>> task = new FutureTask(new Callable<PlayFabResult<AddGenericIDResult>>() {
public PlayFabResult<AddGenericIDResult> call() throws Exception {
return privateAddGenericIDAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/**
* Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as authentication credentials, as the intent is that it is easily accessible by other players.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<AddGenericIDResult> privateAddGenericIDAsync(final AddGenericIDRequest request) throws Exception {
if (_authKey == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/AddGenericID", request, "X-Authorization", _authKey);
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<AddGenericIDResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

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

/**
* Adds playfab username/password auth to an existing semi-anonymous account created via a 3rd party auth method.
*/
Expand Down Expand Up @@ -1097,6 +1155,64 @@ private static PlayFabResult<GetPlayFabIDsFromGameCenterIDsResult> privateGetPla
return pfResult;
}

/**
* Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the service name plus the service-specific ID for the player, as specified by the title when the generic identifier was added to the player account.
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetPlayFabIDsFromGenericIDsResult>> GetPlayFabIDsFromGenericIDsAsync(final GetPlayFabIDsFromGenericIDsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromGenericIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromGenericIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromGenericIDsAsync(request);
}
});
}

/**
* Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the service name plus the service-specific ID for the player, as specified by the title when the generic identifier was added to the player account.
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetPlayFabIDsFromGenericIDsResult> GetPlayFabIDsFromGenericIDs(final GetPlayFabIDsFromGenericIDsRequest request) {
FutureTask<PlayFabResult<GetPlayFabIDsFromGenericIDsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromGenericIDsResult>>() {
public PlayFabResult<GetPlayFabIDsFromGenericIDsResult> call() throws Exception {
return privateGetPlayFabIDsFromGenericIDsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/**
* Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the service name plus the service-specific ID for the player, as specified by the title when the generic identifier was added to the player account.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<GetPlayFabIDsFromGenericIDsResult> privateGetPlayFabIDsFromGenericIDsAsync(final GetPlayFabIDsFromGenericIDsRequest request) throws Exception {
if (_authKey == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/GetPlayFabIDsFromGenericIDs", request, "X-Authorization", _authKey);
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<GetPlayFabIDsFromGenericIDsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

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

/**
* Retrieves the unique PlayFab identifiers for the given set of Google identifiers. The Google identifiers are the IDs for the user accounts, available as "id" in the Google+ People API calls.
*/
Expand Down Expand Up @@ -1909,6 +2025,64 @@ private static PlayFabResult<LinkTwitchAccountResult> privateLinkTwitchAsync(fin
return pfResult;
}

/**
* Removes the specified generic service identifier from the player's PlayFab account.
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<RemoveGenericIDResult>> RemoveGenericIDAsync(final RemoveGenericIDRequest request) {
return new FutureTask(new Callable<PlayFabResult<RemoveGenericIDResult>>() {
public PlayFabResult<RemoveGenericIDResult> call() throws Exception {
return privateRemoveGenericIDAsync(request);
}
});
}

/**
* Removes the specified generic service identifier from the player's PlayFab account.
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<RemoveGenericIDResult> RemoveGenericID(final RemoveGenericIDRequest request) {
FutureTask<PlayFabResult<RemoveGenericIDResult>> task = new FutureTask(new Callable<PlayFabResult<RemoveGenericIDResult>>() {
public PlayFabResult<RemoveGenericIDResult> call() throws Exception {
return privateRemoveGenericIDAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/**
* Removes the specified generic service identifier from the player's PlayFab account.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<RemoveGenericIDResult> privateRemoveGenericIDAsync(final RemoveGenericIDRequest request) throws Exception {
if (_authKey == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/RemoveGenericID", request, "X-Authorization", _authKey);
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<RemoveGenericIDResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

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

/**
* Submit a report for another player (due to bad bahavior, etc.), so that customer service representatives for the title can take action concerning potentially toxic players.
*/
Expand Down Expand Up @@ -7131,6 +7305,64 @@ private static PlayFabResult<AttributeInstallResult> privateAttributeInstallAsyn
return pfResult;
}

/**
* List all segments that a player currently belongs to at this moment in time.
*/
@SuppressWarnings("unchecked")
public static FutureTask<PlayFabResult<GetPlayerSegmentsResult>> GetPlayerSegmentsAsync(final GetPlayerSegmentsRequest request) {
return new FutureTask(new Callable<PlayFabResult<GetPlayerSegmentsResult>>() {
public PlayFabResult<GetPlayerSegmentsResult> call() throws Exception {
return privateGetPlayerSegmentsAsync(request);
}
});
}

/**
* List all segments that a player currently belongs to at this moment in time.
*/
@SuppressWarnings("unchecked")
public static PlayFabResult<GetPlayerSegmentsResult> GetPlayerSegments(final GetPlayerSegmentsRequest request) {
FutureTask<PlayFabResult<GetPlayerSegmentsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayerSegmentsResult>>() {
public PlayFabResult<GetPlayerSegmentsResult> call() throws Exception {
return privateGetPlayerSegmentsAsync(request);
}
});
try {
task.run();
return task.get();
} catch(Exception e) {
return null;
}
}

/**
* List all segments that a player currently belongs to at this moment in time.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<GetPlayerSegmentsResult> privateGetPlayerSegmentsAsync(final GetPlayerSegmentsRequest request) throws Exception {
if (_authKey == null) throw new Exception ("Must be logged in to call this method");

FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL() + "/Client/GetPlayerSegments", request, "X-Authorization", _authKey);
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<GetPlayerSegmentsResult>();
result.Error = error;
return result;
}
String resultRawJson = (String) httpResult;

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

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

public static void MultiStepClientLogin(Boolean needsAttribution) {
if (needsAttribution && !PlayFabSettings.DisableAdvertising
&& (PlayFabSettings.AdvertisingIdType == null || PlayFabSettings.AdvertisingIdType == "")
Expand Down
Loading

0 comments on commit d627190

Please sign in to comment.