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

# GameSessionSummary (JSON)

> GameSessionSummary (JSON)

# GameSessionSummary (JSON)

表示游戏会话摘要数据的 JSON 对象。

GameSessionSummary JSON 对象具有以下规范。

| 成员 | 类型 | 说明 |
| - | - | - |
| creationTime | DateTime | 创建会话的日期和时间,采用 UTC。 |
| customData | 8 位无符号整数数组 | 1024 字节的特定于游戏的会话数据。此值对服务器是不透明的。 |
| displayName | string | 游戏会话的显示名称,最大长度为 128 个字符。此值对服务器是不透明的。 |
| hasEnded | 布尔值 | 如果会话已结束,则为 True;否则为 false。将此字段设置为 true 会将游戏会话标记为只读,阻止向该会话进一步提交数据。 |
| sessionId | string 会话 ID。 | |
| titleId | 32 位无符号整数 | 创建游戏会话的游戏的 ID。 |
| variant | 32 位有符号整数 | 游戏变体。此值对服务器是不透明的。 |

## JSON 语法示例

```json theme={null}
{
    "sessionId": "702e5aaf-e7bd-4a7c-abea-9dd4be10edec",
    "titleId": 1297287259,
    "variant": 1,
    "displayName": "Contoso Cards",
    "creationTime": "2011-06-23T17:13:06Z",
    "customData": null,
    "hasEnded": false,
}
    
```

## 另请参阅

##### 父主题

[JavaScript 对象表示法 (JSON) 对象参考](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json.md)

##### 参考

[GameSession (JSON)](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/json-gamesession.md)


## Related topics

- [GameSession (JSON)](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/json-gamesession.md)
- [Session Directory URIs](https://devdocs.xbox.com/zh-CN/reference/live/rest/uri/sessiondirectory/atoc-reference-sessiondirectory.md)
- [JavaScript 对象表示法 (JSON) 对象参考](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [XblMultiplayerManagerGameSessionPropertiesJson](https://devdocs.xbox.com/zh-CN/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionpropertiesjson.md)
- [PersonSummary (JSON)](https://devdocs.xbox.com/zh-CN/reference/live/rest/json/json-personsummary.md)
