POST api/Device/DeviceListForGroup

List of device groups [engine]

Request Information

Body Parameters

DeviceListForGroupModel
NameDescriptionTypeAdditional information
UserId

User Id

integer

None.

Keyword

Search Keywords

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:
{
  "UserId": 1,
  "Keyword": "sample string 2",
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<DeviceListForGroupModel 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>
  <Keyword>sample string 2</Keyword>
  <UserId>1</UserId>
</DeviceListForGroupModel>

Response Information

Resource Description

Statestatus codeillustrate
0. success

DeviceListForGroupResult
NameDescriptionTypeAdditional information
DeviceList

device list

Collection of DeviceListForGroup

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DeviceList": [
    {
      "GroupName": "sample string 1",
      "GroupId": 2,
      "Items": [
        {
          "Id": 1,
          "Serialnumber": "sample string 2",
          "LicensePlateNo": "sample string 3",
          "Status": 4,
          "Model": 5,
          "DeviceName": "sample string 6"
        },
        {
          "Id": 1,
          "Serialnumber": "sample string 2",
          "LicensePlateNo": "sample string 3",
          "Status": 4,
          "Model": 5,
          "DeviceName": "sample string 6"
        }
      ]
    },
    {
      "GroupName": "sample string 1",
      "GroupId": 2,
      "Items": [
        {
          "Id": 1,
          "Serialnumber": "sample string 2",
          "LicensePlateNo": "sample string 3",
          "Status": 4,
          "Model": 5,
          "DeviceName": "sample string 6"
        },
        {
          "Id": 1,
          "Serialnumber": "sample string 2",
          "LicensePlateNo": "sample string 3",
          "Status": 4,
          "Model": 5,
          "DeviceName": "sample string 6"
        }
      ]
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<DeviceListForGroupResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <DeviceList xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:DeviceListForGroup>
      <d2p1:GroupId>2</d2p1:GroupId>
      <d2p1:GroupName>sample string 1</d2p1:GroupName>
      <d2p1:Items>
        <d2p1:DeviceForGroupInfo>
          <d2p1:DeviceName>sample string 6</d2p1:DeviceName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
          <d2p1:Model>5</d2p1:Model>
          <d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
          <d2p1:Status>4</d2p1:Status>
        </d2p1:DeviceForGroupInfo>
        <d2p1:DeviceForGroupInfo>
          <d2p1:DeviceName>sample string 6</d2p1:DeviceName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
          <d2p1:Model>5</d2p1:Model>
          <d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
          <d2p1:Status>4</d2p1:Status>
        </d2p1:DeviceForGroupInfo>
      </d2p1:Items>
    </d2p1:DeviceListForGroup>
    <d2p1:DeviceListForGroup>
      <d2p1:GroupId>2</d2p1:GroupId>
      <d2p1:GroupName>sample string 1</d2p1:GroupName>
      <d2p1:Items>
        <d2p1:DeviceForGroupInfo>
          <d2p1:DeviceName>sample string 6</d2p1:DeviceName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
          <d2p1:Model>5</d2p1:Model>
          <d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
          <d2p1:Status>4</d2p1:Status>
        </d2p1:DeviceForGroupInfo>
        <d2p1:DeviceForGroupInfo>
          <d2p1:DeviceName>sample string 6</d2p1:DeviceName>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:LicensePlateNo>sample string 3</d2p1:LicensePlateNo>
          <d2p1:Model>5</d2p1:Model>
          <d2p1:Serialnumber>sample string 2</d2p1:Serialnumber>
          <d2p1:Status>4</d2p1:Status>
        </d2p1:DeviceForGroupInfo>
      </d2p1:Items>
    </d2p1:DeviceListForGroup>
  </DeviceList>
</DeviceListForGroupResult>