Package com.intercom.api.types
Class ConversationRating.Builder
java.lang.Object
com.intercom.api.types.ConversationRating.Builder
- All Implemented Interfaces:
ConversationRating._FinalStage,ConversationRating.ContactStage,ConversationRating.CreatedAtStage,ConversationRating.RatingStage,ConversationRating.RemarkStage,ConversationRating.TeammateStage
- Enclosing class:
ConversationRating
public static final class ConversationRating.Builder
extends Object
implements ConversationRating.RatingStage, ConversationRating.RemarkStage, ConversationRating.CreatedAtStage, ConversationRating.ContactStage, ConversationRating.TeammateStage, ConversationRating._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()contact(ContactReference contact) createdAt(int createdAt) The time the rating was requested in the conversation being rated.from(ConversationRating other) rating(int rating) The rating, between 1 and 5, for the conversation.An optional field to add a remark to correspond to the number rating
-
Method Details
-
from
- Specified by:
fromin interfaceConversationRating.RatingStage
-
rating
The rating, between 1 and 5, for the conversation.
- Specified by:
ratingin interfaceConversationRating.RatingStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remark
An optional field to add a remark to correspond to the number rating
- Specified by:
remarkin interfaceConversationRating.RemarkStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
The time the rating was requested in the conversation being rated.
- Specified by:
createdAtin interfaceConversationRating.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
- Specified by:
contactin interfaceConversationRating.ContactStage
-
teammate
- Specified by:
teammatein interfaceConversationRating.TeammateStage
-
build
- Specified by:
buildin interfaceConversationRating._FinalStage
-