-
@Immutable() public final class RatingConfig1–N rating question config (star/heart/thumb).
SPEC-070-A F.4: matches iOS
RatingConfigshape — Firestore writesmax(e.g., 5 or 10) +icon("star" | "heart" | "thumb"); legacy SDKs wrotemax_rating+style. Use resolvedMax / resolvedIcon for the effective values.
-
-
Constructor Summary
Constructors Constructor Description RatingConfig(Integer maxRating, String style, Integer max, String icon)
-
Method Summary
Modifier and Type Method Description final IntegergetResolvedMax()final StringgetResolvedIcon()final IntegergetMaxRating()Legacy SDK field. final StringgetStyle()Legacy SDK field. final IntegergetMax()Firestore-canonical max value. final StringgetIcon()Firestore-canonical icon. -
-
Method Detail
-
getResolvedMax
final Integer getResolvedMax()
-
getResolvedIcon
final String getResolvedIcon()
-
getMaxRating
final Integer getMaxRating()
Legacy SDK field. Prefer max when both are set.
-
getMax
final Integer getMax()
Firestore-canonical max value. Null when only legacy
max_ratingprovided.
-
-
-
-