# 结构 FDeleteTicketResponse

> Review the response structure returned when deleting a matchmaking ticket.

##### Include（包括）##include

```cpp
#include <MatchmakerClient/Public/Models/DeleteTicketResponse.h>
```

##### 语法##syntax

```cpp
USTRUCT(BlueprintType)
struct FDeleteTicketResponse
```

## 字段##fields

### WasSuccessful##wassuccessful

指示请求是否已成功完成。

#### 声明##declaration

```cpp
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Unity Gaming Services | Matchmaker | Model")
bool bWasSuccessful = false
```

#### Blueprint##blueprint

| **Name**            | **类型**                                                                                             | **默认值** |
| :------------------ | :------------------------------------------------------------------------------------------------- | :------ |
| Was Successful（已成功） | [布尔值](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | false   |

#### C++##c++

| **Name**         | **类型** | **默认值** |
| :--------------- | :----- | :------ |
| `bWasSuccessful` | `bool` | `false` |

### ErrorMessage##errormessage

包含错误详细信息的错误消息。

#### 声明##declaration

```cpp
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Unity Gaming Services | Matchmaker | Model")
FString ErrorMessage
```

#### Blueprint##blueprint

| **Name** | **类型**                                                                                             |
| :------- | :------------------------------------------------------------------------------------------------- |
| 错误消息     | [字符串](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) |

#### C++##c++

| **Name**       | **类型**                                                                                  |
| :------------- | :-------------------------------------------------------------------------------------- |
| `ErrorMessage` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### ErrorCode##errorcode

以 int32 表示的错误代码 ([MatchmakerExceptionReason](/matchmaker/unreal-engine-sdk/sdk-api/matchmaker-core/models/matchmaker-exception-reason.md))，旨在实现 Blueprint 兼容性。

#### 声明##declaration

```cpp
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Unity Gaming Services | Matchmaker | Model")
int32 ErrorCode = Matchmaker::kMatchmakerExceptionOffset
```

#### Blueprint##blueprint

\| **Name** | **类型** |  **默认值** |
\|:---|:---|:---|:---|:---
\| 错误代码 | [整数](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | `0` |

#### C++##c++

| **Name**    | **类型**                                                                                                         | **默认值** |
| :---------- | :------------------------------------------------------------------------------------------------------------- | :------ |
| `ErrorCode` | [int32](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/GenericPlatform/FGenericPlatformTypes/int32/) | `0`     |

## 方法##methods

### GetReasonEnum()##getreasonenum()

#### 声明##declaration

```cpp
EMatchmakerExceptionReason GetReasonEnum() const
```

#### 返回##returns

| **类型**                                                                                                                    | **描述**                                                                                                                               |
| :------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------- |
| [EMatchmakerExceptionReason](/matchmaker/unreal-engine-sdk/sdk-api/matchmaker-core/models/matchmaker-exception-reason.md) | 表示为 [EMatchmakerExceptionReason](/matchmaker/unreal-engine-sdk/sdk-api/matchmaker-core/models/matchmaker-exception-reason.md) 的异常原因。 |
