POST api/ExceptionMessage/ExcdeptionListWhitoutCode

Get the alarm message directly from the user id or device id

Request Information

Body Parameters

ExceptionMessageListModel
NameDescriptionTypeAdditional information
Id

Id , UserId or DeviceId

integer

None.

PageNo

Inquire page number

integer

None.

PageCount

Number each page

integer

None.

TypeID

TypeId is 0 stands Id for user id, it is 1 stands Id for device id

integer

None.

DataCode

Alarm large type encoding [unused]

string

None.

UserID

user id get nickname

integer

None.

Exclude

Exclude alarm type Id, separated by commas

string

None.

MapType

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,
  "PageNo": 2,
  "PageCount": 3,
  "TypeID": 4,
  "DataCode": "sample string 5",
  "UserID": 6,
  "Exclude": "sample string 7",
  "MapType": "sample string 8",
  "Token": "sample string 9",
  "Language": "sample string 10",
  "AppId": "sample string 11"
}

application/xml, text/xml

Sample:
<ExceptionMessageListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 11</AppId>
  <Language>sample string 10</Language>
  <Token>sample string 9</Token>
  <DataCode>sample string 5</DataCode>
  <Exclude>sample string 7</Exclude>
  <Id>1</Id>
  <MapType>sample string 8</MapType>
  <PageCount>3</PageCount>
  <PageNo>2</PageNo>
  <TypeID>4</TypeID>
  <UserID>6</UserID>
</ExceptionMessageListModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. Indicates success
100. Indicates success but no data

ExceptionMessageListResult
NameDescriptionTypeAdditional information
Page

curpage

integer

None.

Total

Total number

integer

None.

Items

device information collection

Collection of ExceptionMessageListInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Page": 1,
  "Total": 2,
  "Items": [
    {
      "Avatar": "sample string 1",
      "Message": "sample string 2",
      "Nickname": "sample string 3",
      "DeviceName": "sample string 4",
      "ModelName": "sample string 5",
      "ExceptionID": 6,
      "SerialNumber": "sample string 7",
      "DeviceID": 8,
      "GeoFenceID": 9,
      "NotificationType": 10,
      "CreateDate": "sample string 11",
      "Deleted": 12,
      "GeoName": "sample string 13",
      "Lat": 14.0,
      "Lng": 15.0,
      "Address": "sample string 16",
      "DeviceDate": "sample string 17",
      "OLat": 18.0,
      "OLng": 19.0,
      "FenceNo": 20,
      "ExceptionName": "sample string 21"
    },
    {
      "Avatar": "sample string 1",
      "Message": "sample string 2",
      "Nickname": "sample string 3",
      "DeviceName": "sample string 4",
      "ModelName": "sample string 5",
      "ExceptionID": 6,
      "SerialNumber": "sample string 7",
      "DeviceID": 8,
      "GeoFenceID": 9,
      "NotificationType": 10,
      "CreateDate": "sample string 11",
      "Deleted": 12,
      "GeoName": "sample string 13",
      "Lat": 14.0,
      "Lng": 15.0,
      "Address": "sample string 16",
      "DeviceDate": "sample string 17",
      "OLat": 18.0,
      "OLng": 19.0,
      "FenceNo": 20,
      "ExceptionName": "sample string 21"
    }
  ],
  "State": 3
}

application/xml, text/xml

Sample:
<ExceptionMessageListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>3</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:ExceptionMessageListInfo>
      <d2p1:Address>sample string 16</d2p1:Address>
      <d2p1:Avatar>sample string 1</d2p1:Avatar>
      <d2p1:CreateDate>sample string 11</d2p1:CreateDate>
      <d2p1:Deleted>12</d2p1:Deleted>
      <d2p1:DeviceDate>sample string 17</d2p1:DeviceDate>
      <d2p1:DeviceID>8</d2p1:DeviceID>
      <d2p1:DeviceName>sample string 4</d2p1:DeviceName>
      <d2p1:ExceptionID>6</d2p1:ExceptionID>
      <d2p1:ExceptionName>sample string 21</d2p1:ExceptionName>
      <d2p1:FenceNo>20</d2p1:FenceNo>
      <d2p1:GeoFenceID>9</d2p1:GeoFenceID>
      <d2p1:GeoName>sample string 13</d2p1:GeoName>
      <d2p1:Lat>14</d2p1:Lat>
      <d2p1:Lng>15</d2p1:Lng>
      <d2p1:Message>sample string 2</d2p1:Message>
      <d2p1:ModelName>sample string 5</d2p1:ModelName>
      <d2p1:Nickname>sample string 3</d2p1:Nickname>
      <d2p1:NotificationType>10</d2p1:NotificationType>
      <d2p1:OLat>18</d2p1:OLat>
      <d2p1:OLng>19</d2p1:OLng>
      <d2p1:SerialNumber>sample string 7</d2p1:SerialNumber>
    </d2p1:ExceptionMessageListInfo>
    <d2p1:ExceptionMessageListInfo>
      <d2p1:Address>sample string 16</d2p1:Address>
      <d2p1:Avatar>sample string 1</d2p1:Avatar>
      <d2p1:CreateDate>sample string 11</d2p1:CreateDate>
      <d2p1:Deleted>12</d2p1:Deleted>
      <d2p1:DeviceDate>sample string 17</d2p1:DeviceDate>
      <d2p1:DeviceID>8</d2p1:DeviceID>
      <d2p1:DeviceName>sample string 4</d2p1:DeviceName>
      <d2p1:ExceptionID>6</d2p1:ExceptionID>
      <d2p1:ExceptionName>sample string 21</d2p1:ExceptionName>
      <d2p1:FenceNo>20</d2p1:FenceNo>
      <d2p1:GeoFenceID>9</d2p1:GeoFenceID>
      <d2p1:GeoName>sample string 13</d2p1:GeoName>
      <d2p1:Lat>14</d2p1:Lat>
      <d2p1:Lng>15</d2p1:Lng>
      <d2p1:Message>sample string 2</d2p1:Message>
      <d2p1:ModelName>sample string 5</d2p1:ModelName>
      <d2p1:Nickname>sample string 3</d2p1:Nickname>
      <d2p1:NotificationType>10</d2p1:NotificationType>
      <d2p1:OLat>18</d2p1:OLat>
      <d2p1:OLng>19</d2p1:OLng>
      <d2p1:SerialNumber>sample string 7</d2p1:SerialNumber>
    </d2p1:ExceptionMessageListInfo>
  </Items>
  <Page>1</Page>
  <Total>2</Total>
</ExceptionMessageListResult>