imports/vx/both/code/vxapp.js
/**
     * Determine whether the subsystem status currently matches supplied values.
     *
     * @param {string} subsystem Subsystem (e.g., "LIME_LIGHT_INSTANCE", "GATEWAY").
     * @param {object} record Record with subsystem status to be tested.
     * @param {string} status Subsystem status (e.g., GREEN, RED).
     * @param {string} key i18n key of message to associate with status change.
     * @param {object} variables i18n variables.
     * @return {boolean} True if subsystem status is equal.
     */
Determine whether the subsystem status currently matches supplied values.
@param {string} subsystem Subsystem .
@param {object} record Record with subsystem status to be tested.
@param {string} status Subsystem status .
@param {string} key i18n key of message to associate with status change.
@param {object} variables i18n variables.
@return {boolean} True if subsystem status is equal.
Determine whether the subsystem status currently matches supplied values . @param { string } subsystem Subsystem . @param { object } record Record with subsystem status to be tested . @param { string } status Subsystem status . @param { string } key i18n key of message to associate with status change . @param { object } variables i18n variables . @return { boolean } True if subsystem status is equal .
isSubsystemStatusEqual(subsystem, record, status, key, variables) {
        let subsystemStatus = VXApp.getSubsystemStatus(subsystem, record)
        if (!subsystemStatus) {
            return false
        }
        if (subsystemStatus.status !== status) {
            return false
        }
        if (subsystemStatus.key !== key) {
            return false
        }
        if (!subsystemStatus.variables && !variables) {
            return true
        }
        let v1 = JSON.stringify(subsystemStatus.variables)
        let v2 = JSON.stringify(variables)
        return v1 === v2
    }
isSubsystemStatusEqual ( subsystem , record , status , key , variables ) { let subsystemStatus = VXApp . getSubsystemStatus ( subsystem , record ) if ( ! subsystemStatus ) { return false } if ( subsystemStatus . status !== status ) { return false } if ( subsystemStatus . key !== key ) { return false } if ( ! subsystemStatus . variables && ! variables ) { return true } let v1 = JSON . stringify ( subsystemStatus . variables ) let v2 = JSON . stringify ( variables ) return v1 === v2 }
Determine whether the subsystem status currently matches supplied values.
Determine whether the subsystem status currently matches supplied values .