POST manage/commandLibrary
添加命令到库
Request Information
URI Parameters
None.
Body Parameters
DeviceCommandModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceComID |
修改时必要 |
integer |
None. |
| CateID |
设备分类ID |
integer |
None. |
| BrandModel |
品牌型号 |
string |
None. |
| Title | string |
None. |
|
| Icon | string |
None. |
|
| Command |
命令 |
string |
None. |
| CommType |
1开机 2关机。全关全开有可能用到 |
integer |
None. |
| Global |
针对CommType字段的,0 不加入全馆全开全关,1加入全馆开关 |
integer |
None. |
| GlobalArea |
针对CommType字段的,0 不加入区域全开全关,1加入区域全开全关 |
integer |
None. |
| PreConn |
预连接 0 不需要 1需要 |
integer |
None. |
| Grade |
0:针对设备本身(如投影仪,主机开机), 1:针对设备里的软件(如关机软件),2:串口服务器 3:融合软件,4:继电器 |
integer |
None. |
| Orderby |
用来管理开机有顺序,越大优先开机 |
integer |
None. |
| CloseOrderby |
关机等级,数值越大越迟关机 |
integer |
None. |
| Describe |
描述 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeviceComID": 1,
"CateID": 2,
"BrandModel": "sample string 3",
"Title": "sample string 4",
"Icon": "sample string 5",
"Command": "sample string 6",
"CommType": 7,
"Global": 8,
"GlobalArea": 9,
"PreConn": 10,
"Grade": 11,
"Orderby": 12,
"CloseOrderby": 13,
"Describe": "sample string 14"
}
application/xml, text/xml
Sample:
<DeviceCommandModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIVenueAPI.Models"> <BrandModel>sample string 3</BrandModel> <CateID>2</CateID> <CloseOrderby>13</CloseOrderby> <CommType>7</CommType> <Command>sample string 6</Command> <Describe>sample string 14</Describe> <DeviceComID>1</DeviceComID> <Global>8</Global> <GlobalArea>9</GlobalArea> <Grade>11</Grade> <Icon>sample string 5</Icon> <Orderby>12</Orderby> <PreConn>10</PreConn> <Title>sample string 4</Title> </DeviceCommandModel>
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.