Name

sn_capi.CAPIBaseAction

Description

No description available

Script

var CAPIBaseAction = Class.create();
CAPIBaseAction.prototype = {
  
  // We actually need this to do reflection for some reason
  initialize: function() {},
  
  /* eslint-disable no-unused-vars */  
  /**
  * Abstract action method. Params should be JSON with {paramName: value, ...} 
  */
  doAction : function(params) {		
  	throw 'Need to implement the doAction method';
  },
  /* eslint-enable no-unused-vars */ 

  // Why do we need these JSON methods...? We're not using them anywhere. 
  
  /**
  * encode object to JSON string.
  */
  encodeJSON : function(val) {
  	return new global.JSON().encode(val);
  },
  
  /**
  * convert JSON string to JSON object.
  */
  decodeJSON : function(val) {
  	return new global.JSON().decode(val);
  },
  type: 'CAPIBaseAction'
};

Sys ID

3080e68f0b943200a91f6707b6673a71

Offical Documentation

Official Docs: