Package com.mypurecloud.sdk.v2.model
Class KnowledgeDocumentFeedbackResponse
java.lang.Object
com.mypurecloud.sdk.v2.model.KnowledgeDocumentFeedbackResponse
- All Implemented Interfaces:
Serializable
KnowledgeDocumentFeedbackResponse
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the query that surfaced the document on which the feedback was given.static enumFeedback rating.static enumFeedback reason.static enumThe state of the feedback.static enumThe method how knowledge was surfaced. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(KnowledgeSearchClientApplication application) The client application from which feedback was given.Free-text comment of the feedback.conversationContext(KnowledgeConversationContextResponse conversationContext) Conversation context information if the feedback is given in the context of a conversation.document(KnowledgeDocumentVersionReference document) The document on which feedback was given.documentVariation(EntityReference documentVariation) The variation of the document on which feedback was given.booleangetId()getState()getUser()inthashCode()The type of the query that surfaced the document on which the feedback was given.Feedback rating.Feedback reason.search(EntityReference search) The search that surfaced the document on which feedback was given.voidsetApplication(KnowledgeSearchClientApplication application) voidsetComment(String comment) voidsetConversationContext(KnowledgeConversationContextResponse conversationContext) voidsetDocument(KnowledgeDocumentVersionReference document) voidsetDocumentVariation(EntityReference documentVariation) voidvoidvoidvoidsetSearch(EntityReference search) voidvoidsetSurfacingMethod(KnowledgeDocumentFeedbackResponse.SurfacingMethodEnum surfacingMethod) The state of the feedback.surfacingMethod(KnowledgeDocumentFeedbackResponse.SurfacingMethodEnum surfacingMethod) The method how knowledge was surfaced.toString()
-
Constructor Details
-
KnowledgeDocumentFeedbackResponse
public KnowledgeDocumentFeedbackResponse() -
KnowledgeDocumentFeedbackResponse
-
-
Method Details
-
getId
-
documentVariation
The variation of the document on which feedback was given. -
getDocumentVariation
-
setDocumentVariation
-
rating
public KnowledgeDocumentFeedbackResponse rating(KnowledgeDocumentFeedbackResponse.RatingEnum rating) Feedback rating. -
getRating
-
setRating
-
reason
public KnowledgeDocumentFeedbackResponse reason(KnowledgeDocumentFeedbackResponse.ReasonEnum reason) Feedback reason. -
getReason
-
setReason
-
comment
Free-text comment of the feedback. Maximum length: 2000 characters. -
getComment
-
setComment
-
search
The search that surfaced the document on which feedback was given. -
getSearch
-
setSearch
-
getSessionId
-
getDateCreated
-
queryType
public KnowledgeDocumentFeedbackResponse queryType(KnowledgeDocumentFeedbackResponse.QueryTypeEnum queryType) The type of the query that surfaced the document on which the feedback was given. -
getQueryType
-
setQueryType
-
surfacingMethod
public KnowledgeDocumentFeedbackResponse surfacingMethod(KnowledgeDocumentFeedbackResponse.SurfacingMethodEnum surfacingMethod) The method how knowledge was surfaced. Article: Full article was shown. Snippet: A snippet from the article was shown. Highlight: A highlighted answer in a snippet was shown.Generative: A generated answer in a snippet was shown. -
getSurfacingMethod
-
setSurfacingMethod
public void setSurfacingMethod(KnowledgeDocumentFeedbackResponse.SurfacingMethodEnum surfacingMethod) -
state
The state of the feedback. -
getState
-
setState
-
document
The document on which feedback was given. -
getDocument
-
setDocument
-
application
The client application from which feedback was given. -
getApplication
-
setApplication
-
conversationContext
public KnowledgeDocumentFeedbackResponse conversationContext(KnowledgeConversationContextResponse conversationContext) Conversation context information if the feedback is given in the context of a conversation. -
getConversationContext
-
setConversationContext
-
getUser
-
getSelfUri
-
equals
-
hashCode
public int hashCode() -
toString
-