Skip to content

Download JSON Format

Puranjay Jain edited this page May 30, 2016 · 9 revisions

Each of the downloading / downloaded entity is stored as json objects (in an array)

// the object which contains the basic download object values
export default dlObject = {
  uuid: 'uuid',
  fileName: 'C:\Users\User\Music\Song.mp4', // full path to file
  size: 0, // e.g 459834 bytes converted to mb when displayed, full size of download
  lastTry: '17/05/2016 9:06 AM', // last attempt at downloading the file
  downloaded: 0, // e.g 459834 bytes converted to mb when displayed, bytes downloaded
  status: 'Paused', // can have values as 'Paused', 'Downloading', 'Error', 'Done'
}

A selected Boolean is also added for the table on the download pages (each of them)

Clone this wiki locally