mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update app.js, defaultService.js
This commit is contained in:
parent
40edee2b83
commit
c24166b36d
2
app.js
2
app.js
|
@ -629,7 +629,7 @@ function dispatchServiceEvent(name, eventType, w_args, argl) {
|
|||
messageReceived: bind("MessageReceived"),
|
||||
screenTime: bind("ServiceScreenTime"),
|
||||
fileCreated: bind("FileCreated"),
|
||||
fileRuleMatched: bind("FileRuleMatched")
|
||||
networkConnected: bind("NetworkConnected");
|
||||
});
|
||||
} else {
|
||||
console.error("Could not find", name + ".js");
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
var SYS = require("lib/system");
|
||||
|
||||
function main(args) {
|
||||
console.log("WelsonJS.Service required.");
|
||||
}
|
||||
|
||||
function getDeviceID() {
|
||||
return SYS.getUUID();
|
||||
}
|
||||
|
||||
function onServiceStart() {
|
||||
return "onServiceStart recevied";
|
||||
}
|
||||
|
@ -32,15 +25,16 @@ function onFileCreated(args) {
|
|||
return "onFileCreated recevied. " + args.join(', ');
|
||||
}
|
||||
|
||||
function onFileRuleMatched(args) {
|
||||
return "onFileCreated recevied. " + args.join(', ');
|
||||
function onNetworkConnected(args) {
|
||||
return "onNetworkConnected recevied. " + args.join(', ');
|
||||
}
|
||||
|
||||
exports.main = main;
|
||||
|
||||
exports.getDeviceID = getDeviceID;
|
||||
exports.onServiceStart = onServiceStart;
|
||||
exports.onServiceStop = onServiceStop;
|
||||
exports.onServiceElapsedTime = onServiceElapsedTime;
|
||||
exports.onServiceScreenTime = onServiceScreenTime;
|
||||
exports.onFileCreated = onFileCreated;
|
||||
exports.onFileRuleMatched = onFileRuleMatched;
|
||||
exports.onNetworkConnected = onNetworkConnected;
|
||||
|
|
Loading…
Reference in New Issue
Block a user