Skip to main content

Snapshot

@auvious/snapshot / Exports / Snapshot

Class: Snapshot

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

Private new Snapshot(id, type, requesterUserId, requesterUserEndpointId, userId, userEndpointId, state, timestamp, signedUrlProvider)

Parameters

NameType
idstring
typestring
requesterUserIdstring
requesterUserEndpointIdstring
userIdstring
userEndpointIdstring
stateSnapshotState
timestampDate
signedUrlProviderSignedUrlProvider

Properties

id

id: string

Implementation of

ISnapshot.id


mSignedUrl

Private mSignedUrl: SignedUrl


mSignedUrlObservable

Private mSignedUrlObservable: Subject<string>


refreshing

Private refreshing: boolean = false


requesterUserEndpointId

requesterUserEndpointId: string

Implementation of

ISnapshot.requesterUserEndpointId


requesterUserId

requesterUserId: string

Implementation of

ISnapshot.requesterUserId


state

state: SnapshotState

Implementation of

ISnapshot.state


timestamp

timestamp: Date


type

Optional type: string

Implementation of

ISnapshot.type


userEndpointId

userEndpointId: string

Implementation of

ISnapshot.userEndpointId


userId

userId: string

Implementation of

ISnapshot.userId

Accessors

approved

get approved(): boolean

Returns

boolean

Implementation of

ISnapshot.approved


discarded

get discarded(): boolean

Returns

boolean


signedUrl

get signedUrl(): Observable<string>

Returns

Observable<string>

Implementation of

ISnapshot.signedUrl

Methods

isExpired

Private isExpired(): boolean

Returns

boolean


refreshSignedUrl

Private refreshSignedUrl(): Promise<void>

Returns

Promise<void>


createFromAcquiredEvent

Static createFromAcquiredEvent(event, signedUrlProvider): ISnapshot

Parameters

NameType
eventSnapshotAcquiredEvent
signedUrlProviderSignedUrlProvider

Returns

ISnapshot


createFromSnapshotDTO

Static createFromSnapshotDTO(dto, signedUrlProvider): ISnapshot

Parameters

NameType
dtoISnapshotDTO
signedUrlProviderSignedUrlProvider

Returns

ISnapshot