Resource Description for RoomRoomAsset

Properties for RoomRoomAsset

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
quantity int
room Room
roomAsset RoomAsset

SDK Example for PHP

<?PHP

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

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

$roomRoomAsset = RoomRoomAsset::retrieve(5433);

$room = $roomRoomAsset->getRoom();
$roomAsset = $roomRoomAsset->getRoomAsset();
$quantity = $roomRoomAsset->getQuantity();

 

Related Resources

See also: Room, RoomAsset