FeedbackClient class

Primary API client for CupThread platform.

Constructors

FeedbackClient(FeedbackClientConfig config, {Client? httpClient, TokenStorageAdapter? storage, PublicAppConfig? initialConfig})

Properties

cachedAppConfig → PublicAppConfig?
Returns cached app configuration if already fetched or provided, or null.
no setter
config → FeedbackClientConfig
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchAppConfig({bool forceRefresh = false}) → Future<PublicAppConfig>
Fetches public app configuration.
fetchChangelog() → Future<List<ChangelogEntry>>
Fetches published changelog release notes.
fetchColumns() → Future<List<BoardColumn>>
Fetches Kanban board columns.
fetchComments(String featureRequestId) → Future<List<FeatureRequestComment>>
Fetches discussion comments.
fetchFeatureRequests({required String userToken, int limit = 50, int offset = 0, String? versionId, String? query}) → Future<ListFeatureRequestsResult>
Fetches paged feature requests.
fetchUserProfile(String userId) → Future<PublicUserProfileResult>
Fetches public user profile.
fetchVersions() → Future<List<AppVersion>>
Fetches release versions.
hasSeenChangelog(String version) → Future<bool>
Checks if a changelog version or entry ID has already been marked as seen.
markChangelogSeen(String version) → Future<void>
Marks a changelog version or entry ID as seen.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postComment(String featureRequestId, CommentDraft draft, {required String userToken}) → Future<FeatureRequestComment>
Posts a comment on a feature request.
prepareChangelogOverlay({bool onlyIfUnseen = false}) → Future<({SdkAppearance appearance, List<ChangelogEntry> entries})?>
Loads newest release entries and appearance for the What's-New overlay.
submit(FeedbackDraft draft, {String? userToken}) → Future<FeedbackSubmissionResult>
Submits user feedback draft.
submitFeatureRequest(FeatureRequestDraft draft, {required String userToken}) → Future<FeatureRequestSubmissionResult>
Proposes a new feature request.
subscribeToChangelog(String email, {required String userToken}) → Future<ChangelogSubscriptionResult>
Subscribes an email to changelog notifications.
toggleVote(String featureRequestId, {required String userToken}) → Future<VoteResult>
Toggles an upvote on a feature request.
toString() → String
A string representation of this object.
inherited
unsubscribeFromChangelog(String email) → Future<ChangelogUnsubscribeResult>
Unsubscribes an email from changelog notifications.
updateUserAttributes({required String userToken, bool? isPaying, String? plan, double? mrr, String? currency, String? signingSecret, String? signature, int? timestamp}) → Future<UserAttributesUpdateResult>
Reports self-declared user attributes.
uploadAttachment({required List<int> bytes, required String filename, required String mimeType, AttachmentKind? preferredKind, int? maxBytes}) → Future<FeedbackAttachment>
Uploads binary file attachment.

Operators

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