POST api/Device/SetAndGetLowBattery

设置低电报警开关开关 0成功,1失败

Request Information

Body Parameters

SetVoiceModel
NameDescriptionTypeAdditional information
SetStatus

integer

None.

SerialNumber

string

None.

Type

integer

None.

FileIds

string

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SetStatus": 1,
  "SerialNumber": "sample string 2",
  "Type": 3,
  "FileIds": "sample string 4",
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<SetVoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <FileIds>sample string 4</FileIds>
  <SerialNumber>sample string 2</SerialNumber>
  <SetStatus>1</SetStatus>
  <Type>3</Type>
</SetVoiceModel>

Response Information

Resource Description

LowBatterResult
NameDescriptionTypeAdditional information
Status

消息 [大多数情况下可通过该消息做为提示语]

integer

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "State": 2
}

application/xml, text/xml

Sample:
<LowBatterResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Status>1</Status>
</LowBatterResult>