POST api/NS/NSList

Get Notification Setting

Request Information

Body Parameters

UserNSModel
NameDescriptionTypeAdditional information
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:
{
  "UserID": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

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

Response Information

Resource Description

State:
0. Success and has result
100.Success and no result

NSListResult
NameDescriptionTypeAdditional information
Items

Collection of NSModel

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "UserID": 1,
      "NotificationType": 2,
      "IsActive": true
    },
    {
      "UserID": 1,
      "NotificationType": 2,
      "IsActive": true
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<NSListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
    <d2p1:NSModel>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:NotificationType>2</d2p1:NotificationType>
      <d2p1:UserID>1</d2p1:UserID>
    </d2p1:NSModel>
    <d2p1:NSModel>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:NotificationType>2</d2p1:NotificationType>
      <d2p1:UserID>1</d2p1:UserID>
    </d2p1:NSModel>
  </Items>
</NSListResult>