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(score
, comment
, interactionId
, sessionId
, sessionType
): Promise
<string
>
Parameters
Name | Type |
---|---|
score | number |
comment | string |
interactionId | string |
sessionId | string |
sessionType | "CALL" | "CONFERENCE" |
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