<?php

namespace App\Generated\Controllers\V1_1;

use App\Http\Services\V1_1\ReportLogService;
use App\Http\Controllers\Controller;
use App\Generated\V1_1\Messages\ReportLog\FeedLogMessage;
use DB;
use App\Generated\V1_1\Messages\ReportLog\ClickUserHomeMessage;

class ReportLogController extends Controller
{
    public $handler;

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

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

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

}
