POST api/Files/FileListByTime

Take the time to get the list of files and return them by date

Request Information

Body Parameters

FileListByTimeModel
NameDescriptionTypeAdditional information
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:
{
  "Imei": "sample string 1",
  "Start": "2018-10-21T02:07:54.3879426+08:00",
  "End": "2018-10-21T02:07:54.3879426+08:00",
  "FileType": 4,
  "GetTop": true,
  "Token": "sample string 6",
  "Language": "sample string 7",
  "AppId": "sample string 8"
}

application/xml, text/xml

Sample:
<FileListByTimeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 8</AppId>
  <Language>sample string 7</Language>
  <Token>sample string 6</Token>
  <End>2018-10-21T02:07:54.3879426+08:00</End>
  <FileType>4</FileType>
  <GetTop>true</GetTop>
  <Imei>sample string 1</Imei>
  <Start>2018-10-21T02:07:54.3879426+08:00</Start>
</FileListByTimeModel>

Response Information

Resource Description

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

FileListByTimeResult
NameDescriptionTypeAdditional information
FileUrl

string

None.

Items

Collection of DayFile

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "FileUrl": "sample string 1",
  "Items": [
    {
      "Date": "sample string 1",
      "Items": [
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "CamerId": 3,
          "FileName": "sample string 4",
          "FilePath": "sample string 5",
          "Type": 6,
          "FileExt": "sample string 7",
          "Event": 8,
          "Created": "2018-10-21T02:07:54.396732+08:00",
          "Lat": 10.0,
          "Lng": 11.0,
          "Speed": 12.0,
          "Course": 13,
          "SerialNo": 14,
          "Long": 15,
          "IsRead": true,
          "SourceType": 17,
          "IdentityID": "sample string 18",
          "Context": "sample string 19",
          "UserId": 20,
          "EIndex": 21,
          "Url": "sample string 22",
          "SendName": "sample string 23"
        },
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "CamerId": 3,
          "FileName": "sample string 4",
          "FilePath": "sample string 5",
          "Type": 6,
          "FileExt": "sample string 7",
          "Event": 8,
          "Created": "2018-10-21T02:07:54.396732+08:00",
          "Lat": 10.0,
          "Lng": 11.0,
          "Speed": 12.0,
          "Course": 13,
          "SerialNo": 14,
          "Long": 15,
          "IsRead": true,
          "SourceType": 17,
          "IdentityID": "sample string 18",
          "Context": "sample string 19",
          "UserId": 20,
          "EIndex": 21,
          "Url": "sample string 22",
          "SendName": "sample string 23"
        }
      ]
    },
    {
      "Date": "sample string 1",
      "Items": [
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "CamerId": 3,
          "FileName": "sample string 4",
          "FilePath": "sample string 5",
          "Type": 6,
          "FileExt": "sample string 7",
          "Event": 8,
          "Created": "2018-10-21T02:07:54.396732+08:00",
          "Lat": 10.0,
          "Lng": 11.0,
          "Speed": 12.0,
          "Course": 13,
          "SerialNo": 14,
          "Long": 15,
          "IsRead": true,
          "SourceType": 17,
          "IdentityID": "sample string 18",
          "Context": "sample string 19",
          "UserId": 20,
          "EIndex": 21,
          "Url": "sample string 22",
          "SendName": "sample string 23"
        },
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "CamerId": 3,
          "FileName": "sample string 4",
          "FilePath": "sample string 5",
          "Type": 6,
          "FileExt": "sample string 7",
          "Event": 8,
          "Created": "2018-10-21T02:07:54.396732+08:00",
          "Lat": 10.0,
          "Lng": 11.0,
          "Speed": 12.0,
          "Course": 13,
          "SerialNo": 14,
          "Long": 15,
          "IsRead": true,
          "SourceType": 17,
          "IdentityID": "sample string 18",
          "Context": "sample string 19",
          "UserId": 20,
          "EIndex": 21,
          "Url": "sample string 22",
          "SendName": "sample string 23"
        }
      ]
    }
  ],
  "State": 2
}

application/xml, text/xml

