POST api/Geofence/ChangeFenceStatus

修改围栏使用状态

Request Information

Body Parameters

请求参数

FenceStatusChangeModel
NameDescriptionTypeAdditional information
FenceId

围栏 id

integer

None.

InUse

使用状态 true 为使用 ,false 为关闭

boolean

None.

DeviceId

设备 id

integer

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FenceId": 1,
  "InUse": true,
  "DeviceId": 3,
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

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

Response Information

Resource Description

State 状态码:
0. 表示成功
1100. 表示设备不存在
4000. 设置失败

NormalResult
NameDescriptionTypeAdditional information
Message

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

string

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 2
}

application/xml, text/xml

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