AirLay backend

DeviceService extends AirlayService
in package

Class DeviceService

Table of Contents

$  : AirlayConfig
$collection  : DevicesCollection
$rabbitmq  : AMQPStreamConnection
$user  : UserEntity
$collection  : mixed
__construct()  : mixed
aggregateDeviceUsers()  : array<string|int, mixed>
create()  : DeviceEntity
createPushApiData()  : array<string|int, mixed>
getCollection()  : mixed
getUserAttributes()  : array<string|int, mixed>
getUserDevicesFromDepartmentBrigades()  : array<string|int, DeviceEntity>
sendMessage()  : array<string|int, FeatureEntity>
setUserAttributes()  : void
updateAttributes()  : void

Properties

Methods

__construct()

public __construct(mixed $collection) : mixed
Parameters
$collection : mixed
Return values
mixed

aggregateDeviceUsers()

public aggregateDeviceUsers(array<string|int, mixed> $devices) : array<string|int, mixed>
Parameters
$devices : array<string|int, mixed>
Return values
array<string|int, mixed>

getCollection()

public getCollection() : mixed
Return values
mixed

getUserAttributes()

public getUserAttributes(UserEntity $user) : array<string|int, mixed>
Parameters
$user : UserEntity
Return values
array<string|int, mixed>

getUserDevicesFromDepartmentBrigades()

public getUserDevicesFromDepartmentBrigades(ObjectId $departmentId) : array<string|int, DeviceEntity>
Parameters
$departmentId : ObjectId
Return values
array<string|int, DeviceEntity>

Search results