Model Media
This is a base object that contains all you can do about ModelMedia.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| Reference | InternalOpenGateAPI |
❌ | to the API object. |
create(rawFile)
This invoke a request to OpenGate North API and the callback is managed by promises This method create an element deploymentElement
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | File |
❌ | this File is the deployment element |
Retorna
Tip
Tipo: Promise
withFile(file)
Set the file attribute
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| file | string |
❌ | required field |
Retorna
Tip
Tipo: ModelMedia
withFileName(fileName)
Set the file name attribute
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| fileName | string |
❌ | required field |
Retorna
Tip
Tipo: ModelMedia
withIdentifier(id)
Set the identifier attribute
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| id | string |
❌ | required field |
Retorna
Tip
Tipo: ModelMedia
withName(name)
Set the name attribute
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ | required field |
Retorna
Tip
Tipo: ModelMedia