CallUser
Table of Contents
Constants
- LAST_SEEN_THRESHOLD = 75
- STATE_BUSY = 'busy'
- STATE_CALLING = 'calling'
- STATE_DECLINED = 'declined'
- STATE_IDLE = 'idle'
- STATE_READY = 'ready'
- STATE_UNAVAILABLE = 'unavailable'
Methods
- create() : static
- delete() : mixed
- getFirstJoined() : DateTime|null
- getLastSeen() : DateTime
- getState() : string
- isActive() : bool
- Returns true if the user is an active participant of the call and false otherwise.
- isSeenRecently() : mixed
- isUaMobile() : mixed
- save() : mixed
- setFields() : mixed
- toArray() : mixed
- update() : mixed
- updateLastSeen() : mixed
- Update user's last seen date.
- updateState() : mixed
- wasRecorded() : mixed
- wasScreenShared() : mixed
Constants
LAST_SEEN_THRESHOLD
public
mixed
LAST_SEEN_THRESHOLD
= 75
STATE_BUSY
public
mixed
STATE_BUSY
= 'busy'
STATE_CALLING
public
mixed
STATE_CALLING
= 'calling'
STATE_DECLINED
public
mixed
STATE_DECLINED
= 'declined'
STATE_IDLE
public
mixed
STATE_IDLE
= 'idle'
STATE_READY
public
mixed
STATE_READY
= 'ready'
STATE_UNAVAILABLE
public
mixed
STATE_UNAVAILABLE
= 'unavailable'
Methods
create()
public
static create(array<string|int, mixed> $fields) : static
Parameters
- $fields : array<string|int, mixed>
Return values
staticdelete()
public
static delete(mixed $callId, mixed $userId) : mixed
Parameters
- $callId : mixed
- $userId : mixed
getFirstJoined()
public
getFirstJoined() : DateTime|null
Return values
DateTime|nullgetLastSeen()
public
getLastSeen() : DateTime
Return values
DateTimegetState()
public
getState() : string
Return values
stringisActive()
Returns true if the user is an active participant of the call and false otherwise.
public
isActive() : bool
Return values
boolisSeenRecently()
public
isSeenRecently() : mixed
isUaMobile()
public
isUaMobile() : mixed
save()
public
save() : mixed
setFields()
public
setFields(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>
toArray()
public
toArray() : mixed
update()
public
update(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>
updateLastSeen()
Update user's last seen date.
public
updateLastSeen(DateTime $lastSeen) : mixed
Parameters
- $lastSeen : DateTime
updateState()
public
updateState(mixed $state) : mixed
Parameters
- $state : mixed
wasRecorded()
public
wasRecorded() : mixed
wasScreenShared()
public
wasScreenShared() : mixed