<?php

namespace App\Generated\Controllers\V1_1;

use App\Generated\V1_1\Messages\AdminPartner\Change2NewMessage;
use App\Generated\V1_1\Messages\AdminPartner\UnSelectPartnerMessage;
use App\Generated\V1_1\Messages\AdminPartner\IsSelectedListMessage;
use App\Http\Services\V1_1\AdminPartnerService;
use App\Generated\V1_1\Messages\AdminPartner\LowListMessage;
use App\Http\Controllers\Controller;
use DB;

class AdminPartnerController extends Controller
{
    public $handler;

    public function __construct(AdminPartnerService $handler)
    {
        $this->handler = $handler;
    }

    public function change2New(Change2NewMessage $message)
    {
        $message->validateInput();
        $this->handler->change2New($message);
        $message->validateOutput();
        return $message->getResponse();
    }

    public function lowList(LowListMessage $message)
    {
        $message->validateInput();
        $this->handler->lowList($message);
        $message->validateOutput();
        return $message->getResponse();
    }

    public function unSelectPartner(UnSelectPartnerMessage $message)
    {
        $message->validateInput();
        $this->handler->unSelectPartner($message);
        $message->validateOutput();
        return $message->getResponse();
    }

    public function isSelectedList(IsSelectedListMessage $message)
    {
        $message->validateInput();
        $this->handler->isSelectedList($message);
        $message->validateOutput();
        return $message->getResponse();
    }

}
