<?php

namespace Plugins\Sms\Drivers\MelliPayamak;

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 MelliPayamakSmsDriverResponse extends Response
{

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