<?php 
namespace OfficeBrain\Bundle\ImageBundle\ApiClient;

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use OfficeBrain\Bundle\ApiClientBundle\ApiClient\AbstractApiClient;

class ApiClient extends AbstractApiClient{
	
	public function doProcess(){
		switch($this->apiCallType) {			
			case 'upload_image':				
				$this->apiCallUrl = 'image/upload';
				$this->uploadFileAndCallApi();
				break;
				
			case 'add_image':
				$this->apiCallUrl = 'image/add';
				$this->callApi();
				break;
				
			/*case 'update_image':
				$this->apiCallUrl = 'image/update';
				$this->uploadFileAndCallApi();			
				break;
				
			case 'delete_image':
				$this->apiCallUrl = 'image/delete';
				$this->callApi();
				break;*/
							
		}
	}	
}