Snapshot
@auvious/snapshot / Exports / Snapshot
Class: Snapshot
Implements
Table of contents
Constructors
Properties
- id
- mSignedUrl
- mSignedUrlObservable
- refreshing
- requesterUserEndpointId
- requesterUserId
- state
- timestamp
- type
- userEndpointId
- userId
Accessors
Methods
Constructors
constructor
• Private
new Snapshot(id
, type
, requesterUserId
, requesterUserEndpointId
, userId
, userEndpointId
, state
, timestamp
, signedUrlProvider
)
Parameters
Name | Type |
---|---|
id | string |
type | string |
requesterUserId | string |
requesterUserEndpointId | string |
userId | string |
userEndpointId | string |
state | SnapshotState |
timestamp | Date |
signedUrlProvider | SignedUrlProvider |
Properties
id
• id: string
Implementation of
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
state
• state: SnapshotState
Implementation of
timestamp
• timestamp: Date
type
• Optional
type: string
Implementation of
userEndpointId
• userEndpointId: string
Implementation of
userId
• userId: string
Implementation of
Accessors
approved
• get
approved(): boolean
Returns
boolean
Implementation of
discarded
• get
discarded(): boolean
Returns
boolean
signedUrl
• get
signedUrl(): Observable
<string
>
Returns
Observable
<string
>
Implementation of
Methods
isExpired
▸ Private
isExpired(): boolean
Returns
boolean
refreshSignedUrl
▸ Private
refreshSignedUrl(): Promise
<void
>
Returns
Promise
<void
>
createFromAcquiredEvent
▸ Static
createFromAcquiredEvent(event
, signedUrlProvider
): ISnapshot
Parameters
Name | Type |
---|---|
event | SnapshotAcquiredEvent |
signedUrlProvider | SignedUrlProvider |
Returns
createFromSnapshotDTO
▸ Static
createFromSnapshotDTO(dto
, signedUrlProvider
): ISnapshot
Parameters
Name | Type |
---|---|
dto | ISnapshotDTO |
signedUrlProvider | SignedUrlProvider |