Class: PendingMedia

PendingMedia(data)

OBSOLETE, BUT I'M LEAVING IT FOR NOW FOR REFERENCE IN CASE WE WANT TO GO BACK TO SOMETHING LIKE THIS. Class representing an item of type PendingFileType. This is a file created on Mobile but not through a Task, so the file is not linked to an ActivityPlan. I.e., a quick photo, a voice note, or a CE or DRE created by the user going straight to the recorder instead of through a Task.

Constructor

new PendingMedia(data)

Constructs an PendingMedia object
Parameters:
Name Type Description
data PendingMedia | Object
Source:

Members

_id :string

Unique ID for the PendingMedia. For CLA Files, this is the CLA File's _id
Type:
  • string
Default Value:
  • ''
Source:

deferToStage :number

Do not show this item in Pending until User.getClaStageNumber() of the user's CLA Stage is at least this number.
Type:
  • number
Source:

filename :string

Filename of this Pending Media (no path, but does include extension). Empty string for CEs and DREs.
Type:
  • string
Default Value:
  • ''
Source:

fileType :PendingFileType|string

Type of Pending Media
Type:
  • PendingFileType | string
Default Value:
  • ''
Source:

isProcessed :boolean

True if the user has indicated this should show in All Media instead of Unprocessed Media in the Planner's Media tab
Type:
  • boolean
Source:

title :string

Title of the PendingMedia file. Empty string for CEs and DREs: we get their titles from the CE or DRE record itself.
Type:
  • string
Default Value:
  • ''
Source:

Methods

set(data) → {PendingMedia}

Creates an updated PendingMedia object
Parameters:
Name Type Description
data PendingMedia | Object
Source:
Returns:
Type
PendingMedia