POST api/Push/SavePushSetting
保存用户推送设置
Request Information
Body Parameters
PushSettingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
用户或设备 id |
integer |
None. |
| LoginType |
登录类型 |
integer |
None. |
| Client |
客户端 |
integer |
None. |
| IsPush |
是否推送 |
boolean |
None. |
| Sound |
推送声音 |
boolean |
None. |
| Shock |
震动 |
boolean |
None. |
| AllDayPush |
是否开户免打扰 |
boolean |
None. |
| StartTime |
开始时间 |
string |
None. |
| EndTime |
结束时间 |
string |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"LoginType": 2,
"Client": 3,
"IsPush": true,
"Sound": true,
"Shock": true,
"AllDayPush": true,
"StartTime": "sample string 8",
"EndTime": "sample string 9",
"Token": "sample string 10",
"Language": "sample string 11",
"AppId": "sample string 12"
}
application/xml, text/xml
Sample:
<PushSettingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 12</AppId> <Language>sample string 11</Language> <Token>sample string 10</Token> <AllDayPush>true</AllDayPush> <Client>3</Client> <EndTime>sample string 9</EndTime> <Id>1</Id> <IsPush>true</IsPush> <LoginType>2</LoginType> <Shock>true</Shock> <Sound>true</Sound> <StartTime>sample string 8</StartTime> </PushSettingModel>
Response Information
Resource Description
State状态码:
0. 成功
| Name | Description | Type | Additional 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>