<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Teilnehmer\Punkte\HandleCheckCode4Ajax;

class HandleCheckCode4AjaxPresenter extends \Kufer\KuferTools\Basis\Presenter\JsonPresenter
{
  public function present()
  {
    $obj = new \stdClass();
    $obj->knr = $this->useCaseResponse->knr;
    $obj->ktitel = $this->useCaseResponse->ktitel;
    $obj->status = $this->useCaseResponse->status;
    $obj->angefragteKursnummer = $this->useCaseResponse->angefragteKursnummer;
    $obj->belegId = $this->useCaseResponse->belegId;
    $obj->code = $this->useCaseResponse->code;
    $obj->technischerFehler = $this->useCaseResponse->technischerFehler;

    return \JsonOperations::encode4Ajax($obj);
  }

  protected function getView()
  {
    return;
  }

  protected function getViewModel()
  {
    return;
  }
}