FeedbackData

data class FeedbackData(val title: String, val details: String? = null, val severity: FeedbackSeverity, val feedbackType: FeedbackType = FeedbackType.GENERAL_COMMENT, val reporterEmail: String, val screenshotBase64: String? = null, val metadata: Map<String, Any>? = null)

Data class representing a feedback submission.

Samples

import com.mcpfeedback.sdk.model.FeedbackData
import com.mcpfeedback.sdk.model.FeedbackSeverity
import com.mcpfeedback.sdk.model.FeedbackType

fun main() { 
   //sampleStart 
   FeedbackData(
    title = "App crashes on checkout",
    details = "Tapping \"Pay\" on the cart screen reproduces the crash.",
    severity = FeedbackSeverity.HIGH,
    feedbackType = FeedbackType.BUG_REPORT,
    reporterEmail = "user@example.com",
) 
   //sampleEnd
}

Constructors

Link copied to clipboard
constructor(title: String, details: String? = null, severity: FeedbackSeverity, feedbackType: FeedbackType = FeedbackType.GENERAL_COMMENT, reporterEmail: String, screenshotBase64: String? = null, metadata: Map<String, Any>? = null)

Properties

Link copied to clipboard
val details: String? = null
Link copied to clipboard
Link copied to clipboard
val metadata: Map<String, Any>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard