POST api/Device/VoiceLists

Get a voice list

Request Information

Body Parameters

SetVoiceModel
NameDescriptionTypeAdditional information
SetStatus

integer

None.

SerialNumber

string

None.

Type

integer

None.

FileIds

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:
{
  "SetStatus": 1,
  "SerialNumber": "sample string 2",
  "Type": 3,
  "FileIds": "sample string 4",
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<SetVoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <FileIds>sample string 4</FileIds>
  <SerialNumber>sample string 2</SerialNumber>
  <SetStatus>1</SetStatus>
  <Type>3</Type>
</SetVoiceModel>

Response Information

Resource Description

GetVoiceListResult
NameDescriptionTypeAdditional information
SerialNumber

string

None.

Files

Collection of File

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "SerialNumber": "sample string 1",
  "Files": [
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "CamerId": 1,
      "FileName": "sample string 3",
      "FilePath": "sample string 4",
      "Type": 5,
      "FileExt": "sample string 6",
      "Created": "2018-12-19T13:37:37.1018359+08:00",
      "Lat": 1.0,
      "Lng": 1.0,
      "Speed": 1.0,
      "Course": 1,
      "Event": 1,
      "SerialNo": 1,
      "DeviceTime": "2018-12-19T13:37:37.1028125+08:00",
      "SourceType": 1,
      "Long": 1,
      "IsRead": true,
      "Deleted": true,
      "IdentityID": "sample string 7",
      "Context": "sample string 8",
      "FromUser": "sample string 9"
    },
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "CamerId": 1,
      "FileName": "sample string 3",
      "FilePath": "sample string 4",
      "Type": 5,
      "FileExt": "sample string 6",
      "Created": "2018-12-19T13:37:37.1018359+08:00",
      "Lat": 1.0,
      "Lng": 1.0,
      "Speed": 1.0,
      "Course": 1,
      "Event": 1,
      "SerialNo": 1,
      "DeviceTime": "2018-12-19T13:37:37.1028125+08:00",
      "SourceType": 1,
      "Long": 1,
      "IsRead": true,
      "Deleted": true,
      "IdentityID": "sample string 7",
      "Context": "sample string 8",
      "FromUser": "sample string 9"
    }
  ],
  "State": 2
}

application/xml, text/xml

Sample:
<GetVoiceListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Files xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.SoftDbAccess.Models">
    <d2p1:File>
      <d2p1:CamerId>1</d2p1:CamerId>
      <d2p1:Context>sample string 8</d2p1:Context>
      <d2p1:Course>1</d2p1:Course>
      <d2p1:Created>2018-12-19T13:37:37.1018359+08:00</d2p1:Created>
      <d2p1:Deleted>true</d2p1:Deleted>
      <d2p1:DeviceTime>2018-12-19T13:37:37.1028125+08:00</d2p1:DeviceTime>
      <d2p1:Event>1</d2p1:Event>
      <d2p1:FileExt>sample string 6</d2p1:FileExt>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileName>sample string 3</d2p1:FileName>
      <d2p1:FilePath>sample string 4</d2p1:FilePath>
      <d2p1:FromUser>sample string 9</d2p1:FromUser>
      <d2p1:IdentityID>sample string 7</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Lat>1</d2p1:Lat>
      <d2p1:Lng>1</d2p1:Lng>
      <d2p1:Long>1</d2p1:Long>
      <d2p1:SerialNo>1</d2p1:SerialNo>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>1</d2p1:SourceType>
      <d2p1:Speed>1</d2p1:Speed>
      <d2p1:Type>5</d2p1:Type>
    </d2p1:File>
    <d2p1:File>
      <d2p1:CamerId>1</d2p1:CamerId>
      <d2p1:Context>sample string 8</d2p1:Context>
      <d2p1:Course>1</d2p1:Course>
      <d2p1:Created>2018-12-19T13:37:37.1018359+08:00</d2p1:Created>
      <d2p1:Deleted>true</d2p1:Deleted>
      <d2p1:DeviceTime>2018-12-19T13:37:37.1028125+08:00</d2p1:DeviceTime>
      <d2p1:Event>1</d2p1:Event>
      <d2p1:FileExt>sample string 6</d2p1:FileExt>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileName>sample string 3</d2p1:FileName>
      <d2p1:FilePath>sample string 4</d2p1:FilePath>
      <d2p1:FromUser>sample string 9</d2p1:FromUser>
      <d2p1:IdentityID>sample string 7</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Lat>1</d2p1:Lat>
      <d2p1:Lng>1</d2p1:Lng>
      <d2p1:Long>1</d2p1:Long>
      <d2p1:SerialNo>1</d2p1:SerialNo>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>1</d2p1:SourceType>
      <d2p1:Speed>1</d2p1:Speed>
      <d2p1:Type>5</d2p1:Type>
    </d2p1:File>
  </Files>
  <SerialNumber>sample string 1</SerialNumber>
</GetVoiceListResult>