POST api/Push/GetPushSetting

获取推送设置

Request Information

Body Parameters

获取参数设置信息, 根据登录类型和Id来获取推送配置信息

GetPushModel
NameDescriptionTypeAdditional information
Id

Id

integer

None.

LoginType

登录类型

integer

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<GetPushModel 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>
  <Id>1</Id>
  <LoginType>2</LoginType>
</GetPushModel>

Response Information

Resource Description

返回一个推送配置信息
State状态码:
0. 表示成功
6000. 无推送设置

GetPushResult
NameDescriptionTypeAdditional information
Item

设置信息

PushSetting

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": {
    "Id": 1,
    "LoginType": 2,
    "Client": 3,
    "IsPush": true,
    "Sound": true,
    "Shock": true,
    "AllDayPush": true,
    "StartTime": "sample string 8",
    "EndTime": "sample string 9"
  },
  "State": 1
}

application/xml, text/xml

Sample:
<GetPushResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:AllDayPush>true</d2p1:AllDayPush>
    <d2p1:Client>3</d2p1:Client>
    <d2p1:EndTime>sample string 9</d2p1:EndTime>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:IsPush>true</d2p1:IsPush>
    <d2p1:LoginType>2</d2p1:LoginType>
    <d2p1:Shock>true</d2p1:Shock>
    <d2p1:Sound>true</d2p1:Sound>
    <d2p1:StartTime>sample string 8</d2p1:StartTime>
  </Item>
</GetPushResult>