<?php

namespace Plugins\Sms\Drivers\Ippanel;

use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use Plugins\Sms\Contracts\PatternSmsDriverInterface;
use Plugins\Sms\Contracts\Response;
use Plugins\Sms\Exceptions\SmsDriverApiException;

use function getConfig;

class IppanelSmsDriverResponse extends Response
{

    public function wasSuccessful(): bool
    {
        return !empty($this->getData()) && strtolower($this->getData()['status']) == 'ok';
    }
}
