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

关于设备的信息,包括其类型以及在其上处于活动状态的游戏。

## DeviceRecord

DeviceRecord 对象具有以下规范。

| 成员 | 类型 | 说明 |
| - | - | - |
| type | string | 设备的设备类型。可能包括 “D”、“Xbox360”、“MoLIVE”(Windows)、“WindowsPhone”、“WindowsPhone7” 以及 “PC”(G4WL)。如果类型未知(例如 iOS、Android 或嵌入网页浏览器中的游戏),则返回 “Web”。 |
| titles | [TitleRecord](/zh-CN/reference/live/rest/json/json-titlerecord) 数组 | 在此设备上处于活动状态的游戏列表。 |

## 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"
      }
    }]
  }]
    
```

## 另请参阅

##### 父主题

[JavaScript 对象表示法 (JSON) 对象参考](/zh-CN/reference/live/rest/json/atoc-xboxlivews-reference-json)

##### 参考


## Related topics

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