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

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

class BrandApiClient extends AbstractApiClient{
	
	public function doProcess(){
               switch($this->apiCallType) {
               case 'list_brand':				  
               	  $this->setPostMethodTrue();
                  $this->apiCallUrl = 'brand/list';
                  break;
               case 'auto_list_brand':                 
                  $this->setPostMethodTrue();
                  $this->apiCallUrl ='brand/autofill';
                  break;
               case 'selected_brand':                  
                  $this->apiCallUrl ='brand/populate/add';
                  break;
               case 'add_new_brand':                  
                  $this->apiCallUrl ='brand/add';
                  break;
               case 'get_brand_mapping':
                   $this->apiCallUrl ='product/brands';
                   break;
               case 'check_brand_mapping_with_product':
                  $this->apiCallUrl ='brand/deletecheck';
                   break;
               case 'get_selected_brand':
                  //$this->trace = true;
                  $this->apiCallUrl ='brand/updateinfo';
                   break;
               case 'update_selected_brand':
                  //$this->trace = true;
                  $this->apiCallUrl ='brand/updatebrand';
                   break;            
               }

               $this->callApi();
	}	
}