scripts/hook_durian.js
/*
    Four test modes and a default defined for Hawkeye:
    1 - fetchMultiStatus
    2 - setNearOwnerTimeout
    3+4 - stopSoundHawkeye
    default - nil task
    */
Four test modes and a default defined for Hawkeye:
1 - fetchMultiStatus
2 - setNearOwnerTimeout
3+4 - stopSoundHawkeye
default - nil task
Four test modes and a default defined for Hawkeye : 1 - fetchMultiStatus 2 - setNearOwnerTimeout 3 + 4 - stopSoundHawkeye default - nil task
testMode() {
        var self = this;
        var name = 'testModeTask:';
        var {CLDurianTask} = ObjC.classes;
        var {NSString} = ObjC.classes;
        var taskByName = CLDurianTask[name];
        var task = taskByName.implementation(CLDurianTask, NSString['stringWithString:'](name), 2);
        self.runTask(task);
    }
testMode ( ) { var self = this ; var name = 'testModeTask:' ; var { CLDurianTask } = ObjC . classes ; var { NSString } = ObjC . classes ; var taskByName = CLDurianTask [ name ] ; var task = taskByName . implementation ( CLDurianTask , NSString [ 'stringWithString:' ] ( name ) , 2 ) ; self . runTask ( task ) ; }
Four test modes and a default defined for Hawkeye:
1 - fetchMultiStatus
2 - setNearOwnerTimeout
3+4 - stopSoundHawkeye
default - nil task
Four test modes and a default defined for Hawkeye : 1 - fetchMultiStatus 2 - setNearOwnerTimeout 3 + 4 - stopSoundHawkeye default - nil task
// last task parameter is type