FeedbackSubmissionResult class

Confirmation result returned after submitting feedback to the CupThread API.

Contains the newly generated submission ID and GitHub Discussion sync status if configured.

Example

final result = await client.submit(draft);
if (result.forwardedToGithub) {
  print('Synced to GitHub Discussion: ${result.githubDiscussionUrl}');
}

Constructors

FeedbackSubmissionResult({required String submissionId, required bool forwardedToGithub, String? githubDiscussionId, String? githubDiscussionUrl, String? warning})
Creates a FeedbackSubmissionResult record.
const
FeedbackSubmissionResult.fromJson(Map<String, dynamic> json)
Deserializes FeedbackSubmissionResult from a server JSON response.
factory

Properties

forwardedToGithub bool
Whether the feedback was forwarded to a GitHub Discussion.
final
githubDiscussionId String?
GitHub Discussion ID if forwarded.
final
githubDiscussionUrl String?
Public web URL of the created GitHub Discussion if forwarded.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
submissionId String
Unique database ID of the created feedback record.
final
warning String?
Optional non-fatal warning message from the server.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited