> ## 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.

# MultiplayerActivityDetails (JSON)

> MultiplayerActivityDetails (JSON)

# MultiplayerActivityDetails (JSON)

表示 **Microsoft.Xbox.Services.Multiplayer.MultiplayerActivityDetails** 的 JSON 对象。

> **注意:**\
> 此对象由 2015 版多人游戏实现,仅适用于该多人游戏版本及更高版本。旨在用于模板合约 104/105 或更高版本。

MultiplayerActivityDetails JSON 对象具有以下规范。

\| 成员 | 类型 | 说明 |
\| --- | --- | --- | --- |
\| SessionReference| MultiplayerSessionReference| 表示会话标识信息的 **Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionReference** 对象。|
\| HandleId| 64 位无符号整数| 对应活动的句柄 ID。|
\| TitleId| 32 位无符号整数| 为加入活动而应启动的游戏 ID。|
\| Visibility| MultiplayerSessionVisibility| 指示会话可见性状态的 **Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionVisibility** 值。|
\| JoinRestriction| MultiplayerSessionJoinRestriction| 指示会话加入限制的 **Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionJoinRestriction** 值。仅当 visibility 字段设置为 “open” 时应用此限制。|
\| Closed| 布尔值| 如果会话临时关闭无法加入,则为 True;否则为 false。|
\| OwnerXboxUserId| 64 位无符号整数| 拥有活动的成员的 XBOX 用户 ID。|
\| MaxMembersCount| 32 位无符号整数| 总位置数。|
\| MembersCount| 32 位无符号整数| 已占用的位置数。|

## JSON 语法示例

```json theme={null}
{
  "results": [{
    "id": "11111111-ebe0-42da-885f-033860a818f6",
    "type": "activity",
    "version": 1,
    "sessionRef": {
      "scid": "8dfb0100-ebe0-42da-885f-033860a818f6",
      "templateName": "party",
      "name": "e3a836aeac6f4cbe9bcab985494d3175"
    },
    "titleId": "1234567",
    "ownerXuid": "3212",

    // Only if ?include=relatedInfo
    "relatedInfo": {
      "visibility": "open",
      "joinRestriction": "followed",
      "closed": true,
      "maxMembersCount": 8,
      "membersCount": 4,
    }
  },
  {
    "id": "11111111-ebe0-42da-885f-033860a818f7",
    "type": "activity",
    "version": 1,
    "sessionRef": {
      "scid": "8dfb0100-ebe0-42da-885f-033860a818f6",
      "templateName": "TitleStorageTestDefault",
      "name": "795fcaa7-8377-4281-bd7e-e86c12843632"
    },
    "titleId": "1234567",
    "ownerXuid": "3212",

    // Only if ?include=relatedInfo
    "relatedInfo": {
      "visibility": "open",
      "joinRestriction": "followed",
      "closed": false,
      "maxMembersCount": 8,
      "membersCount": 4,
    }
  }]
}
    
```

## 另请参阅

##### 父主题

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


## Related topics

- [XblMultiplayerActivityDetails](https://devdocs.xbox.com/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayeractivitydetails.md)
- [Activities](https://devdocs.xbox.com/services/xbox-services/multiplayer/mpa/concepts/live-mpa-activities.md)
