@@ -3684,6 +3684,76 @@ private static PlayFabResult<GetPlayFabIDsFromNintendoSwitchDeviceIdsResult> pri
36843684 return pfResult;
36853685 }
36863686
3687+ /**
3688+ * Retrieves the unique PlayFab identifiers for the given set of OpenId subject identifiers. A OpenId identifier is the
3689+ * service name plus the service-specific ID for the player, as specified by the title when the OpenId identifier was added
3690+ * to the player account.
3691+ * @param request GetPlayFabIDsFromOpenIdsRequest
3692+ * @return Async Task will return GetPlayFabIDsFromOpenIdsResult
3693+ */
3694+ @SuppressWarnings("unchecked")
3695+ public static FutureTask<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>> GetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(final GetPlayFabIDsFromOpenIdsRequest request) {
3696+ return new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>>() {
3697+ public PlayFabResult<GetPlayFabIDsFromOpenIdsResult> call() throws Exception {
3698+ return privateGetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(request);
3699+ }
3700+ });
3701+ }
3702+
3703+ /**
3704+ * Retrieves the unique PlayFab identifiers for the given set of OpenId subject identifiers. A OpenId identifier is the
3705+ * service name plus the service-specific ID for the player, as specified by the title when the OpenId identifier was added
3706+ * to the player account.
3707+ * @param request GetPlayFabIDsFromOpenIdsRequest
3708+ * @return GetPlayFabIDsFromOpenIdsResult
3709+ */
3710+ @SuppressWarnings("unchecked")
3711+ public static PlayFabResult<GetPlayFabIDsFromOpenIdsResult> GetPlayFabIDsFromOpenIdSubjectIdentifiers(final GetPlayFabIDsFromOpenIdsRequest request) {
3712+ FutureTask<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>> task = new FutureTask(new Callable<PlayFabResult<GetPlayFabIDsFromOpenIdsResult>>() {
3713+ public PlayFabResult<GetPlayFabIDsFromOpenIdsResult> call() throws Exception {
3714+ return privateGetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(request);
3715+ }
3716+ });
3717+ try {
3718+ task.run();
3719+ return task.get();
3720+ } catch(Exception e) {
3721+ PlayFabResult<GetPlayFabIDsFromOpenIdsResult> exceptionResult = new PlayFabResult<GetPlayFabIDsFromOpenIdsResult>();
3722+ exceptionResult.Error = PlayFabHTTP.GeneratePfError(-1, PlayFabErrorCode.Unknown, e.getMessage(), null, null);
3723+ return exceptionResult;
3724+ }
3725+ }
3726+
3727+ /**
3728+ * Retrieves the unique PlayFab identifiers for the given set of OpenId subject identifiers. A OpenId identifier is the
3729+ * service name plus the service-specific ID for the player, as specified by the title when the OpenId identifier was added
3730+ * to the player account.
3731+ */
3732+ @SuppressWarnings("unchecked")
3733+ private static PlayFabResult<GetPlayFabIDsFromOpenIdsResult> privateGetPlayFabIDsFromOpenIdSubjectIdentifiersAsync(final GetPlayFabIDsFromOpenIdsRequest request) throws Exception {
3734+ if (PlayFabSettings.ClientSessionTicket == null) throw new Exception ("Must be logged in to call this method");
3735+
3736+ FutureTask<Object> task = PlayFabHTTP.doPost(PlayFabSettings.GetURL("/Client/GetPlayFabIDsFromOpenIdSubjectIdentifiers"), request, "X-Authorization", PlayFabSettings.ClientSessionTicket);
3737+ task.run();
3738+ Object httpResult = task.get();
3739+ if (httpResult instanceof PlayFabError) {
3740+ PlayFabError error = (PlayFabError)httpResult;
3741+ if (PlayFabSettings.GlobalErrorHandler != null)
3742+ PlayFabSettings.GlobalErrorHandler.callback(error);
3743+ PlayFabResult result = new PlayFabResult<GetPlayFabIDsFromOpenIdsResult>();
3744+ result.Error = error;
3745+ return result;
3746+ }
3747+ String resultRawJson = (String) httpResult;
3748+
3749+ PlayFabJsonSuccess<GetPlayFabIDsFromOpenIdsResult> resultData = gson.fromJson(resultRawJson, new TypeToken<PlayFabJsonSuccess<GetPlayFabIDsFromOpenIdsResult>>(){}.getType());
3750+ GetPlayFabIDsFromOpenIdsResult result = resultData.data;
3751+
3752+ PlayFabResult<GetPlayFabIDsFromOpenIdsResult> pfResult = new PlayFabResult<GetPlayFabIDsFromOpenIdsResult>();
3753+ pfResult.Result = result;
3754+ return pfResult;
3755+ }
3756+
36873757 /**
36883758 * Retrieves the unique PlayFab identifiers for the given set of PlayStation :tm: Network identifiers.
36893759 * @param request GetPlayFabIDsFromPSNAccountIDsRequest
0 commit comments