export class ZktecoGateway {
  constructor(logger) {
    this.logger = logger
  }

  async pullLogs(serial, connection) {
    this.logger.info({ serial, host: connection.host }, 'Pulling ZKTeco logs')

    return [
      {
        serial,
        employee_device_id: '1001',
        punch_type: 'check_in',
        auth_mode: 'fingerprint',
        punched_at: new Date().toISOString()
      }
    ]
  }

  async syncUsers(serial, users) {
    this.logger.info({ serial, count: users.length }, 'Syncing users to ZKTeco device')
  }

  async restart(serial) {
    this.logger.info({ serial }, 'Restarting ZKTeco device')
  }
}
