AppealTopic class final
What a complaint is about, shown at the top of the complaint form: a short summary of the decision and the end of the window for a complaint.
Every field is optional; the form shows what is there.
- Annotations
Constructors
-
AppealTopic({String? title, ModerationAction? action, List<
String> policyTitles = const [], DateTime? decidedAt, DateTime? appealDeadline}) -
Creates a topic from single values, e.g. only a
title.const - AppealTopic.fromDecision(ModerationDecision decision, {String? title})
-
The topic of a decision the affected user complains about, from
decision.created(AppealRequest.subject).factory - AppealTopic.fromReportsResolution(ReportsResolution resolution, {String? title})
-
The topic of a decision a reporter complains about, from
reports.resolved(AppealRequest.reporter), with its ReportsResolution.appealDeadline.factory
Properties
- action → ModerationAction?
-
The measure of the decision, shown with LimeniaUiStrings.actionLabels.
Null if unknown.
final
- appealDeadline → DateTime?
-
The end of the window for a complaint, if Limenia sent it
(
reports.resolved). Otherwise deadline computes it from decidedAt.final - deadline → DateTime?
-
Until when a complaint is possible: appealDeadline, or six calendar
months after decidedAt (appealDeadlineFor), or null if neither is
known.
no setter
- decidedAt → DateTime?
-
When the decision was taken.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
policyTitles
→ List<
String> -
Titles of the policies the decision is based on, in the language of the
tenant.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
A plain title from the app, e.g. "Your comment of October 1".
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