POST api/KWatch/PhoneSwitchStatus
获取拒绝陌生来电开关状态 [专用接口]
Request Information
Body Parameters
PhoneSwitchStatusModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId |
更新设备的deviceid |
integer |
None. |
| UserId |
操作的用户 userid |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
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
| Name | Description | Type | Additional information |
|---|---|---|---|
| Switch |
拒绝陌生来电开关 |
boolean |
None. |
| Message |
结果描述 |
string |
None. |
| State |
状态码 |
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>