POST api/Files/VoiceFileListByTime

Voice chat records are obtained through the user

Request Information

Body Parameters

required parameter

VoiceFileListByTimeModel
NameDescriptionTypeAdditional information
pageCount

Number each page

integer

None.

pageNo

current page

integer

None.

UserId

user id

integer

None.

Type

integer

None.

Imei

Device imei

string

None.

Start

start time UTC

date

None.

End

end time UTC

date

None.

FileType

The file type 0, for the picture 1 for voice 0 for picture 1 for sound

integer

None.

GetTop

When time quantum is no data Take the first 100 pieces of data

boolean

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:
{
  "pageCount": 1,
  "pageNo": 2,
  "UserId": 3,
  "Type": 4,
  "Imei": "sample string 5",
  "Start": "2018-10-19T14:41:32.1795474+08:00",
  "End": "2018-10-19T14:41:32.1795474+08:00",
  "FileType": 8,
  "GetTop": true,
  "Token": "sample string 10",
  "Language": "sample string 11",
  "AppId": "sample string 12"
}

application/xml, text/xml

Sample:
<VoiceFileListByTimeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 12</AppId>
  <Language>sample string 11</Language>
  <Token>sample string 10</Token>
  <End>2018-10-19T14:41:32.1795474+08:00</End>
  <FileType>8</FileType>
  <GetTop>true</GetTop>
  <Imei>sample string 5</Imei>
  <Start>2018-10-19T14:41:32.1795474+08:00</Start>
  <Type>4</Type>
  <UserId>3</UserId>
  <pageCount>1</pageCount>
  <pageNo>2</pageNo>
</VoiceFileListByTimeModel>

Response Information

Resource Description

State status illustrate:
0. success
1100. device does not exist

VoiceFileListByTimeResult
NameDescriptionTypeAdditional information
Items

Voice file collection

Collection of VoiceFile

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "FileUrl": "sample string 3",
      "Lng": 4.0,
      "Lat": 5.0,
      "Created": "sample string 6",
      "SourceType": 7,
      "Long": 8,
      "Type": 9,
      "Content": "sample string 10",
      "IsRead": true,
      "IdentityID": "sample string 12",
      "Avatar": "sample string 13",
      "UserId": 1,
      "Address": "sample string 14",
      "SendName": "sample string 15"
    },
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "FileUrl": "sample string 3",
      "Lng": 4.0,
      "Lat": 5.0,
      "Created": "sample string 6",
      "SourceType": 7,
      "Long": 8,
      "Type": 9,
      "Content": "sample string 10",
      "IsRead": true,
      "IdentityID": "sample string 12",
      "Avatar": "sample string 13",
      "UserId": 1,
      "Address": "sample string 14",
      "SendName": "sample string 15"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<VoiceFileListByTimeResult 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.ViewModel">
    <d2p1:VoiceFile>
      <d2p1:Address>sample string 14</d2p1:Address>
      <d2p1:Avatar>sample string 13</d2p1:Avatar>
      <d2p1:Content>sample string 10</d2p1:Content>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileUrl>sample string 3</d2p1:FileUrl>
      <d2p1:IdentityID>sample string 12</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Lat>5</d2p1:Lat>
      <d2p1:Lng>4</d2p1:Lng>
      <d2p1:Long>8</d2p1:Long>
      <d2p1:SendName>sample string 15</d2p1:SendName>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>7</d2p1:SourceType>
      <d2p1:Type>9</d2p1:Type>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:VoiceFile>
    <d2p1:VoiceFile>
      <d2p1:Address>sample string 14</d2p1:Address>
      <d2p1:Avatar>sample string 13</d2p1:Avatar>
      <d2p1:Content>sample string 10</d2p1:Content>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileUrl>sample string 3</d2p1:FileUrl>
      <d2p1:IdentityID>sample string 12</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Lat>5</d2p1:Lat>
      <d2p1:Lng>4</d2p1:Lng>
      <d2p1:Long>8</d2p1:Long>
      <d2p1:SendName>sample string 15</d2p1:SendName>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>7</d2p1:SourceType>
      <d2p1:Type>9</d2p1:Type>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:VoiceFile>
  </Items>
</VoiceFileListByTimeResult>