POST api/Device/ListDevice
设备列表[车机专用]
Request Information
Body Parameters
DeviceListModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id , UserId 或 DeviceId |
integer |
None. |
| Type |
在线状态,0 是全部。1 为在线 , 2为离线 |
integer |
None. |
| PageNo |
查询的页数 |
integer |
None. |
| PageCount |
每页条数 |
integer |
None. |
| LoginType |
登录类型 |
integer |
None. |
| MapType |
地图类型 |
string |
None. |
| LastTime |
上次获取时间 |
date |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Type": 2,
"PageNo": 3,
"PageCount": 4,
"LoginType": 5,
"MapType": "sample string 6",
"LastTime": "2025-12-12T05:25:43.4141227+08:00",
"Token": "sample string 8",
"Language": "sample string 9",
"AppId": "sample string 10"
}
application/xml, text/xml
Sample:
<DeviceListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 10</AppId> <Language>sample string 9</Language> <Token>sample string 8</Token> <Id>1</Id> <LastTime>2025-12-12T05:25:43.4141227+08:00</LastTime> <LoginType>5</LoginType> <MapType>sample string 6</MapType> <PageCount>4</PageCount> <PageNo>3</PageNo> <Type>2</Type> </DeviceListModel>
Response Information
Resource Description
State 状态码说明:
0. 表示成功
100. 表示请求正确但无数据
2002. 参数不正确
| Name | Description | Type | Additional information |
|---|---|---|---|
| Page |
当前页数 |
integer |
None. |
| Total |
总数量 |
integer |
None. |
| Items |
设备信息集合 |
Collection of DeviceListInfo |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Page": 1,
"Total": 2,
"Items": [
{
"Id": 1,
"SerialNumber": "sample string 2",
"Name": "sample string 3",
"GroupId": 4,
"CarNo": "sample string 5",
"Status": 6,
"AvatarImage": "sample string 7",
"Icon": "sample string 8",
"Latitude": 9.0,
"Longitude": 10.0,
"Acc": 11,
"Course": 12.0,
"IsShowAcc": 13,
"Type": "sample string 14",
"TypeValue": 15,
"IsCarDevice": 16,
"Logo": "sample string 17",
"Sim": "sample string 18",
"Model": 19,
"Battery": 20,
"ServerUtcDate": "2025-12-12T05:25:43.4199823+08:00",
"DeviceUtcDate": "2025-12-12T05:25:43.4199823+08:00",
"Distance": 23.0,
"Speed": 24.0
},
{
"Id": 1,
"SerialNumber": "sample string 2",
"Name": "sample string 3",
"GroupId": 4,
"CarNo": "sample string 5",
"Status": 6,
"AvatarImage": "sample string 7",
"Icon": "sample string 8",
"Latitude": 9.0,
"Longitude": 10.0,
"Acc": 11,
"Course": 12.0,
"IsShowAcc": 13,
"Type": "sample string 14",
"TypeValue": 15,
"IsCarDevice": 16,
"Logo": "sample string 17",
"Sim": "sample string 18",
"Model": 19,
"Battery": 20,
"ServerUtcDate": "2025-12-12T05:25:43.4199823+08:00",
"DeviceUtcDate": "2025-12-12T05:25:43.4199823+08:00",
"Distance": 23.0,
"Speed": 24.0
}
],
"State": 3
}
application/xml, text/xml
Sample:
<DeviceListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
<State>3</State>
<Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
<d2p1:DeviceListInfo>
<d2p1:Acc>11</d2p1:Acc>
<d2p1:AvatarImage>sample string 7</d2p1:AvatarImage>
<d2p1:Battery>20</d2p1:Battery>
<d2p1:CarNo>sample string 5</d2p1:CarNo>
<d2p1:Course>12</d2p1:Course>
<d2p1:DeviceUtcDate>2025-12-12T05:25:43.4199823+08:00</d2p1:DeviceUtcDate>
<d2p1:Distance>23</d2p1:Distance>
<d2p1:GroupId>4</d2p1:GroupId>
<d2p1:Icon>sample string 8</d2p1:Icon>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsCarDevice>16</d2p1:IsCarDevice>
<d2p1:IsShowAcc>13</d2p1:IsShowAcc>
<d2p1:Latitude>9</d2p1:Latitude>
<d2p1:Logo>sample string 17</d2p1:Logo>
<d2p1:Longitude>10</d2p1:Longitude>
<d2p1:Model>19</d2p1:Model>
<d2p1:Name>sample string 3</d2p1:Name>
<d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
<d2p1:ServerUtcDate>2025-12-12T05:25:43.4199823+08:00</d2p1:ServerUtcDate>
<d2p1:Sim>sample string 18</d2p1:Sim>
<d2p1:Speed>24</d2p1:Speed>
<d2p1:Status>6</d2p1:Status>
<d2p1:Type>sample string 14</d2p1:Type>
<d2p1:TypeValue>15</d2p1:TypeValue>
</d2p1:DeviceListInfo>
<d2p1:DeviceListInfo>
<d2p1:Acc>11</d2p1:Acc>
<d2p1:AvatarImage>sample string 7</d2p1:AvatarImage>
<d2p1:Battery>20</d2p1:Battery>
<d2p1:CarNo>sample string 5</d2p1:CarNo>
<d2p1:Course>12</d2p1:Course>
<d2p1:DeviceUtcDate>2025-12-12T05:25:43.4199823+08:00</d2p1:DeviceUtcDate>
<d2p1:Distance>23</d2p1:Distance>
<d2p1:GroupId>4</d2p1:GroupId>
<d2p1:Icon>sample string 8</d2p1:Icon>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsCarDevice>16</d2p1:IsCarDevice>
<d2p1:IsShowAcc>13</d2p1:IsShowAcc>
<d2p1:Latitude>9</d2p1:Latitude>
<d2p1:Logo>sample string 17</d2p1:Logo>
<d2p1:Longitude>10</d2p1:Longitude>
<d2p1:Model>19</d2p1:Model>
<d2p1:Name>sample string 3</d2p1:Name>
<d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
<d2p1:ServerUtcDate>2025-12-12T05:25:43.4199823+08:00</d2p1:ServerUtcDate>
<d2p1:Sim>sample string 18</d2p1:Sim>
<d2p1:Speed>24</d2p1:Speed>
<d2p1:Status>6</d2p1:Status>
<d2p1:Type>sample string 14</d2p1:Type>
<d2p1:TypeValue>15</d2p1:TypeValue>
</d2p1:DeviceListInfo>
</Items>
<Page>1</Page>
<Total>2</Total>
</DeviceListResult>