POST api/Push/SavePushSetting

Save the user push Settings

Request Information

Body Parameters

PushSettingModel
NameDescriptionTypeAdditional information
Id

User or device id

integer

None.

LoginType

Login type

integer

None.

Client

client-side

integer

None.

IsPush

Whether to push

boolean

None.

Sound

Push the sound

boolean

None.

Shock

Shake

boolean

None.

AllDayPush

Whether to open an account without interruption

boolean

None.

StartTime

starting time

string

None.

EndTime

ending time

string

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:
{
  "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

Statestatus code:
0. success

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

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>