> ## 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 Multiplayer により実装され、その Multiplayer バージョン以降にのみ適用されます。テンプレート コントラクト 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 User 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 Object Notation (JSON) オブジェクト リファレンス](https://devdocs.xbox.com/ja-jp/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)
