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

# PresenceRecord (JSON)

> PresenceRecord (JSON)

# PresenceRecord (JSON)

1 人のユーザーのオンライン プレゼンスに関するデータ。

## PresenceRecord

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

| メンバー | 型 | 説明 |
| - | - | - |
| xuid | string | 対象ユーザーの XBOX User ID (XUID)。提供されるプレゼンス データはこのユーザーのものです。 |
| devices | [DeviceRecord](https://devdocs.xbox.com/ja-jp/reference/live/rest/json/json-devicerecord) の配列 | ユーザーのデバイス レコードのリスト。 |
| state | string | XBOX LIVE 上のユーザーのアクティビティ。指定可能な値: <ul><li>Online: ユーザーには少なくとも 1 つのデバイス レコードがあります。</li><li>Away: ユーザーは XBOX LIVE にサインインしていますが、いずれのタイトルでもアクティブではありません。</li><li>Offline: ユーザーはどのデバイスにも存在しません。</li></ul> |
| lastSeen | [LastSeenRecord](https://devdocs.xbox.com/ja-jp/reference/live/rest/json/json-lastseenrecord) | lastSeen 情報は、ユーザーに有効な DeviceRecord がない場合にのみ利用可能です。オブジェクトがキャッシュから削除された場合、永続的ストアが存在しないため、そのデータが返されない場合があります。 |

## サンプル JSON 構文

```json theme={null}
{
  xuid:"0123456789",
  state:"online",
  devices:
  [{
    type:"D",
    titles:
    [{
      id:"12341234",
      name:"Contoso 5",
      state:"active",
      placement:"fill",
      timestamp:"2012-09-17T07:15:23.4930000",
      activity:
      {
        richPresence:"Team Deathmatch on Nirvana"
      }
    },
    {
      id:"12341235",
      name:"Contoso Waypoint",
      timestamp:"2012-09-17T07:15:23.4930000",
      placement:"snapped",
      state:"active",
      activity:
      {
        richPresence:"Using radar"
      }
    }]
  },
  {
    type:"W8",
    titles:
    [{
      id:"23452345",
      name:"Contoso Gamehelp",
      state:"active",
      placement:"full",
      timestamp:"2012-09-17T07:15:23.4930000",
      activity:
      {
        richPresence:"Nirvana page"
      }
    }]
  }]
}

```

## 関連項目

##### 親

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

##### リファレンス

[POST (/users/batch)](https://devdocs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersbatchpost)

[GET (/users/me)](https://devdocs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersmeget)

[DELETE (/users/xuid({xuid})/devices/current/titles/current)](https://devdocs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersxuiddevicescurrenttitlescurrentdelete)

[GET (/users/xuid({xuid}))](https://devdocs.xbox.com/ja-jp/reference/live/rest/uri/presence/uri-usersxuidget)


## Related topics

- [XblSocialManagerPresenceRecordIsUserPlayingTitle](https://devdocs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerpresencerecordisuserplayingtitle.md)
- [Updating a user's Presence via REST](https://devdocs.xbox.com/services/xbox-services/community/presence/how-to/live-updating-presence-rest.md)
