OCA\OcSms\Controller\SettingsController::getSettings PHP Method

getSettings() public method

public getSettings ( )
    function getSettings()
    {
        $country = $this->configMapper->getKey("country");
        if ($country === false) {
            return new JSONResponse(array("status" => false));
        }
        return new JSONResponse(array("status" => true, "country" => $country, "message_limit" => $this->configMapper->getMessageLimit(), "notification_state" => $this->configMapper->getNotificationState(), "contact_order" => $this->configMapper->getContactOrder(), "contact_order_reverse" => $this->configMapper->getContactOrderReverse()));
    }