<?php if (!defined('ABSPATH'))
	exit; ?>
<?php

class polylai_CloudRequest
{
	var $request_id;
	var $post_content;
	var $post_title;
	var $lang_from;
	var $lang_to;
	var $locale_to;
	var $post_id;
	var $post_type;
	var $license_key;
	var $meta;
	var $client_version;
	var $client_type;

	public function __construct($lang_from, $lang_to, $locale_to, $post, $license_key)
	{
		$this->lang_from = $lang_from;
		$this->lang_to = $lang_to;
		$this->locale_to = $locale_to;
		$this->post_content = $post->post_content;
		$this->post_title = $post->post_title;
		$this->post_id = $post->ID;
		$this->post_type = $post->post_type;
		$this->license_key = $license_key;
		$this->client_version = POLYLAI_VERSION;
		$this->client_type = 'wordpress_plugin';
		$this->request_id = wp_generate_uuid4();
		$this->meta = [];
	}
}