Is this API notification?

@return bool
5284
public function isAPINotification()
    {
        return (bool)(isset($this->notificationObj->unique_id) && !empty($this->notificationObj->unique_id));
    }
1270637
public function callback_dismiss_notification() {
        if ( isset( $_POST['namespace'] ) || isset( $_POST['id'] ) ) {
            $namespace = $_POST['namespace'];
            $id = $_POST['id'];

			$n_class = get_class();
            $notify = new $n_class( $namespace );
            $notify->hide_notification( $id );
        }
        exit;
    }
54940
public function areSMSAPICredentialProvided()
    {
        Piwik::checkUserHasSomeViewAccess();

        $credential = $this->getSMSAPICredential();
        return isset($credential[MobileMessaging::API_KEY_OPTION]);
    }
1123945
function hasNotification()
	{
		if (!is_null( $this->attribute( 'expirationnotification' ) ) &&
			( $this->attribute( 'expirationnotification' ) != self::NOT_DEFINED ) &&
			( $this->attribute( 'expirationnotification' ) != '' ) )
			return true;
		else
			return false;
	}
853429
public function getNotification()
    {
        $data = pg_get_notify($this->handler, \PGSQL_ASSOC);

        return $data === false ? null : $data;
    }
46253
public function isAllowedToNotify()
    {
        if (!$this->node->isPublished()) {
            return false;
        }

        return $this->showNotification($this->node, $this->node->isPublished());
    }
256581
public static function announce()
    {
        $oNavGroup = Factory::factory('Nav', 'nails/module-admin');
        $oNavGroup->setLabel('Users');
        $oNavGroup->setIcon('fa-users');

        if (userHasPermission('admin:auth:accounts:browse')) {

            $oDb = Factory::service('Database');
            $oDb->where('is_suspended', false);
            $numTotal    = $oDb->count_all_results(NAILS_DB_PREFIX . 'user');
            $oAlertTotal = Factory::factory('NavAlert', 'nails/module-admin');
            $oAlertTotal->setValue($numTotal);
            $oAlertTotal->setLabel('Number of Users');

            $oDb->where('is_suspended', true);
            $numSuspended    = $oDb->count_all_results(NAILS_DB_PREFIX . 'user');
            $oAlertSuspended = Factory::factory('NavAlert', 'nails/module-admin');
            $oAlertSuspended->setValue($numSuspended);
            $oAlertSuspended->setSeverity('danger');
            $oAlertSuspended->setLabel('Number of Suspended Users');

            $oNavGroup->addAction('View All Users', 'index', [$oAlertTotal, $oAlertSuspended], 0);
        }

        return $oNavGroup;
    }
94542
protected function withoutNotifications()
    {
        $mock = Mockery::mock(NotificationDispatcher::class);

        $mock->shouldReceive('send')->andReturnUsing(function ($notifiable, $instance, $channels = []) {
            $this->dispatchedNotifications[] = compact(
                'notifiable', 'instance', 'channels'
            );
        });

        $this->app->instance(NotificationDispatcher::class, $mock);

        return $this;
    }
456646
public function isSuccess()
    {
        $summary = $this->getMessageSummary();

        foreach ($summary as $code => $message) {
            if ("9" == substr($code, 0, 1)) {
                return false;
            }
        }

        return true;
    }
1198318
public function updateNotProcessedNotifications()
    {

        $this->_debugData = array();

        $this->_debugData['processPosResponse begin'] = 'Begin to process cronjob for updating notifications from the queue';

        $this->_updateNotProcessedNotifications();

        $this->_debugData['processPosResponse end'] = 'Cronjob ends';

        return $this->_debugData;
    }
87492
public ApiResponse<Void> notificationsWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = notificationsValidateBeforeCall(null, null);
        return apiClient.execute(call);
    }
718270
static boolean showPotentialNotification(final Activity activity, Intent intent) {
        try {
            return NotificationManager.showPotentialNotification(activity, intent);
        } catch (Exception e) {
            Log.e(WonderPush.TAG, "Unexpected error while showing potential notification", e);
        }
        return false;
    }
753588
public function customerNotifications()
    {
        if (!isset($this->customer_notifications)) {
            $this->customer_notifications = new Services\CustomerNotificationsService($this->api_client);
        }

        return $this->customer_notifications;
    }
634067
public function versionNotify()
    {
        if (true === \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('preventModuleVersionNotify')) {
            return;
        }

        $oOMNCaller = $this->_getOnlineModuleNotifierCaller();
        $oOMNCaller->doRequest($this->_formRequest());
    }
1185748
public function message() {
		$this->response->disableCache();
		Configure::write('debug', 0);
		if (!$this->RequestHandler->prefers('sse')) {
			throw new BadRequestException();
		}

		$retry = CAKE_NOTIFY_SSE_RETRY;
		$event = 'webNotification';
		$result = [
			'result' => false,
			'messages' => [],
			'retry' => $retry
		];
		if (!$this->Session->started()) {
			$this->Session->renew();
		}

		$userInfo = $this->Auth->user();
		if (empty($userInfo)) {
			$userInfo = [];
		}
		$userId = Hash::get($userInfo, 'id');
		$userRole = Hash::get($userInfo, 'role');
		$prefix = Hash::get($userInfo, 'prefix');

		$lastId = 0;
		if ($this->Session->check('Notifications.lastId')) {
			$lastId = (int)$this->Session->read('Notifications.lastId');
		}

		$notifications = $this->Notification->getNotifications($lastId, $userId, $userRole);
		if (empty($notifications)) {
			$data = json_encode($result);
			$this->set(compact('retry', 'data', 'event'));

			return;
		}

		$iconDefault = '/favicon.ico';
		/*
		$language = new Language();
		$lang = mb_strtoupper($language->getCurrentUiLang(true));
		*/
		foreach ($notifications as $notificationItem) {
			extract($notificationItem['Notification']);
			$lastId = $id;
			$icon = $iconDefault;
			if (isset($data['url']) && is_array($data['url'])) {
				if (!empty($prefix)) {
					$data['url'][$prefix] = true;
				}
				$data['url'] = Router::url($data['url']);
			}
			if (isset($data['icon'])) {
				if (!empty($data['icon'])) {
					$icon = $data['icon'];
				}
				unset($data['icon']);
			}
			$result['messages'][] = compact('tag', 'title', 'body', 'icon', 'data'/*, 'lang'*/);
		}
		if (!empty($result['messages'])) {
			$result['result'] = true;
			$this->Session->write('Notifications.lastId', $lastId);
		}

		$data = json_encode($result);
		$this->set(compact('retry', 'data', 'event'));
	}
818280
public function getNotify()
    {
        $data = Tools::xml2arr(file_get_contents('php://input'));
        if (isset($data['sign']) && $this->getPaySign($data) === $data['sign']) {
            return $data;
        }
        throw new InvalidResponseException('Invalid Notify.', '0');
    }
96930
public function isSubscription()
    {
        $started = $this->subscriptionStarted();
        $status = $this->status();
        $time = time();

        if ($started !== '' && is_numeric($started) && $status !== '' && $status !== 'canceled' && $time < $this->subscriptionEndsAt()) {
            return true;
        } else {
            return false;
        }
    }