bugyo-cloud-client
Version:
HTTP client for Bugyo Cloud
27 lines • 820 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PunchTask = void 0;
/**
* 打刻します。
*/
class PunchTask {
logger;
timeClock;
punchmarkPage;
punchInfo;
constructor(logger, timeClock, punchmarkPage, punchInfo) {
this.logger = logger;
this.timeClock = timeClock;
this.punchmarkPage = punchmarkPage;
this.punchInfo = punchInfo;
}
async execute(client) {
this.logger.trace("Invoking PunchmarkPage.");
const token = await this.punchmarkPage.invoke(client);
this.logger.debug("Got token: %s", token);
this.logger.trace("Invoking TimeClock.");
await this.timeClock.invoke(client, token, this.punchInfo);
}
}
exports.PunchTask = PunchTask;
//# sourceMappingURL=punch-task.js.map