Namespace: mcs

Namespace: mcs

mcs

MCS module.
Source:

Members

(static, readonly) LOG_LEVEL :number

Log levels enum.
Type:
  • number
Properties:
Name Type Description
NONE number 0
ERROR number 1
WARN number 2
INFO number 3
DEBUG number 4
Source:

(readonly) AUTHENTICATION_TYPES :string

Authentication types enum.
Type:
  • string
Properties:
Name Type Description
basic string 'basic'
oauth string 'oauth'
Source:

(readonly) HTTP_METHODS :string

Http methods enum.
Type:
  • string
Properties:
Name Type Description
GET string 'GET'
PUT string 'PUT'
PATCH string 'PATCH'
POST string 'POST'
DELETE string 'DELETE'
HEAD string 'HEAD'
Source:

(readonly) mobileBackend :Backend

Mobile backend object. Represents a mobile backend in Oracle Mobile Hub and provides access to all capabilities of the backend.
Type:
Source:

(readonly) RESPONSE_TYPES :string

Request response types enum.
Type:
  • string
Properties:
Name Type Description
JSON string 'json'
BLOB string 'blob'
ARRAY_BUFFER string 'arraybuffer'
DOCUMENT string 'document'
TEXT string 'text'
Source:

Methods

init(config)

Init MCS with configuration
Parameters:
Name Type Description
config OracleMobileCloudConfig MCS configuration
Source:

(static) AnalyticsEvent(name) → {AnalyticsEvent}

Analytics event constructor. Creates analytics event.
Parameters:
Name Type Description
name string event name
Source:
Returns:
Type
AnalyticsEvent

(static) StorageObject(storageCollection, jsonopt) → {StorageObject}

Storage object constructor. Access point to class that represents a storage object resource that can be used to store data.
Parameters:
Name Type Attributes Description
storageCollection StorageCollection
json Object <optional>
Json storage object representation
Source:
Returns:
Type
StorageObject