<?php
namespace ShortPixel\Model;

if ( ! defined( 'ABSPATH' ) ) {
 exit; // Exit if accessed directly.
}

use ShortPixel\Controller\ResponseController as ResponseController;


class ResponseModel
{

	// Identification for Item.
	public $item_id;
	public $item_type; // set by queue

	// General item variables
	public $fileName;
	public $is_error;
	public $is_done;

	public $apiStatus;
	public $fileStatus;

	// Images being processed variables. From APIController
	public $tries;
	public $images_done;
	public $images_waiting;
	public $images_total;

	public $issue_type; // Optional - if there is any issue to report.
 	public $message; // This can be base text, but decision textually is within responsecontroller.
  	public $action; // Custom Operations use this ( i.e. migrate ) 

//	public $queueName;


	/**
	*
	* @param $item_id int  The attachment_id of the item in process
	*	@param $item_type string  item type: media or custom.
	*
	**/
	public function __construct($item_id, $item_type)
	{
			$this->item_id = $item_id;
			$this->item_type = $item_type; // media or custum
	}




}
