<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\Services\ScienerApiService;
use App\Models\ScienerDetails;
use App\Models\Beds24Details;
use App\Models\Property;
use App\Services\Beds24APIService;
use App\Services\Auomate_beds24Service;
use App\Console\Commands\DeleteExpiredBookingCodes;


class Delete_Egilsstaðahúsið_ehf extends Command
{


    /**
     * The name and signature of the console command.
     *
     * @var string
     */

    protected $signature = 'app:delete-egilsstaðahúsið-ehf';


    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Delete expired bookings from db and their codes from the locks Property: Egilsstaðahúsið ehf';


    protected $scienerApiService;
    protected $beds24ApiService;
    protected $bookingService;


    public $PropertyID = '6287';
    public $PropertyName = 'Egilsstaðahúsið ehf';

    public $bookings = [];
    public $username, $password;
    public $assignedLocks = [];

    public function __construct(ScienerApiService $scienerApiService, Beds24APIService $beds24ApiService, Auomate_beds24Service $bookingService)
    {
        parent::__construct();
        $this->scienerApiService = $scienerApiService;
        $this->beds24ApiService = $beds24ApiService;
        $this->bookingService = $bookingService;
    }

    public function handle()
    {
        $deleteClass = new DeleteExpiredBookingCodes();
        $deleteClass->CodeDeletion($this->PropertyID);
    }
}
