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

# GameMessage (JSON)

> GameMessage (JSON)

# GameMessage (JSON)

ゲーム セッションのメッセージ キュー内のメッセージ データを定義する JSON オブジェクト。

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

| メンバー | 型 | 説明 |
| - | - | - |
| data | 8 ビット符号なし整数の配列 | ゲーム クライアントが他のゲーム クライアントに送信したい、Base64 エンコード済みデータ。この値はサーバーにとっては不透明です。 |
| senderXuid | 64 ビット符号なし整数 | メッセージを送信するプレイヤーの XBOX User ID。 |
| sequenceNumber | 32 ビット符号付き整数 | ゲーム メッセージのシーケンス番号。この値はサーバーによって割り当てられます。シーケンス番号は単調増加することが保証されていますが、連続していない場合があります。シーケンス番号はメッセージ キュー内で一意ですが、複数のメッセージ キュー間では一意ではありません。 |
| queueIndex | 32 ビット符号付き整数 | メッセージが属するセッション メッセージ キューのインデックス。指定可能な値は 0～3 です。 |
| timeStamp | DateTime | サーバーによってキュー内にゲーム メッセージが作成された時刻 (UTC)。 |

## サンプル JSON 構文

```json theme={null}
{
    "queueIndex": 0,
    "sequenceNumber": 5,
    "senderXuid": 65536,
    "timestamp": "2011-06-23T18:49:50Z",
    "data": null
}
    
```

## 関連項目

##### 親

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

##### リファレンス

[GameSession (JSON)](https://docs.xbox.com/ja-jp/reference/live/rest/json/json-gamesession.md)


## Related topics

- [GameSession (JSON)](https://docs.xbox.com/ja-jp/reference/live/rest/json/json-gamesession.md)
- [セッション ディレクトリ URI](https://docs.xbox.com/ja-jp/reference/live/rest/uri/sessiondirectory/atoc-reference-sessiondirectory.md)
- [JavaScript Object Notation (JSON) オブジェクト リファレンス](https://docs.xbox.com/ja-jp/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [GameClipsServiceErrorResponse (JSON)](https://docs.xbox.com/ja-jp/reference/live/rest/json/json-gameclipsserviceerrorresponse.md)
- [GET (/users/xuid({xuid})/inbox/{messageId})](https://docs.xbox.com/ja-jp/reference/live/rest/uri/users/uri-usersxuidinboxmessageidget.md)
