RatingService
@auvious/rating / Exports / RatingService
Class: RatingService
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new RatingService(commonSource, rtcSource?)
Parameters
| Name | Type | Description |
|---|---|---|
commonSource | Observable<AuviousCommon> | AuviousClient mandatory |
rtcSource? | Observable<AuviousRtc> | optional, if provided and registered then userEndpointId parameters are automatically filled when making requests, resulting in events that have a valid userEndpointId. |
Properties
apiResource
• Private apiResource: ApiResource
rtc
• Private rtc: AuviousRtc
Methods
create
▸ create(rating): Promise<string>
Parameters
| Name | Type |
|---|---|
rating | RatingRequest |
Returns
Promise<string>
findByConferenceId
▸ findByConferenceId(conferenceId): Promise<Rating[]>
Find ratings related to conference id.
Parameters
| Name | Type | Description |
|---|---|---|
conferenceId | string | conference id |
Returns
Promise<Rating[]>
an array of ratings
findByInteractionId
▸ findByInteractionId(interactionId): Promise<Rating[]>
Find ratings related to interaction id.
Parameters
| Name | Type | Description |
|---|---|---|
interactionId | string | interaction id |
Returns
Promise<Rating[]>
an array of ratings