const apiModalMachine = {
  "zav_nomer": "007",
  "type": "АВФ-1М.2",
  "railway_name": "РЖД",
  "org_name": "ДКРЭ",
  "nomer_zn8": 19413152,
  "machine_type": "АВФ-1М.2 № 007",
  "machine_id": 5862,
  "imei": 868136032634217,
  "device_number": "КР190617",
  "device_id": 6248
}

const appModalMachine = {
  "zavNomer": "007",
  "type": "АВФ-1М.2",
  "railwayName": "РЖД",
  "orgName": "ДКРЭ",
  "nomerZn8": 19413152,
  "machineType": "АВФ-1М.2 № 007",
  "machineId": 5862,
  "imei": 868136032634217,
  "deviceNumber": "КР190617",
  "deviceId": 6248
}

const defaultLastMachines = [
  {
    "zav_nomer": "157",
    "type": "УК",
    "railway_name": "В-Сиб",
    "pack_number": 7683,
    "pack_dt": "2024-04-08T07:58:47.150000",
    "org_name": "ПМС-183",
    "nomer_zn8": 157,
    "machine_type": "УК-25/25",
    "machine_id": 3409,
    "imei": 868136034784234,
    "device_number": "КР214014",
    "device_id": 3302
  },
  {
    "zav_nomer": "162",
    "type": "УК",
    "railway_name": "Д-Вост",
    "pack_number": 7683,
    "pack_dt": "2024-04-08T04:10:03.250000",
    "org_name": "ПМС-233",
    "nomer_zn8": 162,
    "machine_type": "УК-25/25",
    "machine_id": 3425,
    "imei": 864004043339297,
    "device_number": "КР214015",
    "device_id": 3572
  },
  {
    "zav_nomer": "176",
    "type": "УК",
    "railway_name": "Заб",
    "pack_number": 7683,
    "pack_dt": "2024-04-05T05:39:04.392000",
    "org_name": "ПМС-185",
    "nomer_zn8": 176,
    "machine_type": "УК-25/25",
    "machine_id": 4619,
    "imei": 868136034805187,
    "device_number": "КР214038",
    "device_id": 3328
  }
]

const resLastMachines = [
  {
    "zavNomer": "157",
    "type": "УК",
    "railwayName": "В-Сиб",
    "packNumber": 7683,
    "packDt": "2024-04-08T07:58:47.150000",
    "orgName": "ПМС-183",
    "nomerZn8": 157,
    "machineType": "УК-25/25",
    "machineId": 3409,
    "imei": 868136034784234,
    "deviceNumber": "КР214014",
    "deviceId": 3302
  },
  {
    "zavNomer": "162",
    "type": "УК",
    "railwayName": "Д-Вост",
    "packNumber": 7683,
    "packDt": "2024-04-08T04:10:03.250000",
    "orgName": "ПМС-233",
    "nomerZn8": 162,
    "machineType": "УК-25/25",
    "machineId": 3425,
    "imei": 864004043339297,
    "deviceNumber": "КР214015",
    "deviceId": 3572
  },
  {
    "zavNomer": "176",
    "type": "УК",
    "railwayName": "Заб",
    "packNumber": 7683,
    "packDt": "2024-04-05T05:39:04.392000",
    "orgName": "ПМС-185",
    "nomerZn8": 176,
    "machineType": "УК-25/25",
    "machineId": 4619,
    "imei": 868136034805187,
    "deviceNumber": "КР214038",
    "deviceId": 3328
  }
]

const apiModalListMachines = [apiModalMachine]
const appModalListMachines = [appModalMachine]

class AdapterOfMachines {

  constructor() {
  }

  /**
   * 
   * @returns {Promise<Array>}
   */
  async fetchModalMachines() {
    return appModalListMachines
  }

  /**
   * 
   * @returns {Promise<Array>}
   */
  async fetchLastMachinesByPackNum() {
    return resLastMachines
  }

}

export { apiModalMachine, appModalMachine, apiModalListMachines, appModalListMachines, defaultLastMachines, resLastMachines, AdapterOfMachines }