POST api/Device/ListDevice

Equipment list[The locomotive dedicated]

Request Information

Body Parameters

DeviceListModel
NameDescriptionTypeAdditional information
Id

Id , UserId or DeviceId

integer

None.

Type

Online status,0 is all 1 is online , 2 is offline

integer

None.

PageNo

inquired page number

integer

None.

PageCount

number each page

integer

None.

LoginType

Login type

integer

None.

MapType

map style

string

None.

LastTime

last obtain time

date

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,
  "Type": 2,
  "PageNo": 3,
  "PageCount": 4,
  "LoginType": 5,
  "MapType": "sample string 6",
  "LastTime": "2018-10-22T01:05:51.7674162+08:00",
  "Token": "sample string 8",
  "Language": "sample string 9",
  "AppId": "sample string 10"
}

application/xml, text/xml

Sample:
<DeviceListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 10</AppId>
  <Language>sample string 9</Language>
  <Token>sample string 8</Token>
  <Id>1</Id>
  <LastTime>2018-10-22T01:05:51.7674162+08:00</LastTime>
  <LoginType>5</LoginType>
  <MapType>sample string 6</MapType>
  <PageCount>4</PageCount>
  <PageNo>3</PageNo>
  <Type>2</Type>
</DeviceListModel>

Response Information

Resource Description

State status codeillustrate:
0. Indicates success
100. The claim is correct but numerous
2002. Incorrect parameter

DeviceListResult
NameDescriptionTypeAdditional information
Page

private int current page

integer

None.

Total

total quantity

integer

None.

Items

Device information set

Collection of DeviceListInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Page": 1,
  "Total": 2,
  "Items": [
    {
      "Id": 1,
      "SerialNumber": "sample string 2",
      "Name": "sample string 3",
      "GroupId": 4,
      "CarNo": "sample string 5",
      "Status": 6,
      "AvatarImage": "sample string 7",
      "Icon": "sample string 8",
      "Latitude": 9.0,
      "Longitude": 10.0,
      "OLat": 11.0,
      "OLng": 12.0,
      "Acc": 13,
      "Course": 14.0,
      "IsShowAcc": 15,
      "Type": "sample string 16",
      "TypeValue": 17,
      "IsCarDevice": 18,
      "Logo": "sample string 19",
      "Sim": "sample string 20",
      "Model": 21,
      "Battery": 22,
      "ServerUtcDate": "2018-10-22T01:05:51.8103822+08:00",
      "DeviceUtcDate": "2018-10-22T01:05:51.8103822+08:00",
      "Distance": 25.0,
      "Speed": 26.0,
      "IccId": "sample string 27",
      "SOSPhone1": "sample string 28",
      "SOSPhone2": "sample string 29"
    },
    {
      "Id": 1,
      "SerialNumber": "sample string 2",
      "Name": "sample string 3",
      "GroupId": 4,
      "CarNo": "sample string 5",
      "Status": 6,
      "AvatarImage": "sample string 7",
      "Icon": "sample string 8",
      "Latitude": 9.0,
      "Longitude": 10.0,
      "OLat": 11.0,
      "OLng": 12.0,
      "Acc": 13,
      "Course": 14.0,
      "IsShowAcc": 15,
      "Type": "sample string 16",
      "TypeValue": 17,
      "IsCarDevice": 18,
      "Logo": "sample string 19",
      "Sim": "sample string 20",
      "Model": 21,
      "Battery": 22,
      "ServerUtcDate": "2018-10-22T01:05:51.8103822+08:00",
      "DeviceUtcDate": "2018-10-22T01:05:51.8103822+08:00",
      "Distance": 25.0,
      "Speed": 26.0,
      "IccId": "sample string 27",
      "SOSPhone1": "sample string 28",
      "SOSPhone2": "sample string 29"
    }
  ],
  "State": 3
}

application/xml, text/xml

