/// <summary> /// Lists all entities blocked from joining a group /// </summary> public static void ListGroupBlocks(ListGroupBlocksRequest request, Action <ListGroupBlocksResponse> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer; PlayFabHttp.MakeApiCall("/Group/ListGroupBlocks", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context); }
/// <summary> /// Lists all entities blocked from joining a group /// </summary> public void ListGroupBlocks(ListGroupBlocksRequest request, Action <ListGroupBlocksResponse> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null) { var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext; var callSettings = apiSettings ?? PlayFabSettings.staticSettings; if (!context.IsEntityLoggedIn()) { throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn, "Must be logged in to call this method"); } PlayFabHttp.MakeApiCall("/Group/ListGroupBlocks", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this); }
/// <summary> /// Lists all entities blocked from joining a group /// </summary> /// <param name="Group">The identifier of the group (Required)</param> public static Task <ListGroupBlocksResponse> ListGroupBlocks(EntityKey Group, PlayFabAuthenticationContext customAuthContext = null, object customData = null, Dictionary <string, string> extraHeaders = null) { ListGroupBlocksRequest request = new ListGroupBlocksRequest() { Group = Group, }; var context = GetContext(customAuthContext); return(PlayFabHttp.MakeApiCallAsync <ListGroupBlocksResponse>("/Group/ListGroupBlocks", request, AuthType.EntityToken, customData, extraHeaders, context)); }
/// <summary> /// Lists all entities blocked from joining a group /// </summary> public static async Task <PlayFabResult <ListGroupBlocksResponse> > ListGroupBlocksAsync(ListGroupBlocksRequest request, object customData = null, Dictionary <string, string> extraHeaders = null) { if ((request?.AuthenticationContext?.EntityToken ?? PlayFabSettings.staticPlayer.EntityToken) == null) { throw new PlayFabException(PlayFabExceptionCode.EntityTokenNotSet, "Must call GetEntityToken before calling this method"); } var httpResult = await PlayFabHttp.DoPost("/Group/ListGroupBlocks", request, "X-EntityToken", PlayFabSettings.staticPlayer.EntityToken, extraHeaders); if (httpResult is PlayFabError) { var error = (PlayFabError)httpResult; PlayFabSettings.GlobalErrorHandler?.Invoke(error); return(new PlayFabResult <ListGroupBlocksResponse> { Error = error, CustomData = customData }); } var resultRawJson = (string)httpResult; var resultData = PluginManager.GetPlugin <ISerializerPlugin>(PluginContract.PlayFab_Serializer).DeserializeObject <PlayFabJsonSuccess <ListGroupBlocksResponse> >(resultRawJson); var result = resultData.data; return(new PlayFabResult <ListGroupBlocksResponse> { Result = result, CustomData = customData }); }
/// <summary> /// Lists all entities blocked from joining a group /// </summary> public static void ListGroupBlocks(ListGroupBlocksRequest request, Action <ListGroupBlocksResponse> resultCallback, Action <PlayFabError> errorCallback, object customData = null, Dictionary <string, string> extraHeaders = null) { PlayFabHttp.MakeApiCall("/Group/ListGroupBlocks", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders); }