new BaseManager()
Methods
-
_validateParameter(value, name, conditions)
-
Checks if a parameter satisfies specific conditions.
Name Type Description valueany The actual value of the parameter.
namestring The name of the parameter.
conditionsObject optional Conditions to be met.
Name Type Default Description definedboolean true optional Parameter must not be null or undefined.
nonEmptyStringboolean true optional Parameter must be a non-empty string.
positiveIntegerboolean false optional Parameter must be a positive integer.
integerboolean false optional Parameter must be an integer.
booleanboolean false optional Parameter must be a boolean.
-
_validateResponse(response, additionalErrors){Object}
-
Validates RCON response by checking status code.
Name Type Description responseResponseMessage additionalErrorsObject Throws:
ErrorReturns:
Type Description Object