Sample:
<DeviceListResult 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:DeviceListInfo>
      <d2p1:Acc>13</d2p1:Acc>
      <d2p1:AvatarImage>sample string 7</d2p1:AvatarImage>
      <d2p1:Battery>22</d2p1:Battery>
      <d2p1:CarNo>sample string 5</d2p1:CarNo>
      <d2p1:Course>14</d2p1:Course>
      <d2p1:DeviceUtcDate>2018-10-22T01:05:51.8103822+08:00</d2p1:DeviceUtcDate>
      <d2p1:Distance>25</d2p1:Distance>
      <d2p1:GroupId>4</d2p1:GroupId>
      <d2p1:IccId>sample string 27</d2p1:IccId>
      <d2p1:Icon>sample string 8</d2p1:Icon>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsCarDevice>18</d2p1:IsCarDevice>
      <d2p1:IsShowAcc>15</d2p1:IsShowAcc>
      <d2p1:Latitude>9</d2p1:Latitude>
      <d2p1:Logo>sample string 19</d2p1:Logo>
      <d2p1:Longitude>10</d2p1:Longitude>
      <d2p1:Model>21</d2p1:Model>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:OLat>11</d2p1:OLat>
      <d2p1:OLng>12</d2p1:OLng>
      <d2p1:SOSPhone1>sample string 28</d2p1:SOSPhone1>
      <d2p1:SOSPhone2>sample string 29</d2p1:SOSPhone2>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:ServerUtcDate>2018-10-22T01:05:51.8103822+08:00</d2p1:ServerUtcDate>
      <d2p1:Sim>sample string 20</d2p1:Sim>
      <d2p1:Speed>26</d2p1:Speed>
      <d2p1:Status>6</d2p1:Status>
      <d2p1:Type>sample string 16</d2p1:Type>
      <d2p1:TypeValue>17</d2p1:TypeValue>
    </d2p1:DeviceListInfo>
    <d2p1:DeviceListInfo>
      <d2p1:Acc>13</d2p1:Acc>
      <d2p1:AvatarImage>sample string 7</d2p1:AvatarImage>
      <d2p1:Battery>22</d2p1:Battery>
      <d2p1:CarNo>sample string 5</d2p1:CarNo>
      <d2p1:Course>14</d2p1:Course>
      <d2p1:DeviceUtcDate>2018-10-22T01:05:51.8103822+08:00</d2p1:DeviceUtcDate>
      <d2p1:Distance>25</d2p1:Distance>
      <d2p1:GroupId>4</d2p1:GroupId>
      <d2p1:IccId>sample string 27</d2p1:IccId>
      <d2p1:Icon>sample string 8</d2p1:Icon>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsCarDevice>18</d2p1:IsCarDevice>
      <d2p1:IsShowAcc>15</d2p1:IsShowAcc>
      <d2p1:Latitude>9</d2p1:Latitude>
      <d2p1:Logo>sample string 19</d2p1:Logo>
      <d2p1:Longitude>10</d2p1:Longitude>
      <d2p1:Model>21</d2p1:Model>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:OLat>11</d2p1:OLat>
      <d2p1:OLng>12</d2p1:OLng>
      <d2p1:SOSPhone1>sample string 28</d2p1:SOSPhone1>
      <d2p1:SOSPhone2>sample string 29</d2p1:SOSPhone2>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:ServerUtcDate>2018-10-22T01:05:51.8103822+08:00</d2p1:ServerUtcDate>
      <d2p1:Sim>sample string 20</d2p1:Sim>
      <d2p1:Speed>26</d2p1:Speed>
      <d2p1:Status>6</d2p1:Status>
      <d2p1:Type>sample string 16</d2p1:Type>
      <d2p1:TypeValue>17</d2p1:TypeValue>
    </d2p1:DeviceListInfo>
  </Items>
  <Page>1</Page>
  <Total>2</Total>
</DeviceListResult>