Sample:
<FileListByTimeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <FileUrl>sample string 1</FileUrl>
  <Items>
    <DayFile>
      <Date>sample string 1</Date>
      <Items xmlns:d4p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
        <d4p1:DeviceFile>
          <d4p1:CamerId>3</d4p1:CamerId>
          <d4p1:Context>sample string 19</d4p1:Context>
          <d4p1:Course>13</d4p1:Course>
          <d4p1:Created>2018-10-21T02:07:54.396732+08:00</d4p1:Created>
          <d4p1:EIndex>21</d4p1:EIndex>
          <d4p1:Event>8</d4p1:Event>
          <d4p1:FileExt>sample string 7</d4p1:FileExt>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 4</d4p1:FileName>
          <d4p1:FilePath>sample string 5</d4p1:FilePath>
          <d4p1:IdentityID>sample string 18</d4p1:IdentityID>
          <d4p1:IsRead>true</d4p1:IsRead>
          <d4p1:Lat>10</d4p1:Lat>
          <d4p1:Lng>11</d4p1:Lng>
          <d4p1:Long>15</d4p1:Long>
          <d4p1:SendName>sample string 23</d4p1:SendName>
          <d4p1:SerialNo>14</d4p1:SerialNo>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:SourceType>17</d4p1:SourceType>
          <d4p1:Speed>12</d4p1:Speed>
          <d4p1:Type>6</d4p1:Type>
          <d4p1:Url>sample string 22</d4p1:Url>
          <d4p1:UserId>20</d4p1:UserId>
        </d4p1:DeviceFile>
        <d4p1:DeviceFile>
          <d4p1:CamerId>3</d4p1:CamerId>
          <d4p1:Context>sample string 19</d4p1:Context>
          <d4p1:Course>13</d4p1:Course>
          <d4p1:Created>2018-10-21T02:07:54.396732+08:00</d4p1:Created>
          <d4p1:EIndex>21</d4p1:EIndex>
          <d4p1:Event>8</d4p1:Event>
          <d4p1:FileExt>sample string 7</d4p1:FileExt>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 4</d4p1:FileName>
          <d4p1:FilePath>sample string 5</d4p1:FilePath>
          <d4p1:IdentityID>sample string 18</d4p1:IdentityID>
          <d4p1:IsRead>true</d4p1:IsRead>
          <d4p1:Lat>10</d4p1:Lat>
          <d4p1:Lng>11</d4p1:Lng>
          <d4p1:Long>15</d4p1:Long>
          <d4p1:SendName>sample string 23</d4p1:SendName>
          <d4p1:SerialNo>14</d4p1:SerialNo>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:SourceType>17</d4p1:SourceType>
          <d4p1:Speed>12</d4p1:Speed>
          <d4p1:Type>6</d4p1:Type>
          <d4p1:Url>sample string 22</d4p1:Url>
          <d4p1:UserId>20</d4p1:UserId>
        </d4p1:DeviceFile>
      </Items>
    </DayFile>
    <DayFile>
      <Date>sample string 1</Date>
      <Items xmlns:d4p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
        <d4p1:DeviceFile>
          <d4p1:CamerId>3</d4p1:CamerId>
          <d4p1:Context>sample string 19</d4p1:Context>
          <d4p1:Course>13</d4p1:Course>
          <d4p1:Created>2018-10-21T02:07:54.396732+08:00</d4p1:Created>
          <d4p1:EIndex>21</d4p1:EIndex>
          <d4p1:Event>8</d4p1:Event>
          <d4p1:FileExt>sample string 7</d4p1:FileExt>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 4</d4p1:FileName>
          <d4p1:FilePath>sample string 5</d4p1:FilePath>
          <d4p1:IdentityID>sample string 18</d4p1:IdentityID>
          <d4p1:IsRead>true</d4p1:IsRead>
          <d4p1:Lat>10</d4p1:Lat>
          <d4p1:Lng>11</d4p1:Lng>
          <d4p1:Long>15</d4p1:Long>
          <d4p1:SendName>sample string 23</d4p1:SendName>
          <d4p1:SerialNo>14</d4p1:SerialNo>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:SourceType>17</d4p1:SourceType>
          <d4p1:Speed>12</d4p1:Speed>
          <d4p1:Type>6</d4p1:Type>
          <d4p1:Url>sample string 22</d4p1:Url>
          <d4p1:UserId>20</d4p1:UserId>
        </d4p1:DeviceFile>
        <d4p1:DeviceFile>
          <d4p1:CamerId>3</d4p1:CamerId>
          <d4p1:Context>sample string 19</d4p1:Context>
          <d4p1:Course>13</d4p1:Course>
          <d4p1:Created>2018-10-21T02:07:54.396732+08:00</d4p1:Created>
          <d4p1:EIndex>21</d4p1:EIndex>
          <d4p1:Event>8</d4p1:Event>
          <d4p1:FileExt>sample string 7</d4p1:FileExt>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 4</d4p1:FileName>
          <d4p1:FilePath>sample string 5</d4p1:FilePath>
          <d4p1:IdentityID>sample string 18</d4p1:IdentityID>
          <d4p1:IsRead>true</d4p1:IsRead>
          <d4p1:Lat>10</d4p1:Lat>
          <d4p1:Lng>11</d4p1:Lng>
          <d4p1:Long>15</d4p1:Long>
          <d4p1:SendName>sample string 23</d4p1:SendName>
          <d4p1:SerialNo>14</d4p1:SerialNo>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:SourceType>17</d4p1:SourceType>
          <d4p1:Speed>12</d4p1:Speed>
          <d4p1:Type>6</d4p1:Type>
          <d4p1:Url>sample string 22</d4p1:Url>
          <d4p1:UserId>20</d4p1:UserId>
        </d4p1:DeviceFile>
      </Items>
    </DayFile>
  </Items>
</FileListByTimeResult>