Search in sources :

Example 6 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method newModuleAvailable.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#moduleUpgradeAvailable(java.lang.String, java.lang.String)
	 */
@Override
public void newModuleAvailable(String name, String version) {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.NEW_MODULE_AVAILABLE, name, version, null);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Example 7 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method upgradeStateChanged.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#upgradeStateChanged(java.lang.String)
	 */
@Override
public void upgradeStateChanged(UpgradeState stage) {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.UPGRADE_STATE_CHANGE, stage);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Aggregations

ModuleNotificationModel (com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)7