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:
ReferenceInternalOpenGateAPI - 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:
rawFileFile - this File is the deployment element
Returns:
Promise
update
function update()withFile
function withFile(file: string) -> 'ModelMedia'Set the file attribute
Arguments:
filestring - required field
Returns:
ModelMedia
withFileName
function withFileName(fileName: string) -> 'ModelMedia'Set the file name attribute
Arguments:
fileNamestring - required field
Returns:
ModelMedia
withIdentifier
function withIdentifier(id: string) -> 'ModelMedia'Set the identifier attribute
Arguments:
idstring - required field
Returns:
ModelMedia
withName
function withName(name: string) -> 'ModelMedia'Set the name attribute
Arguments:
namestring - required field
Returns:
ModelMedia