Package com.zendesk.sdk.feedback
Interface FeedbackConnector
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- ZendeskFeedbackConnector
public interface FeedbackConnector extends java.io.SerializableInterface used to define behaviour for sending feedback of some kind
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanisValid()Before calling #sendFeedback(String, java.util.List, ZendeskCallback) sendFeedback} the client code should verify that it is in a usable configuration.voidsendFeedback(java.lang.String feedback, java.util.List<java.lang.String> attachments, <any> callback)Sends feedback somewhere.
-
-
-
Method Detail
-
sendFeedback
void sendFeedback(java.lang.String feedback, java.util.List<java.lang.String> attachments, <any> callback)Sends feedback somewhere.A concrete example of this can be seen in the
ZendeskFeedbackConnector- Parameters:
feedback- The feedback to send, usually entered by a user of your appattachments- A list of attachment tokens (UploadResponse.getToken())callback- The callback which can be used to gets updates on the status of the feedback sending.
-
isValid
boolean isValid()
Before calling #sendFeedback(String, java.util.List, ZendeskCallback) sendFeedback} the client code should verify that it is in a usable configuration. Connectors should return true only if they are certain of being successfully able to send feedback.- Returns:
- true if the connector has valid data
-
-