function register(os, token, device, doneCallback, failCallback) {
    if (device instanceof Function) {
      failCallback = doneCallback;
      doneCallback = device;
      device = null;
    }

    return this._db.registerDevice(os, token, device).then(doneCallback, failCallback);
  }
/**
   * Register a new device with the given device token and OS.
   * @param {string} os The OS of the device (IOS/Android)
   * @param {string} token The GCM or APNS device token
   * @param {model.Device=} device A optional device entity to set custom field values
   * @param {binding.Entity~doneCallback=} doneCallback Called when the operation succeed.
   * @param {binding.Entity~failCallback=} failCallback Called when the operation failed.
   * @return {Promise<any>}
   */
Register a new device with the given device token and OS.
@param {string} os The OS of the device (IOS/Android)
@param {string} token The GCM or APNS device token
@param {model.Device=} device A optional device entity to set custom field values
@param {binding.Entity~doneCallback=} doneCallback Called when the operation succeed.
@param {binding.Entity~failCallback=} failCallback Called when the operation failed.
@return {Promise}
Register a new device with the given device token and OS . @param { string } os The OS of the device ( IOS / Android ) @param { string } token The GCM or APNS device token @param { model . Device = } device A optional device entity to set custom field values @param { binding . Entity~doneCallback = } doneCallback Called when the operation succeed . @param { binding . Entity~failCallback = } failCallback Called when the operation failed . @return { Promise }
function register(os, token, device, doneCallback, failCallback) {
    if (device instanceof Function) {
      failCallback = doneCallback;
      doneCallback = device;
      device = null;
    }
    return this._db.registerDevice(os, token, device).then(doneCallback, failCallback);
  }
function register ( os , token , device , doneCallback , failCallback ) { if ( device instanceof Function ) { failCallback = doneCallback ; doneCallback = device ; device = null ; } return this . _db . registerDevice ( os , token , device ) . then ( doneCallback , failCallback ) ; }
Register a new device with the given device token and OS.
Register a new device with the given device token and OS .