Resource Description for UserNotification

Properties for UserNotification

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
action string
createdDatetime DateTime
description string
icon string
isRead bool
modifiedGlobalCounter int
origin string
parameters string
status string
subject string
type string
user User

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\UserNotification;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$userNotification = UserNotification::retrieve(5433);

$user = $userNotification->getUser();
$isRead = $userNotification->getIsRead();
$modifiedGlobalCounter = $userNotification->getModifiedGlobalCounter();
$createdDatetime = $userNotification->getCreatedDatetime();
$action = $userNotification->getAction();
$icon = $userNotification->getIcon();
$origin = $userNotification->getOrigin();
$parameters = $userNotification->getParameters();
$type = $userNotification->getType();
$description = $userNotification->getDescription();
$subject = $userNotification->getSubject();

 

Related Resources

See also: User