POST api/KWatch/PhoneSwitchStatus

Obtain the status of the switch state of the switch (special interface)

Request Information

Body Parameters

PhoneSwitchStatusModel
NameDescriptionTypeAdditional information
DeviceId

Update device deviceid

integer

None.

UserId

Operational user userid

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

Response Information

Resource Description

PhoneSwitchStatusResult
NameDescriptionTypeAdditional information
Switch

Refuse stranger calling switch

boolean

None.

Message

Result description

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Switch": true,
  "Message": "sample string 2",
  "State": 3
}

application/xml, text/xml

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