> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MatchTicket (JSON)

> MatchTicket (JSON)

# MatchTicket (JSON)

プレイヤーがマルチプレイヤー セッション ディレクトリ (MPSD) を介して他のプレイヤーを探すために使用するマッチ チケットを表す JSON オブジェクト。

MatchTicket JSON オブジェクトの仕様は次のとおりです。

| メンバー | 型 | 説明 |
| - | - | - |
| serviceConfig | GUID | セッションのサービス構成識別子 (SCID)。 |
| hopperName | string | このチケットを配置するホッパーの名前。 |
| giveUpDuration | 32 ビット符号付き整数 | 最大待機時間 (整数の秒数)。 |
| preserveSession | enumeration | マッチ先セッションとしてセッションを再利用する必要があるかどうかを示す値。指定可能な値は "always" または "never" です。 |
| ticketSessionRef | MultiplayerSessionReference | プレイヤーまたはグループが現在プレイしているセッションの **MultiplayerSessionReference** オブジェクト。このメンバーは常に必須です。 |
| ticketAttributes | オブジェクトの配列 | プレイヤーのチケットに関する、ユーザー提供の属性と値のコレクション。 |
| players | オブジェクトの配列 | player オブジェクトのコレクション。それぞれにユーザー提供の属性のプロパティ バッグが含まれます。 |

## サンプル JSON 構文

```json theme={null}
{
        "serviceConfig": "07617C5B-3423-4505-B6C6-10A16E1E5DDB",
        "hopperName": "TestHopper",
        "giveUpDuration": 10,
        "preserveSession": "never",
        "ticketSessionRef": {
        "scid": "AFFEABDF-0000-0000-0000-000000000001",
        "templateName": "TestTemplate",
        "sessionName": "5E551041-0000-0000-0000-000000000001"
    },
    "ticketAttributes": {
        "desiredMap": "Test Map",
        "desiredGameType": "Test GameType"
    },
    "players": [
        {
            "xuid": 123412345123,
            "playerAttributes": {
                "skill": 5,
                "ageRange": "teenager"
            }
        },
        {
          "xuid": 123412345124,
          "playerAttributes": {
              "skill": 15,
              "ageRange": "twenty-something"
          }
        }
      ]
    }
  
    
```

## 関連項目

##### 親

[JavaScript Object Notation (JSON) オブジェクト リファレンス](https://docs.xbox.com/ja-jp/reference/live/rest/json/atoc-xboxlivews-reference-json.md)


## Related topics

- [マッチメイキング URI](https://docs.xbox.com/ja-jp/reference/live/rest/uri/matchtickets/atoc-reference-matchtickets.md)
- [Cancel Matchmaking Ticket](https://docs.xbox.com/api-reference/matchmaking/cancel-matchmaking-ticket.md)
- [Get Matchmaking Ticket](https://docs.xbox.com/api-reference/matchmaking/get-matchmaking-ticket.md)
- [Join Matchmaking Ticket](https://docs.xbox.com/api-reference/matchmaking/join-matchmaking-ticket.md)
- [MatchmakingTicketMatchMember.AttributesJSON](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/MatchmakingTicketMatchMember/AttributesJSON.md)
