APIComment constructor
APIComment({
- required String id,
- bool? aiDeterminedSpam,
- String? anonUserId,
- required bool approved,
- String? avatarSrc,
- List<
CommentUserBadgeInfo> ? badges = const [], - required String comment,
- required String commentHTML,
- String? commenterEmail,
- String? commenterLink,
- required String commenterName,
- required double? date,
- String? displayLabel,
- String? domain,
- String? externalId,
- String? externalParentId,
- DateTime? expireAt,
- List<
String> feedbackIds = const [], - int? flagCount,
- int? fromProductId,
- bool? hasCode,
- bool? hasImages,
- bool? hasLinks,
- List<
CommentUserHashTagInfo> hashTags = const [], - bool? isByAdmin,
- bool? isByModerator,
- bool? isDeleted,
- bool? isDeletedUser,
- bool? isPinned,
- bool? isLocked,
- bool? isSpam,
- int? localDateHours,
- String? localDateString,
- required String? locale,
- List<
CommentUserMentionInfo> mentions = const [], - APICommentBaseMeta? meta,
- List<
String> ? moderationGroupIds = const [], - bool? notificationSentForParent,
- bool? notificationSentForParentTenant,
- String? pageTitle,
- String? parentId,
- double? rating,
- bool? reviewed,
- required String tenantId,
- required String url,
- required String urlId,
- String? urlIdRaw,
- String? userId,
- required bool verified,
- DateTime? verifiedDate,
- int? votes,
- int? votesDown,
- int? votesUp,
Returns a new APIComment instance.
Implementation
APIComment({
required this.id,
this.aiDeterminedSpam,
this.anonUserId,
required this.approved,
this.avatarSrc,
this.badges = const [],
required this.comment,
required this.commentHTML,
this.commenterEmail,
this.commenterLink,
required this.commenterName,
required this.date,
this.displayLabel,
this.domain,
this.externalId,
this.externalParentId,
this.expireAt,
this.feedbackIds = const [],
this.flagCount,
this.fromProductId,
this.hasCode,
this.hasImages,
this.hasLinks,
this.hashTags = const [],
this.isByAdmin,
this.isByModerator,
this.isDeleted,
this.isDeletedUser,
this.isPinned,
this.isLocked,
this.isSpam,
this.localDateHours,
this.localDateString,
required this.locale,
this.mentions = const [],
this.meta,
this.moderationGroupIds = const [],
this.notificationSentForParent,
this.notificationSentForParentTenant,
this.pageTitle,
this.parentId,
this.rating,
this.reviewed,
required this.tenantId,
required this.url,
required this.urlId,
this.urlIdRaw,
this.userId,
required this.verified,
this.verifiedDate,
this.votes,
this.votesDown,
this.votesUp,
});