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

# DeviceRecord (JSON)

> DeviceRecord (JSON)

# DeviceRecord (JSON)

裝置的相關資訊，包括其類型及其上作用中的遊戲。

<a id="ID4EN" />

## DeviceRecord

DeviceRecord 物件具有下列規格。

| 成員 | 類型 | 描述 |
| - | - | - |
| type | string | 裝置的裝置類型。可能的值包括 "D"、"Xbox360"、"MoLIVE" (Windows)、"WindowsPhone"、"WindowsPhone7" 及 "PC" (G4WL)。如果類型不明 (例如 iOS、Android 或內嵌於網頁瀏覽器中的遊戲)，則會傳回 "Web"。 |
| titles | [TitleRecord](/zh-TW/reference/live/rest/json/json-titlerecord) 陣列 | 此裝置上作用中的遊戲清單。 |

<a id="ID4EWB" />

## JSON 語法範例

```json theme={null}
[{
    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"
      }
    }]
  }]
    
```

<a id="ID4E6B" />

## 另請參閱

<a id="ID4EBC" />

##### 上層

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

<a id="ID4ENC" />

##### 參考


## Related topics

- [XblPresenceRecordGetDeviceRecords](/reference/live/xsapi-c/presence_c/functions/xblpresencerecordgetdevicerecords.md)
- [XblPresenceDeviceRecord](/reference/live/xsapi-c/presence_c/structs/xblpresencedevicerecord.md)
