<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Dealer
 *
 * @author Kunal Mestri <kunal@laurus-it.com>
 */
class Dealer {

    private $dealerId;
    private $dealerName;
    private $dealerPhoneNo;
    private $orgId;
    public function getOrgId() {
        return $this->orgId;
    }

    public function setOrgId($orgId) {
        $this->orgId = $orgId;
    }

    public function getDealerId() {
        return $this->dealerId;
    }

    public function setDealerId($dealerId) {
        $this->dealerId = $dealerId;
    }

    public function getDealerName() {
        return $this->dealerName;
    }

    public function setDealerName($dealerName) {
        $this->dealerName = $dealerName;
    }

    public function getDealerPhoneNo() {
        return $this->dealerPhoneNo;
    }

    public function setDealerPhoneNo($dealerPhoneNo) {
        $this->dealerPhoneNo = $dealerPhoneNo;
    }

    public function toJson() {
        $map = new Map();
        if ($this->getDealerId() != "")
            $map->put("dealerId", $this->getDealerId());
        if ($this->getDealerName() != "")
            $map->put("dealerName", $this->getDealerName());
        if ($this->getDealerPhoneNo() != "")
            $map->put("dealerPhoneNo", $this->getDealerPhoneNo());
        if ($this->getOrgId() != "")
            $map->put("orgId", $this->getOrgId());
        return $map->toJson();
    }

}

?>
