Model Media

ModelMedia

ModelMedia Objects

class ModelMedia()

This is a base object that contains all you can do about ModelMedia.

constructor
function constructor()

Constructor

Arguments:

  • Reference InternalOpenGateAPI - to the API object.

create
function create(rawFile: File) -> 'Promise'

This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement

Arguments:

  • rawFile File - this File is the deployment element

Returns:

  • Promise

update
function update()

withFile
function withFile(file: string) -> 'ModelMedia'

Set the file attribute

Arguments:

  • file string - required field

Returns:

  • ModelMedia

withFileName
function withFileName(fileName: string) -> 'ModelMedia'

Set the file name attribute

Arguments:

  • fileName string - required field

Returns:

  • ModelMedia

withIdentifier
function withIdentifier(id: string) -> 'ModelMedia'

Set the identifier attribute

Arguments:

  • id string - required field

Returns:

  • ModelMedia

withName
function withName(name: string) -> 'ModelMedia'

Set the name attribute

Arguments:

  • name string - required field

Returns:

  • ModelMedia