BaseManager

BaseManager

Base manager for shared functions.

Constructor

new BaseManager()

Methods

_validateParameter(value, name, conditionsopt)

Checks if a parameter satisfies specific conditions.
Parameters:
Name Type Attributes 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 Attributes Default Description
defined boolean <optional>
true Parameter must not be null or undefined.
nonEmptyString boolean <optional>
true Parameter must be a non-empty string.
positiveInteger boolean <optional>
false Parameter must be a positive integer.
boolean boolean <optional>
false Parameter must be a boolean.

_validateResponse(response, additionalErrors) → {Object}

Validates RCON response by checking status code.
Parameters:
Name Type Description
response ResponseMessage
additionalErrors Object
Throws:
Error
Returns:
Type:
Object