POST api/Device/DeviceListForGroup
设备分组列表[车机]
Request Information
Body Parameters
DeviceListForGroupModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
用户Id |
integer |
None. |
| Keyword |
搜索关键字 |
string |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Keyword": "sample string 2",
"Token": "sample string 3",
"Language": "sample string 4",
"AppId": "sample string 5"
}
application/xml, text/xml
Sample:
<DeviceListForGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 5</AppId> <Language>sample string 4</Language> <Token>sample string 3</Token> <Keyword>sample string 2</Keyword> <UserId>1</UserId> </DeviceListForGroupModel>
Response Information
Resource Description
State状态码说明
0. 成功
| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceList |
设备列表 |
Collection of DeviceListForGroup |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"DeviceList": [
{
"GroupName": "sample string 1",
"GroupId": 2,
"Items": [
{
"Id": 1,
"Serialnumber": "sample string 2",
"LicensePlateNo": "sample string 3",
"Status": 4,
"Model": 5,
"DeviceName": "sample string 6"
},
{
"Id": 1,
"Serialnumber": "sample string 2",
"LicensePlateNo": "sample string 3",
"Status": 4,
"Model": 5,
"DeviceName": "sample string 6"
}
]
},
{
"GroupName": "sample string 1",
"GroupId": 2,
"Items": [
{
"Id": 1,
"Serialnumber": "sample string 2",
"LicensePlateNo": "sample string 3",
"Status": 4,
"Model": 5,
"DeviceName": "sample string 6"
},
{
"Id": 1,
"Serialnumber": "sample string 2",
"LicensePlateNo": "sample string 3",
"Status": 4,
"Model": 5,
"DeviceName": "sample string 6"
}
]
}
],
"State": 1
}
application/xml, text/xml
Sample:
<DeviceListForGroupResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
<State>1</State>
<DeviceList xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
<d2p1:DeviceListForGroup>
<d2p1:GroupId>2</d2p1:GroupId>
<d2p1:GroupName>sample string 1</d2p1:GroupName>
<d2p1:Items>
<d2p1:DeviceForGroupInfo>
<d2p1:DeviceName>sample string 6</d2p1:DeviceName>
<d2p1:Id>1</d2p1:Id>
<d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
<d2p1:Model>5</d2p1:Model>
<d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
<d2p1:Status>4</d2p1:Status>
</d2p1:DeviceForGroupInfo>
<d2p1:DeviceForGroupInfo>
<d2p1:DeviceName>sample string 6</d2p1:DeviceName>
<d2p1:Id>1</d2p1:Id>
<d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
<d2p1:Model>5</d2p1:Model>
<d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
<d2p1:Status>4</d2p1:Status>
</d2p1:DeviceForGroupInfo>
</d2p1:Items>
</d2p1:DeviceListForGroup>
<d2p1:DeviceListForGroup>
<d2p1:GroupId>2</d2p1:GroupId>
<d2p1:GroupName>sample string 1</d2p1:GroupName>
<d2p1:Items>
<d2p1:DeviceForGroupInfo>
<d2p1:DeviceName>sample string 6</d2p1:DeviceName>
<d2p1:Id>1</d2p1:Id>
<d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
<d2p1:Model>5</d2p1:Model>
<d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
<d2p1:Status>4</d2p1:Status>
</d2p1:DeviceForGroupInfo>
<d2p1:DeviceForGroupInfo>
<d2p1:DeviceName>sample string 6</d2p1:DeviceName>
<d2p1:Id>1</d2p1:Id>
<d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
<d2p1:Model>5</d2p1:Model>
<d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
<d2p1:Status>4</d2p1:Status>
</d2p1:DeviceForGroupInfo>
</d2p1:Items>
</d2p1:DeviceListForGroup>
</DeviceList>
</DeviceListForGroupResult>