> ## 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 或更新版本搭配使用。

<a id="ID4ES" />

MultiplayerActivityDetails JSON 物件具有下列規格。

\| 成員| 類型| 描述|
\| --- | --- | --- | --- |
\| SessionReference| MultiplayerSessionReference| 代表工作階段識別資訊的 <b>Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionReference</b> 物件。|
\| HandleId| 64 位元不帶正負號的整數| 對應至活動的控制代碼識別碼。|
\| TitleId| 32 位元不帶正負號的整數| 為了加入活動而應啟動的遊戲識別碼。|
\| Visibility| MultiplayerSessionVisibility| 指出工作階段可見度狀態的 <b>Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionVisibility</b> 值。|
\| JoinRestriction| MultiplayerSessionJoinRestriction| 指出工作階段加入限制的 <b>Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionJoinRestriction</b> 值。如果 visiblity 欄位設定為 "open"，則適用此限制。|
\| Closed| 布林值| 如果工作階段暫時關閉而無法加入則為 True，否則為 false。|
\| OwnerXboxUserId| 64 位元不帶正負號的整數| 擁有活動之成員的 XBOX 使用者識別碼。|
\| MaxMembersCount| 32 位元不帶正負號的整數| 位置總數。|
\| MembersCount| 32 位元不帶正負號的整數| 已佔用的位置數目。|

<a id="ID4E3D" />

## 範例 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,
    }
  }]
}
    
```

<a id="ID4EFE" />

## 另請參閱

<a id="ID4EHE" />

##### 上層

[JavaScript Object Notation (JSON) 物件參考](/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json)


## Related topics

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