Class: BaseManager

BaseManager

Base manager for shared functions.

new BaseManager()

Methods

_validateParameter(value, name, conditions)

Checks if a parameter satisfies specific conditions.

Name Type Description
value any

The actual value of the parameter.

name string

The name of the parameter.

conditions Object optional

Conditions to be met.

Name Type Default Description
defined boolean true optional

Parameter must not be null or undefined.

nonEmptyString boolean true optional

Parameter must be a non-empty string.

positiveInteger boolean false optional

Parameter must be a positive integer.

integer boolean false optional

Parameter must be an integer.

boolean boolean false optional

Parameter must be a boolean.

_validateResponse(response, additionalErrors){Object}

Validates RCON response by checking status code.

Name Type Description
response ResponseMessage
additionalErrors Object
Throws:
Error
Returns:
Type Description
Object