POST api/Command/CommandList

获取设备指令集合

Request Information

Body Parameters

DeviceCommandListModel
NameDescriptionTypeAdditional information
DeviceId

设备 id

integer

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<DeviceCommandListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <DeviceId>1</DeviceId>
</DeviceCommandListModel>

Response Information

Resource Description

State状态码说明:
0. 成功
100. 成功但无数据
1000. 设备不存在

DeviceCommandListResult
NameDescriptionTypeAdditional information
Items

某设备指令列表

Collection of Cmd

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Code": "sample string 1",
      "Name": "sample string 2",
      "CmdValue": "sample string 3",
      "SMSType": 4,
      "SMSContent": "sample string 5"
    },
    {
      "Code": "sample string 1",
      "Name": "sample string 2",
      "CmdValue": "sample string 3",
      "SMSType": 4,
      "SMSContent": "sample string 5"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<DeviceCommandListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items>
    <Cmd>
      <CmdValue>sample string 3</CmdValue>
      <Code>sample string 1</Code>
      <Name>sample string 2</Name>
      <SMSContent>sample string 5</SMSContent>
      <SMSType>4</SMSType>
    </Cmd>
    <Cmd>
      <CmdValue>sample string 3</CmdValue>
      <Code>sample string 1</Code>
      <Name>sample string 2</Name>
      <SMSContent>sample string 5</SMSContent>
      <SMSType>4</SMSType>
    </Cmd>
  </Items>
</DeviceCommandListResult>