This class allows a service to be generated and managed with its underlying methods.
A service in Webdows is a program or JS file that is run on an interval. When the JS file is ran, the service object generated from creating this class will be injected into the code that is ran.
For example, this file "test.js" will increment the "service.count" property every time the service runs on its interval.
if(typeof service.count !== 'number') {
service.count = 0;
}
console.log(service.count++);
The code will output as shown: