POST manage/command
添加命令
Request Information
URI Parameters
None.
Body Parameters
CommandModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientID |
设备id |
integer |
None. |
| ClientIDS |
设备id (多个) |
Collection of integer |
None. |
| Describe |
命令描述 |
string |
None. |
| Type |
0:UDP 1:TCP |
integer |
None. |
| CommandID |
命令自增ID |
integer |
None. |
| DeviceComID |
命令库ID |
integer |
None. |
| DeviceComIDS |
命令库ID 多个 |
Collection of integer |
None. |
| IndexShow |
列表首页显示 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ClientID": 1,
"ClientIDS": [
1,
2
],
"Describe": "sample string 2",
"Type": 3,
"CommandID": 4,
"DeviceComID": 5,
"DeviceComIDS": [
1,
2
],
"IndexShow": 6
}
application/xml, text/xml
Sample:
<CommandModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIVenueAPI.Models">
<ClientID>1</ClientID>
<ClientIDS xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ClientIDS>
<CommandID>4</CommandID>
<Describe>sample string 2</Describe>
<DeviceComID>5</DeviceComID>
<DeviceComIDS xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</DeviceComIDS>
<IndexShow>6</IndexShow>
<Type>3</Type>
</CommandModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.