fix: invert interface to be custom instead of default

This way, existing rooms and devices will build messengers by default, while new plugins can implement their own messengers
This commit is contained in:
Andrew Welker
2024-02-07 11:14:54 -06:00
parent 4d608eef06
commit b689c847fb
3 changed files with 21 additions and 7 deletions

View File

@@ -48,6 +48,20 @@ namespace PepperDash.Essentials.Core
}
});
}
public override bool CustomActivate()
{
CreateMobileControlMessengers();
return base.CustomActivate();
}
/// <summary>
/// Override this method to build and create custom Mobile Control Messengers during the Activation phase
/// </summary>
protected virtual void CreateMobileControlMessengers() {
}
}
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]